Concept explainers
In Chapter 2, you created an interactive application named MarshallsRevenue, and in Chapter 3 you created a GUI version of the application named MarshallsRevenueGUI. The
• Because of uncertain weather conditions, exterior murals cannot be painted in December through February, so change the number of exterior murals to 0 for those months.
• Marshall prefers to paint exterior murals in April, May, September, and October. To encourage business, he charges only $699 for an exterior mural during those months. Murals in other months continue to cost $750.
• Marshall prefers to paint interior murals in July and August, so he charges only 9450 for an interior mural during those months. Murals in other months continue to cost $500.
Trending nowThis is a popular solution!
Chapter 4 Solutions
Microsoft Visual C#
- 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 years and last years Greenville Idol competition, and then they display the revenue expected for this years 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 years but not more than twice as big, display The competition is bigger than ever! If the competition is smaller than last years, display, A tighter race this year! Come out and cast your vote!arrow_forwardIn Chapter 2, you created a program for Marshalls Murals that prompts a user for the number of interior and exterior murals scheduled to be painted during the next month. The program computes the expected revenue for each type of mural when interior murals cost $500 each and exterior murals cost $750 each. The application should display, by mural type, the number of murals ordered, the cost for each type, and a subtotal. The application also displays the total expected revenue and a statement that indicates whether more interior murals are scheduled than exterior ones. Now create an interactive GUI program named MarshallsRevenueGUI that performs all the same tasks.arrow_forwardIn Chapter 2, you created a program for the Greenville Idol competition that prompts a user for the number of contestants entered in last years competition and in this years competition. The program displays the revenue expected for this years competition if each contestant pays a $25 entrance fee. The application also displays a statement that indicates whether this years competition has more contestants than last years. Now, create an interactive GUI program named GreenvilleRevenueGUl that performs all the same tasks.arrow_forward
- For each of the following exercises, you may choose to write a console-based or GUI application, or both. Write a program for The Carefree Resort named ResortPrices that prompts the user to enter the number of days for a resort stay. Then display the price per night and the total price. Nightly rates are $200 for one or two nights; $180 for three or four nights; $160 for five, six, or seven nights; and $145 for eight nights or more.arrow_forwardWrite a GUI program named TestsInteractiveGUI that allows a user to enter scores for five tests he has taken. Display the average of the test scores to two decimal places.arrow_forwardWrite a GUI program named ProjectedRaisesGUI that allows a user to enter an salary. Then display, with explanatory text, next years salary, which reflects a 4 percent increase.arrow_forward
- A county collects property taxes on the assessment value of property, which is 60 percent of the property’s actual value. If an acre of land is valued at $10,000, its assessment value is $6,000. The property tax is then $0.64 for each $100 of the assessment value. The tax for the acre assessed at $6,000 will be $38.40. Create a GUI application that displays the assess- ment value and property tax when a user enters the actual value of a property.arrow_forwardWrite an application that allows the user to choose insurance options inJCheckBoxes. Use a ButtonGroup to allow the user to select only one of twoinsurance types—HMO (health maintenance organization) or PPO (preferredprovider organization). Use regular (single) JCheckBoxes for dental insurance andvision insurance options; the user can select one option, both options, or neitheroption. As the user selects each option, display its name and price in a text field;the HMO costs $200 per month, the PPO costs $600 per month, the dentalcoverage adds $75 per month, and the vision care adds $20 per month. When auser deselects an item, make the text field blank. Be sure to include & test any and all Exception Handling. Save the file as JInsurance.java.arrow_forwardWrite a tkinter application that asks the user to create their own pizza. First, they should enter their name. Then, allow them to pick one of three crusts (thin, regular, deep dish), one of three sauces (Regular, BBQ, Alfredo), and any number of 3 toppings (Pepperoni, Olives, Mushroom). They should also pick if they want a small, medium, or large pizza. When the submit button is clicked, calculate the total cost ($10 base price, $0.50 for each topping, and $1.50 for each increase in size larger than small). Once the total is calculated, display a messagebox that thanks the user (by name) for their order and prints out the total cost.arrow_forward
- The TG Automotive repair company performs the following routine maintenance services on passenger automobiles: Oil change—$36.00 Lube job—$28.00 Radiator flush—$50.00 Transmission flush—$120.00 Inspection—$15.00 Muffler replacement—$200.00 Tire rotation—$20.00 TG Automotive also performs other nonroutine services and charges for parts and labor ($60 per hour). Create an application that displays the total for a customer’s visit to the shop. I am struggling to write the code for this application. I am trying to creat a Visual Basic Window Forms Apparrow_forward// java // book is starting out with java //chapter 12 (5)Theater RevenueA movie theater only keeps a percentage of the revenue earned from ticket sales. The remainder goes to the movie company. Create a GUI application that allows the user to enterthe following data into text fields:• Price per adult ticket• Number of adult tickets sold• Price per child ticket• Number of child tickets soldThe application should calculate and display the following data for one night’s box officebusiness at a theater:• Gross revenue for adult tickets sold. This is the amount of money taken in for all adulttickets sold.• Net revenue for adult tickets sold. This is the amount of money from adult ticket salesleft over after the payment to the movie company has been deducted.• Gross revenue for child tickets sold. This is the amount of money taken in for all childtickets sold.• Net revenue for child tickets sold. This is the amount of money from child ticket salesleft over after the payment to the movie…arrow_forwardCreate an application that lets the user enter the following pieces of data: • The user’s first name • The user’s middle name • The user’s last name • The user’s preferred title (Mr., Mrs., Ms., Dr., etc.) Assume the user has entered the following data: • First name: Kelly • Middle name: Jane • Last name: Smith • Title: Ms. The application should have buttons that display the user’s name formatted in the following ways: Ms. Kelly Jane Smith Kelly Jane Smith Kelly Smith Smith, Kelly Jane, Ms. Smith, Kelly Jane Smith, Kellyarrow_forward
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTProgramming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage Learning
- EBK JAVA PROGRAMMINGComputer ScienceISBN:9781305480537Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT