subject

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.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 15:00
In the blank libreoffice writer document, to start the process of entering a date field into a letter, click on the insert menu. edit menu. file menu. fields menu.
Answers: 3
question
Computers and Technology, 23.06.2019 17:00
*! 20 points! *jeff wants to create a website with interactive and dynamic content. which programming language will he use? a. dhtml b. html c. css d. javascript
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
Into what form does the barcode reader convert individual bar patterns?
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
(, urgent need): how do i change my username
Answers: 1
You know the right answer?
In this lab, you complete a partially prewritten C++ program that includes functions with no paramet...
Questions
question
Mathematics, 11.10.2019 11:50
question
Chemistry, 11.10.2019 11:50
Questions on the website: 13722360