Microsoft Visual C#
7th Edition
ISBN: 9781337102100
Author: Joyce, Farrell.
Publisher: Cengage Learning,
expand_more
expand_more
format_list_bulleted
Concept explainers
Textbook Question
Chapter 3, Problem 2E
Write a GUI
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
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 programs prompt a user for the number of interior and
exterior murals scheduled to be painted during the next month by Marshall’s Murals.
Next, the programs compute the expected revenue for each type of mural when
interior murals cost $500 each and exterior murals cost $750 each. The applications
also display the total expected revenue and a statement that indicates whether more
interior murals are scheduled than exterior ones. Now, modify one or both of the
applications to accept a numeric value for the month being scheduled and to modify
the pricing as follows:
• 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,…
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 programs prompt a user for the number of interior and exterior murals scheduled to be painted during the next month by Marshall's Murals. Next, the programs compute the expected revenue for each type of mural when interior murals cost $500 each and exterior murals cost $750 each. The applications also display the total expected revenue and a statement that indicates whether more interior murals are scheduled than exterior ones. Now, modify one or both of the applications to accept a numeric value for the month being scheduled and to modify the pricing as follows:
Matome’s catering provides meals for
parties and special occassions. Write a GUI
application that prompts the user for the
number of guests attending an event and then
computes the total price, which is R25 per
person. Display the company motto, and then
display the number of guests, price per
guest, and total price. Also display a
message that indicates true or false
depending on whether the job is classified as
a large eventâ€"an event with 25 or more
guests. Save the file asaskeMatomeEventPrice. runn
the program.thank you in advance
Chapter 3 Solutions
Microsoft Visual C#
Ch. 3 - Which of the following is a GUI object that...Ch. 3 - Prob. 2RQCh. 3 - In the IDE, the area where you visually construct...Ch. 3 - Prob. 4RQCh. 3 - The Form class has ____________ properties. a....Ch. 3 - Prob. 6RQCh. 3 - Which of the following is a legal Form Name...Ch. 3 - Which of the following is a legal Form Text...Ch. 3 - Which of the following does not appear in the IDEs...Ch. 3 - After you have dragged a Button onto a Form in the...
Ch. 3 - The button1_Click() method that is generated by...Ch. 3 - A(n) _____________ is generated when a user...Ch. 3 - Prob. 13RQCh. 3 - Prob. 14RQCh. 3 - _____________ are controls through which a user...Ch. 3 - Prob. 16RQCh. 3 - Prob. 17RQCh. 3 - Prob. 18RQCh. 3 - If you inadvertently create a Click() method for a...Ch. 3 - Prob. 20RQCh. 3 - Write a GUI program named InchesToCentimetersGUl...Ch. 3 - Write a GUI program named ProjectedRaisesGUI that...Ch. 3 - Prob. 3ECh. 3 - Write a GUI program named Eggs InteractiveGUl that...Ch. 3 - Write a GUI program named MakeChangeGUl that...Ch. 3 - Write a GUI program named TestsInteractiveGUI that...Ch. 3 - Create an enumeration named Month that holds...Ch. 3 - Pig Latin is a nonsense language. To create a word...Ch. 3 - Each of the following projects in the Chapter.03...Ch. 3 - In Chapter 2, you created a program for the...Ch. 3 - In Chapter 2, you created a program for Marshalls...
Knowledge Booster
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
- Write 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_forwardMatome’s catering provides meals for parties and special occassions. Write a GUI application that prompts the user for the number of guests attending an event and then computes the total price, which is R25 per person. Display the company motto, and then display the number of guests, price per guest, and total price. Also display a message that indicates true or false depending on whether the job is classified as a large eventâ€"an event with 25 or more guests. Save the file as MatomeEventPrice.arrow_forwardPsa-THIS IS NOT A GRADED QUESTION! Using tkinter how do you code this to make what I posted below? Display all outputs to the user on the GUI not in the console. some things to follow- Data must be entered by the user and the collected data is to be used to help the user determine what is needed to pass the course. (6) Program should display the average for the first semester and the second semester. (2) Program should display if the user passed the first or second semester. (2) Program should display the needed cycle grades in order to pass the semester (first and second) (2) Program should display if the user gains credit for the full course or part of course or none at all. (1) Program should display the overall course average. (1) Program should have some way of clearing all data and displays to start over for different course (1) Program outputs correct data calculation. (1)arrow_forward
- Assignment First, launch NetBeans and close any previous projects that may be open (at the top menu go to File ==> Close All Projects). Then create a new Java application called "AverageWithMethods" (without the quotation marks) according to the following guidelines. The program prompts the user for five to ten numbers, all on one line, and separated by spaces. Then the user calculates the average of those numbers, and displays the numbers and their average to the user. The program uses methods to: Get the numbers entered by the user Calculate the average of the numbers entered by the user Print the results with the whole number, a decimal, and two decimal positions The first method should take no arguments and return a String of numbers separated by spaces. [CASE 2] The second method should take a String as its only argument and return a double (the average). [CASE 4] The third method should take a String and a double as arguments but have no return value. [CASE 3]…arrow_forwardWrite an application that allows the user to choose insurance options in JCheckBoxes. Use a ButtonGroup to allow the user to select only one of two insurance types—HMO (health maintenance organization) or PPO (preferred provider organization). Use regular (single) JCheckBoxes for dental insurance and vision insurance options; the user can select one option, both options, or neither option. 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 dental coverage adds $75 per month, and the vision care adds $20 per month. When a user deselects an item, make the text field blank. Save the file as JInsurance.java.arrow_forwardMatome's catering provides meals for parties and special occassions. Write a GUI application that prompts the user for the number of guests attending an event and then computes the total price, which is R25 per person. Display the company motto, and then display the number of guests, price per guest, and total price. Also display a message that indicates true or false depending on whether the job is classified as a large event an event with 25 or more guests. Save the file as MatomeEventPrice.arrow_forward
- A software company sells a package that retails for $99. Quantity discounts are given according to the following table: Quantity Discount 10-19 10% 20-49 20% 50-99 30% 100 or more 40% Write a GUI program that asks the user to enter the number of packages purchased. The program should then display the amount of the discount (if any) and the total amount of the purchase after the discount. A successful test run of the program for different inputs is as shown below: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_forwardQuestion 1 Get room rate Room type single Number of night 3 Room rate 750.00 Get rate Close Figure 2: Get room rate GUI Write a complete program to create a graphical user interface (GUI) which calculate the room rate according to Table 1. The program should calculate and show the room rate in a text field which is not editable when the Get rate button is pressed and the system will be terminated when the Close button is pressed. The size of GUI should be set as 300 x 250. It should be shown in the centre of the screen and the program should shutdown when the user press the close button on the top right corner. Lastly, remember to create an object for the class in a main() method. Table 1: Hotel room rate according to room type Room type single Price in RM (per night) 250 double 320 suite 500arrow_forward
- First, launch NetBeans and close any previous projects that may be open (at the top menu go to File ==> Close All Projects).Then create a new Java application called "AverageWithMethods" (without the quotation marks) according to the following guidelines.The program prompts the user for five to ten numbers, all on one line, and separated by spaces. Then the user calculates the average of those numbers, and displays the numbers and their average to the user.The program uses methods to:Get the numbers entered by the userCalculate the average of the numbers entered by the userPrint the results with the whole number, a decimal, and two decimal positionsThe first method should take no arguments and return a String of numbers separated by spaces. [CASE 2]The second method should take a String as its only argument and return a double (the average). [CASE 4] The third method should take a String and a double as arguments but have no return value. [CASE 3]For example, if the user input is...…arrow_forwardFirst, launch NetBeans and close any previous projects that may be open (at the top menu go to File ==> Close All Projects). Then create a new Java application called "AverageWithMethods" (without the quotation marks) according to the following guidelines. The program prompts the user for five to ten numbers, all on one line, and separated by spaces. Then the user calculates the average of those numbers, and displays the numbers and their average to the user. The program uses methods to: Get the numbers entered by the user Calculate the average of the numbers entered by the user Print the results with the whole number, a decimal, and two decimal positions The first method should take no arguments and return a String of numbers separated by spaces. [CASE 2] The second method should take a String as its only argument and return a double (the average). [CASE 4] The third method should take a String and a double as arguments but have no return value. [CASE 3] For…arrow_forwardDevelop a Java GUI application that will display the petrol cost per litre for three different cities with a time span of three years. Q1.1)On the form create a list box, to allow a user to select between three different cities. Also create a combo box for the user to select the year. Finally add a submit button. Once the user has selected a city, year and clicked the submit button display the petrol price per litre for that year. Use the following table for the city and yearly petrol prices per litre: 2017 2018 2019Johannesburg 10.72 10.35 10.20Durban 12.75 12.32 12.22Cape Town 13.70 13.31 13.23 Q.1.2 You are also required to create a menu system which will allow the user to exit the application under the file menu. Under the tools menu allow the form submission and option to display the average yearly petrol price report. The layout of the form is left to your discretion. Marks will be allocated to the…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,EBK JAVA PROGRAMMINGComputer ScienceISBN:9781305480537Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781305480537
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
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