Microsoft Visual C#
Microsoft Visual C#
7th Edition
ISBN: 9781337102100
Author: Joyce, Farrell.
Publisher: Cengage Learning,
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 4, Problem 1CP

In Chapter 2, you created an interactive application named GreenvilleRevenue, and in Chapter 3 you created a GUI version of the application named GreenvilleRevenueGUI. The programs prompt a user for the number of contestants entered in this year’s and last year’s Greenville Idol competition, and then they display the revenue expected for this year’s competition if each contestant pays a $25 entrance fee. The programs also display a statement that compares the number of contestants each year. Now, replace that statement with one of the following messages:

• If the competition has more than twice as many contestants as last year, display The competition is more than twice as big this year!

• If the competition is bigger than last year’s but not more than twice as big, display The competition is bigger than ever!

• If the competition is smaller than last year’s, display, A tighter race this year! Come out and cast your vote!

Blurred answer
Students have asked these similar questions
A concert hall has three seating categories: Orchestra, Main floor, and Balcony.Orchestra seats are $25, Main floor seats are $30, and Balcony seats are $15. The manager wants an application that allows him to enter the number of tickets sold in each seating category. The application should calculate the amount of revenue generated by each category, and then display each result using the “N0” format. The application should also calculate the total revenue, displaying the result using the “C0” format.a. List the output, processing (if any), and input items, and then create an appropriate algorithm. b. Create a Visual Basic Windows application. Use the following names for the solution and project, respectively: Concert Solution and Concert Project. Save the application in the  ClearlyVB2012\Chap06 folder. Change the name of the form file on your disk to frmMain.vb. If necessary, change the form’s name to frmMain. c. Create a suitable interface. Include an Exit button. d. Code the Exit…
The application displays a shipping charge that is based on the total price entered by the user, as shown in Figure 4-64. Start the application and then test it by clicking the Display shipping button. Notice that the Shipping charge box contains $13, which is not correct. Now, test the application using the following total prices: 100, 501, 1500, 500.75, 30, 1000.33, and 2000. Here too, notice that the application does not always display the correct shipping charge. (More specifically, the shipping charge for two of the seven total prices is incorrect.) Open the Code Editor window and correct the errors in the code. Save the solution and then start and test the application.
There are three seating categories at a high school athletic stadium. For a baseball game, Class A seats cost $15 each, Class B seats cost $12 each, and Class C seats cost $9 each. Create an application that allows the user to enter the number of tickets sold for each class. The application should be able to display the amount of income generated from each class of ticket sales and the total revenue generated. If the user fails to enter numeric values, display an appropriate error message and do not attempt to perform calculations Use the following test data to determine if the application is calculating properly:Ticket Sales RevenueClass A: 320 Class A: $4800.00Class B: 570 Class B: $6840.00Class C: 890 Class C: $8010.00Total Revenue: $19650.00Class A: 500 Class A: $7500.00Class B: 750 Class B: $9000.00Class C: 1200 Class C: $10800.00Total Revenue: $27300.00Class A: 100 Class A: $1500.00Class B: 300 Class B: $3600.00Class C: 500 Class C: $4500.00Total Revenue: $9600.00

Chapter 4 Solutions

Microsoft Visual C#

Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Time Complexity Analysis - How To Calculate Running Time | InterviewBit; Author: InterviewBit;https://www.youtube.com/watch?v=--oxG4Q1PA0;License: Standard YouTube License, CC-BY