Computers and Technology

In this lab, you complete a partially prewritten C++ program that includes functions with no parameters.

The program asks the user if he or she has preregistered for tickets to an art show. If the user has preregistered, the program should call a function named discount() that displays the message, "You are preregistered and qualify for a 5 percent discount." If the user has not preregistered, the program should call a function named noDiscount() that displays the message, "Sorry, you did not preregister and do not qualify for a 5 percent discount."

The source code file provided for this lab includes the necessary variable declarations and the input statement. Comments are included in the file to help you write the remainder of the program.

Instructions

Ensure the source code file named ArtShowDiscount. cpp is open in the code editor.

Write the C++ statements as indicated by the comments.

Execute the program by clicking the Run button.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 02:00, itsyagirl11076
What is the process in which the software development team compiles information to determine the final product.
Answers: 3
image
Computers and Technology, 22.06.2019 19:10, kaiya789
10. when you create a pivottable, you need to specify where to find the data for the pivottable. is it true
Answers: 2
image
Computers and Technology, 23.06.2019 01:50, rhonda45801
Free points just awnser this. what should i watch on netflix
Answers: 2
image
Computers and Technology, 23.06.2019 04:31, tbt81
Type the correct answer in the box. spell all words correctly. the managing director of a company sends a christmas greeting to all his employees through the company email. which type of network does he use? he uses an
Answers: 1
Do you know the correct answer?
In this lab, you complete a partially prewritten C++ program that includes functions with no paramet...

Questions in other subjects:

Konu
Mathematics, 31.07.2019 23:40
Konu
Mathematics, 31.07.2019 23:40