Date Due: Wednesday, April 21, 2021 at 11:59pm Develop a program working as a soda vending machine. The program should show the product menu with price and take user input for product number, quantity and pay amount. The output should show the total sale price including tax and the change. Planning - Program INPUT PROCESS OUTPUT Input Process Output 1. Show menu 2. Calculate purchase 3. Take payment 1. Product Number 1. Total Purchase 2. Product Quantity 3. Payment Amount 2. Tax (6% of Total Purchase ) 3. Change 4. Calculate tax 5. Calculate Total purchase 6. Calculate Change Planning - Function Flow Charts
Date Due: Wednesday, April 21, 2021 at 11:59pm Develop a program working as a soda vending machine. The program should show the product menu with price and take user input for product number, quantity and pay amount. The output should show the total sale price including tax and the change. Planning - Program INPUT PROCESS OUTPUT Input Process Output 1. Show menu 2. Calculate purchase 3. Take payment 1. Product Number 1. Total Purchase 2. Product Quantity 3. Payment Amount 2. Tax (6% of Total Purchase ) 3. Change 4. Calculate tax 5. Calculate Total purchase 6. Calculate Change Planning - Function Flow Charts
C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section: Chapter Questions
Problem 9PP
Related questions
Question
#include <iostream>
#include <iomanip>
double
double showMenu();
double takePurchase(double);
double takePayment();
double takePayment();
void displayInfo(double, double);
double showMenu() {}
double takePayment() {
double takePurchase()
{
}
double takePurchase (double)
{
}
double takePurchase(double price)
{
}
double takePayment() {}
displayInfo (double purchase, double payment)
void displayInfo (double purchase, double payment){}
int quantity;
return (price * quantity);
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
Knowledge Booster
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.Recommended textbooks for you
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning