Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help with C++. Also, we haven't learned about loops for input validation, so please don't use that. My friend, Sally Smith, is an artist.

Please help with C++. Also, we haven't learned about loops for input validation, so please don't use that.

My friend, Sally Smith, is an artist. She participates in several art shows each year. Please code, debug and create the submittal files for the following art show reservation service. You must use the switch statement to drive the menu and you must use if statements inside each case to validate the user's input. You can model your program after Program 4-27 in your textbook. To help you get started, I have included an example of psuedocode for a menu here in Lesson 4 folder.

Programming Requirements:

Display a menu of the following art shows:

1. California Craft Exhibition

2. San Diego Art Walk

3. Leucadia Art Walk

4. Santa Ana Art Tour

5. Exit Reservation Menu

Prompt for and input the user's choice.

For each menu option chosen (except 5), do the following.

display the art show name, starting date, and cost per tent (make them different for each show)

prompt for and input the artist's name.

prompt for and input the artist's medium.

prompt for and input their arrival time (you may assume only on the hour and always in the morning)

if their arrival time is a negative number, then give an error message, prompt and input again

prompt for and input number of tents they will require.

if the number of tents is negative then prompt and input again.

calculate the total price to exhibit (total = numberTents * costPerTent)

Output:

art show name

artist name

artist medium

arrival time

number of tents required

total price to exhibit

-------------------

Jing to show you how it could look: https://screencast.com/t/j5XUYooEfZ

**In later chapters we will make this reservation program more robust. But this is what we can do right now. Have fun! Please do not use syntax that is beyond the scope of this chapter.

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

Oracle 10g Database Administrator Implementation And Administration

Authors: Gavin Powell, Carol McCullough Dieter

2nd Edition

1418836656, 9781418836658

Students also viewed these Databases questions