Write down a simple c++ cash register program

Assignment Help Computer Engineering
Reference no: EM1331480

Write a simple C++ cash register program as per the following specifications.

The program should ask for the customer's first name and last name initials. Use 2 different variables, one for the first name and one for the last name.

The program should ask for the prices of 5 different items. Use 5 different input statements and 5 different variables.

The program should add the 5 products together giving the subtotal price.

Find the tax by multiplying the subtotal by a constant called TaxRate. Assume tax rate of 10%.

For the total, add the tax to the subtotal.

Output the first name initial, a period and space, last name initial, a period and space, a message to the user and the total.

Reference no: EM1331480

Questions Cloud

Explain dot-coms and failures and e-business : What are the myths that drove so many bright people to launch a dot-com business?
Nash equilibria : Consider the two-period repeated game in which this stage game is played twice and the repeated-game payo s are simply the sum of the payo s in each of the two periods.
Summary of the extrinsic and intrinsic rewards : A summary of the extrinsic and intrinsic rewards received by the Human Resource Director - What characteristics of the Human Resource Director that aren't expected to be part of the job.
Explaining unemployment benefits : Mr. Jones' only recourse is to file for unemployment benefits.
Write down a simple c++ cash register program : The program must ask for the customer's first name and last name initials. Use 2 different variables, one for the first name and one for the last name.
Risk-averse von neumann-morgenstern perticular : Prove that a risk-averse von Neumann-Morgenstern perticular will over-insure, fully-insure, or under-insure according as the insurance is available
Resources for marketing principles : Resources for Marketing Principles - Summarize information from your online resources and write a summary journal entry for each.
How to create a coke machine program in c++ : We would start by having the users insert their money. Since they can not physically insert the money, we will just ask them how much they wish to insert and we will keep track of how much money they have inserted.
Training and management development activities : What kinds of training and management development activities have you experienced that have benefited your career and Where do you seeing training and development going in the future within your organization

Reviews

Write a Review

Computer Engineering Questions & Answers

  What kind of algorithm is required

figuring out how to find the last element of the print statement. For array A(N) and input element ARG, what kind of algorithm is needed to determine which element of A(N) is closest to but not greater than ARG? I've gotten this far but can't find..

  Use a database in this fashion ebay

however there is great risk in implementing a database in this fashion Ebay gained an extreme performance boost because the database didn't have to work as hard to ensure that the data "conformed."

  Creating a print chart or sample output

suppose you have a bank account that compounds interest on a yearly base. In other words, if you deposit 100 dollars for two years at 4 percent interest, at the end of one year you will have $104 .

  Problem on network design

You're asked to design a network for use in the training environment. It should be mobile, easy to set up, and simple to tear down. Speed is not an issue. Develop the network design that accommodates these requirements and keeps costs down.

  How many bits are needed to address

How various bits are required to address a 1M × 8 main memory if Main memory is byte-addressable.

  Problem on bubble sort algorithm

Problem on Bubble sort algorithm

  Computing the total tax

In following example, second line of the table signifies that tax due on a salary of $2,000.00 is $225.00 plus 16% of excess salary over $1,500.00 (that is, 16% of $500.00). Compute the total tax.

  Knowledge of agency level enterprise operating systems

information of advanced Relational Database management Systems (RDMS) operating over a wide-area network. (note: Please explain RDMS operating over a WAN.)

  Illustrate precedence graph

Illustrate precedence graph

  What are the advantages of this architecture

Reduced instruction set computers provide a large number of general-purpose registers and very few memory access instructions. Most instructions use registers instead of memory. What are the benefits of such architecture? Can you think of a disadv..

  Program with a function that returns a random integer

Program with a function that returns a random integer

  Write down a swing applet that displays

Write down a Swing applet that displays your name (Gary Vega) in blue the first time the user clicks a JButton4, and then displays your name larger and in gray second time the user clicks the JButton. Save program as JBlueGray.java

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd