Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For this assignment, you will need to clone the repo: Week 0 5 : Programming Assignment # 1 . Once cloned, develop a program to

For this assignment, you will need to clone the repo: Week 05: Programming Assignment #1. Once cloned,
develop a program to do the following:
Create a Point of Sale (POS) program to sell surfboards in 3 three sizes: small (2 meters), medium (3 meters),
and large (4 meters). The cost of one small surfboard is $175.00, one medium is $190.00, and one large is
$200.00. Write a program that will make the surf shop operational. Your program should allow the user to
do the following:
Buy any surfboard in any size and in any quantity.
At any time show the total number of surfboards of each size sold.
At any time show the total money made.
Your program must consist of "int main()" and only the following functions:
void ShowUsage()
a function to show the user how to use the program.
void MakePurchase(int& totalSmall, int& totalMedium, int& totalLarge)
a function to sell surfboards.
void DisplayPurchase(const int totalSmall, const int totalMedium, const int totalLarge)
function to show the number of surfboards of each size sold.
void DisplayTotal(const int totalSmall, const int totalMedium, const int totalLarge)
a function to show the total amount of money made.
Finally, your program must write the number and type of purchased items, along with the total to a file
named: total.dat
i need this in c++ and for it to stop looping over and over again
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Reliability Engineering Designing And Operating Resilient Database Systems

Authors: Laine Campbell, Charity Majors

1st Edition

978-1491925942

More Books

Students also viewed these Databases questions

Question

Name and describe three staffing approaches.

Answered: 1 week ago