Your program must appropriately use functions, you cannot just put all the code in the main function. • use an array to hold the vote tallies and the output must be properly tormatted use C++ Please provide a code that works properly this is my third time asking the same question
Your program must appropriately use functions, you cannot just put all the code in the main function. • use an array to hold the vote tallies and the output must be properly tormatted use C++ Please provide a code that works properly this is my third time asking the same question
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
• Your program must appropriately use functions, you cannot just put all the code in the main
function.
• use an array to hold the vote tallies and the output must be properly
tormatted
use C++
Please provide a code that works properly this is my third time asking the same question

Transcribed Image Text:Write a program called CashRegister.cpp. The program should prompt the user for each
item they are purchasing and the price. When the user types the word "done", the program
should print a receipt that also prints the subtotal, sales tax (6%), and final total.
Task 2 Sample Output
What is the name of the item? Hamburger
What is the price? 1.50
What is the name of the item? French Fries
What is the price? 2.00
What is the name of the item? Bread
What is the price? 1.50
What is the name of the item? done
Hamburger
$1.50
French Fries
$2.00
Bread
$1.50
Subtotal
$5.00
Tax (6%)
$0.30
Total
$5.30
Task 2 Notes
• Like with Task 1, the functions you choose to write are up to you, but any program that has all
the code in the main and no use of functions will lose half credit. It is recommended you
create functions to get the item from the user and a function to print out the receipt and do the
calculations.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 1 images

Recommended textbooks for you

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY