Please help to build simple c++ code.
//C++ code to allow user to choose product and view receipt of their balance after choosing a product
#include<iostream>
using namespace std;
int main()
{
float amount,cost,balance;
int option;
cout<<"Enter amount in wallet:"<<endl;
cin>>amount;
cout<<"choose product"<<endl;
cout<<"1. Phone\n2.Laptop\n3.Television";
cin>>option;
switch(option)
{
case 1:cout<<"Product:Phone"<<endl;
cout<<"cost = "<<5000<<"$"<<endl;
balance=amount-5000;
cout<<"Balance =
"<<balance<<"$"<<endl;
break;
case 2:cout<<"Product:Laptop"<<endl;
cout<<"cost = "<<8000<<"$"<<endl;
balance=amount-8000;
cout<<"Balance =
"<<balance<<"$"<<endl;
break;
case 3:cout<<"Product:Television"<<endl;
cout<<"cost = "<<4000<<"$"<<endl;
balance=amount-5000;
cout<<"Balance =
"<<balance<<"$"<<endl;
break;
default: cout<<"invalid product "<<endl;
}
return 0;
}
For any clarification please post in comment section.
Please help to build simple c++ code. 5. Produce receipt for the customer which shows the...
JavaFX code for a simple tableview done in scene builder which only shows first name and last name populated automatically from the netbeans derby database? Im having trouble making it do it so anything would help. Thank you
C++ Simple code please Thank you in advance B. Write a C++ program as per the following specifications: a. Define the class BankAccount to store a bank customer's account number and balance. Suppose that account number is of type int, and balance is of type double. Your class should, at least, provide the following operations: set the account number, retrieve the account number, retrieve the balance, deposit and withdraw money, and print account information. Add appropriate constructors. b. Every bank...
in python would you please help me to keep this code as in a simple and easy code to follow please I want the code to run like first line of the letters ['B', 'C', 'D', 'BC', 'CB', 'BD', 'BCB', 'CBD', 'BCBD'] ['B', 'BC', 'BCB', 'BCBD', 'C', 'CB', 'CBD', 'BD', 'D'] word="BCBD" lst=[] for i in range(len(word)): for j in range(i+1,len(word)+1): if word [i:j] not in lst: lst.append(word[i:j]) print(lst)
Ordering Delivery and receipt of merchandise Shelf-stocking Customer support and assistance $104 per purchase order $82 per delivery $18 per hour $0.24 per item sold Milk and Baked Goods Fruit Juice Frozen Products Financial data je ne Revenues $ 57,500 $ 66,500 $ 50,500 Cost of goods sold 39,000 $ 46,000 $ 33,000 Store suppbrt $ 11,700 $ 13,800 $ 9,900 Activity-area usage (cost-allocation base) Ordering (purchase orders) 20 15 5 Delivery (deliveries) 100 40 35 Shelf-stocking (hours) 195 170...
can someone help write a simple c++ code that inputs a file and decrypts it using ascii code -4.
PLEASE HELP 5. Explain the outcomes of a goods receipt step of the procurement process. 6. Explain the outcomes of the invoice verification step of the procurement process. 7. What is a distribution chain? How is it relevant to the fulfillment process?
PLEASE DESCRIBE THE STEPS IN THE CODE! please.. (simple code) In this homework, the rail fence cipher is written in Python. We did implement this already in the class by appending letters sequentially to three different lists, which represented three rails. In this project, you are allowed to implement it in any other way. First step is to drop all the space characters inside the plain text. An easy way to implement it is to notice that the first rail...
Code "string removeDuplicates(string original)" in C++. Please do as simple as possible!
Suppose that, assuming a firm decides to produce a product, it must build a production facility. The fixed cost of this facility is F = 90. Also, the firm has constant marginal cost, MC = 5. Demand for the product that the firm produces is given by P = 40-5Q. a) On a single graph, carefully draw the MC curve, the demand curve, and the ATC curve. Your graph should go up to 8 units of output. Please label your...
Need the c code please, also please only use <stdio.h> library. Simple code please Define a struct with teg Capacitor that holds the following Information about a capacitor: Model number (e.g. 11-123U), capacitance (e.g. 1000 u.f), voltage (e.g. 2.5 V), cost {$6.50} Create your main program file capacltorsInfac. Declare two variables of type struct Capacitor and populate them with the following values: First' variable: model Is 11-123U, capacitance Is 100, voltage Is 25 and cost Is $6.00 Second variable: model...