write a program that operates like a cashier terminal in a grocery store it begins by prompting for the number of different items being purchased and then starts a loop in the loop the program should prompt for the item description price and quantity of each item being purchased these three values should be passed as arguments to a custom function that is to find in a separate module file the imported function should print the subtotal for the item and return it to main the total should be printed in Main after the loop ends

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.6: Nested Loops
Problem 2E
icon
Related questions
icon
Concept explainers
Question
write a program that operates like a cashier terminal in a grocery store it begins by prompting for the number of different items being purchased and then starts a loop in the loop the program should prompt for the item description price and quantity of each item being purchased these three values should be passed as arguments to a custom function that is to find in a separate module file the imported function should print the subtotal for the item and return it to main the total should be printed in Main after the loop ends
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Operators
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr