Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Johnny Utah owns a surf shop on the beach called Point Break Surf Shop. Johnny sells surfboards in 3 three sizes: small (2 meters), medium

Johnny Utah owns a surf shop on the beach called Point Break Surf Shop. Johnny sells 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 quanity.

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 at least the following functions:

void ShowUsage();

a function to show the user how to use the program.

void MakePurchase(int& iTotalSmall, int& iTotalMedium, int& iTotalLarge);

a function to sell surfboards.

void DisplayPurchase(const int iTotalSmall, const int iTotalMedium, const int iTotalLarge);

function to show the number of surfboards of each size sold.

void DisplayTotal(const int iTotalSmall, const int iTotalMedium, const int iTotalLarge);

a function to show the total amount of money made.

In your program you must define the functions as they are defined above. Do not change the signature (the name, parameters or the return value) or you will be marked down.

Your program should not use any global variables and the cost of the surfboards must be declared as named constants.

Your program should look and perform identically as the example below. image text in transcribed

C:\UsersJohn\Documents\Visual Studio 2017Projects'ITCS253aPointBreakSurfBoardsDe Welcome to my Johnny Utah's PointBreak Surf Shop* To show program usage S To purchase a surfboard press P To display current purchases press 'C To display tolal amount due press 'T' To quit the program press Q Please enter selection: c No purchases made yet. Please enter selection: t No purchases made yet. Please enter selection: p Please enter the quanity and type (S-small, M-medium, L-large) of surfboard you would like to purchase:3 m Please enter selection: c The total number of medium surfboards is 3 Please enter selection: p Please enter the quanity and type (S-small, M-medium, L-large) of surfboard you would like to purchase:2 1 Please enter selection: c The total number of medium surfboards is 3 The total number of large surfboards is 2 Please enter selection: t The total number of medium surfboards is 3 at a total of $570.00 The total number of large surfboards is 2 at a total of $400.e Amount due: $970.00 Please enter selection: q Thank you Press any key to continue

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

Databases Illuminated

Authors: Catherine M. Ricardo

1st Edition

0763733148, 978-0763733148

More Books

Students also viewed these Databases questions