Question: Lab 9-1: Writing Functions with No Parameters In this lab, you complete a partially prewritten C++ program that includes functions with no parameters. The program
Lab 9-1: Writing Functions with No Parameters 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 discounto 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 noDiscountC that displays the message, "Sorry, you did not preregister and do not qualify for a 5 percent discount The source code file provided includes the necessary variable declarations and the input statement. Comments are included in the file to help you write the remainder of the program l. Open the source code file named ArtShowDiscount.cpp using Notepad or the text editor of your choice. 2. write the statements as indicated by the comments. C++ 3. Save this source code file in a directory of your choice, and then make that directory your working directory. ArtshowDiscount.c 4. Compile the source code file, 5. Execute the program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
