Starting Out with Java: From Control Structures through Data Structures (4th Edition) (What's New in Computer Science)
4th Edition
ISBN: 9780134787961
Author: Tony Gaddis, Godfrey Muganda
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
Chapter 13, Problem 3PC
Program Plan Intro
Conference registration system
Program Plan:
- Import the required packages.
- Define the main method
- Initialize the class and application.
- Define the method “start”
- Declare and initialize the required variables.
- Create radio button for student and general registration.
- Set the mode of selection for radio button.
- Create a list view and add the elements
- Create a label that prompt user to select the required and display the required details.
- Create a new list view; add the elements to display the required elements.
- Create a new button for calculating the cost.
- Set the action event for the button
- Use the Condition if to validate the deck, truck and wheel and parts.
- Calculate and display the charges.
- Set the position of the components created and add it to the stage.
- Display the stage.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Review the customer requirements
Customer Requirements: The customer needs an application that creates a report telling how many months it will take to pay of a loan given a loan payment.
The application will accept a client’s loan amount and monthly payment amount. It will then output the customer’s loan balance each month until the loan is paid off. The report should not have any negative numbers (the final month should reflect a balance of $0).
Display the month and remaining balance for each month until paid off. In addition, the program should display what the original loan amount was.
Review the example IPO below.
Open Flowgorithm and save with the required naming conventions in the “Lab Task Checklist” and remember to enter your Program Attributes.
Use Flowgorithm to create the algorithm meeting the customer requirements
Make sure you are using the correct datatype
Use prompts to describe required input before asking for input
Test using the IPO test…
please help
DORM AND MEAL PLAN CALCULATOR
A university has the following dormitories:
Allen Hall
$1,500 per semesterPike Hall $1,600 per semesterFarthing Hall $1,800 per semesterUniversity Suites $2,500 per semesterThe university also offers the following meal plans:7 meals per week
$ 600 per semester14 meals per week $1,200 per semesterUnlimited meals $1,700 per semesterCreate an application with two forms. The main form should allow the user to select a dormitory and a meal plan. The application should show the total charges on the second form.
For this assignment, you will create two forms (each form is an object). On the first form you will have two list boxes. One will display the Dormitories and the other one will display the Meal Plans. The user will select one Dorm and one meal plan. The user will then click a button the will open up a second form and show the results.
I would suggest that you store the Dormitories is a two dimensional array for name and cost. I would suggest that you…
Chapter 13 Solutions
Starting Out with Java: From Control Structures through Data Structures (4th Edition) (What's New in Computer Science)
Ch. 13.1 - What is the type selector name that corresponds to...Ch. 13.1 - Prob. 13.2CPCh. 13.1 - Prob. 13.3CPCh. 13.1 - Prob. 13.4CPCh. 13.1 - Prob. 13.5CPCh. 13.1 - Prob. 13.6CPCh. 13.1 - Prob. 13.7CPCh. 13.1 - Prob. 13.8CPCh. 13.1 - Prob. 13.9CPCh. 13.1 - Prob. 13.10CP
Ch. 13.1 - Prob. 13.11CPCh. 13.2 - Prob. 13.12CPCh. 13.2 - Prob. 13.13CPCh. 13.2 - Prob. 13.14CPCh. 13.2 - Prob. 13.15CPCh. 13.3 - How do you determine in code whether a CheckBox is...Ch. 13.3 - In code, how do you make a CheckBox appear...Ch. 13.3 - What type of event do CheckBox controls generate...Ch. 13.4 - How do you set the size of a ListView?Ch. 13.4 - Prob. 13.20CPCh. 13.4 - Prob. 13.21CPCh. 13.4 - Prob. 13.22CPCh. 13.4 - How do you set the orientation of a ListView...Ch. 13.5 - Prob. 13.24CPCh. 13.5 - Prob. 13.25CPCh. 13.5 - Prob. 13.26CPCh. 13.5 - Prob. 13.27CPCh. 13.6 - Prob. 13.28CPCh. 13.6 - Prob. 13.29CPCh. 13.6 - Prob. 13.30CPCh. 13.7 - What is the difference between a TextArea and a...Ch. 13.7 - Prob. 13.32CPCh. 13.7 - Prob. 13.33CPCh. 13.7 - Prob. 13.34CPCh. 13.7 - Prob. 13.35CPCh. 13.8 - Briefly describe each of the following menu system...Ch. 13.8 - What class do you use to create a menu bar?Ch. 13.8 - What class do you use to create a menu?Ch. 13.8 - What class do you use to create a menu item?Ch. 13.8 - What class do you use to create a radio menu item?...Ch. 13.8 - How do you create a relationship between radio...Ch. 13.8 - What class do you use to create a check menu item?...Ch. 13.8 - What type of event do menu items generate when...Ch. 13.9 - In what package is the FileChooser class?Ch. 13.9 - Prob. 13.45CPCh. 13.9 - Prob. 13.46CPCh. 13.9 - How do you determine the file that the user...Ch. 13 - When a selector name starts with a period in a...Ch. 13 - Prob. 2MCCh. 13 - Prob. 3MCCh. 13 - Prob. 4MCCh. 13 - Prob. 5MCCh. 13 - In the hexadecimal color value #05AAFF, the AA...Ch. 13 - Prob. 7MCCh. 13 - Prob. 8MCCh. 13 - Prob. 9MCCh. 13 - Prob. 10MCCh. 13 - The __________control presents its items in a...Ch. 13 - Prob. 12MCCh. 13 - A __________ is like a TextField that can accept...Ch. 13 - You use this class to create a menu bar. a....Ch. 13 - Prob. 15MCCh. 13 - True or False: If you make any changes to an...Ch. 13 - Prob. 17TFCh. 13 - Prob. 18TFCh. 13 - Prob. 19TFCh. 13 - Prob. 20TFCh. 13 - Prob. 21TFCh. 13 - Prob. 22TFCh. 13 - True or False: A MenuBar object acts as a...Ch. 13 - True or False: A Menu object cannot contain other...Ch. 13 - Prob. 1FTECh. 13 - .label { -font-size: 14pt; }Ch. 13 - Prob. 3FTECh. 13 - Prob. 4FTECh. 13 - Prob. 1AWCh. 13 - Suppose we have a stylesheet named styles.css, and...Ch. 13 - Prob. 3AWCh. 13 - Prob. 4AWCh. 13 - Prob. 5AWCh. 13 - Prob. 6AWCh. 13 - Prob. 7AWCh. 13 - Prob. 8AWCh. 13 - Prob. 9AWCh. 13 - Assume a JavaFX application has a RadioButton...Ch. 13 - Write code that creates a ListView control named...Ch. 13 - Prob. 12AWCh. 13 - Prob. 13AWCh. 13 - Write the code that creates a menu bar with one...Ch. 13 - Prob. 1SACh. 13 - Prob. 2SACh. 13 - Prob. 3SACh. 13 - Prob. 4SACh. 13 - Prob. 5SACh. 13 - Prob. 6SACh. 13 - Prob. 7SACh. 13 - Prob. 8SACh. 13 - Prob. 9SACh. 13 - Dorm and Meal Plan Calculator A university has the...Ch. 13 - Skateboard Designer The Skate Shop sells the...Ch. 13 - Prob. 3PCCh. 13 - Smartphone Packages Cell Solutions, a cell phone...Ch. 13 - Shopping Cart System Create an application that...
Knowledge Booster
Similar questions
- 4. Create a Discount Warehouse application. The interface should allow the user to enter an item's original price and select its discount rate from a list box. The discount rates should range from 10% through 40% in increments of 5%. Use a text box for entering the original price, and use a list box for selecting the discount rates. The application should display the amount of the discount and also the discounted price in label controls.arrow_forwardhi I have no idea what to do here Write a Java GUI application that will keep track of student results at a local college and save the process result into a database. The application must contain the result that a student has obtain for a test, assignment and exam. Question 1 On the form create a list box that will allow the user to select the student ID populate populate from the text file. Also create a search button when clicked will display the average , highest and lowest result according to the student number and a Save button to save the result to an online data base. Student number should be used as a primary key for your database. Question 2 Create a sequential file (student.txt) that contains data for the following fields The student ID number The student test result The student assignment result The student exam result Question 3 Load the data from the student.txt file and populate the list box with the student numbers Question 4 Calculate the average result…arrow_forward14arrow_forward
- Create a project named MyFlix. Its Form contains a ListBox with the titles of at least six movies or TV shows available to purchase. Provide directions that tell users they can choose as many downloads as they want by holding down the Ctrl key while making selections. When the user clicks a Button to indicate the choices are final, display the number of selections made and total price, which is $1.99 per download. If the user selects or deselects items and clicks the button again, make sure the total is updated correctly.arrow_forwardQUESTION ONE You work for a Marketing firm called SA Modern Suppliers. Your Purchasing Manager has asked you to write a VB Application that will allow users to create a flexible Suppliers List to which Suppliers can be added and removed as well as enable the user to clear the entire Suppliers List when it is no longer needed. Your application should enable the user to do the following: 1.1 Allow the user to enter the Supplier name in the text box. When the user clicks on the Add button the program should add the Supplier to 1.1.1 1.1.2 the list. When the user selects a Supplier from the list and clicks the remove button, the program should remove the selected Supplier from the list. When the user clicks the Clear button, the program should clear the entire Suppliers List. When the user clicks on Exit, the application should close. 1.1.3 1.1.4 1.1.5 Open a new Windows Forms Application and save it in your folder that you just created on your desktop. Name your application as Suppliers…arrow_forwardInstructions You are working as a computer programmer for a mortgage company that provides loans to consumers for residential housing. Your task is to create an application to be used by the loan officers of the company when presenting loan options to its customers. The application will be a mortgage calculator that determines a monthly payment for loans and produces an amortization schedule for the life of the loan. The company offers 10-, 15-, and 30-year fixed loans. Inputs The program should initially prompt the user (the loan officer) for the principal of the loan (i.e. the amount that is being borrowed). It should then ask him or her to enter an annual interest rate for the loan. The final input should be the number of years that the loan will be outstanding. Because the company only offers three different terms (10-, 15-, and 30-year loans), the program should ensure that no other terms are entered. Payment Calculator The formula to calculate the monthly payment for a fixed…arrow_forward
- When a student wants to rent a laptop, the staff member will enter the day and month on which the transaction is taking place e.g., if the customer rents a laptop on the 5th of September, the staff member will enter a ‘5’ and ‘9’. The application will then check that the day of the transaction is within the first two weeks (between and including the 1st and 14th ) of the month and calculate on what day of the month the laptop should be returned. The following checks must be made: If the day of the start of the transaction is greater than 14 or the month is not valid (1 to 12), the application will ask the staff member to re-enter the transaction date. If the starting day of the transaction is between 1 and 14 and the month is valid ( 1 to 12) the application can continue. Use a case statement to determine the month name from the month number and display the return date e.g., if the customer rented the laptop on the 5 th of the 9 th month, the return date should be…arrow_forwardconsumers for residential housing. Your task is to create an application to be used by the loan officers of the company when presenting loan options to its customers. The application will be a mortgage calculator that determines a monthly payment for loans. The company offers 10-, 15-, and 30-year fixed loans. The interest rates offered to customers are based on the customer’s credit score. Credit scores are classified into the following categories: Table 1: Credit Score Categories Rating Range Excellent 720-850 Good 690-719 Fair 630-689 Bad 300-629 The program should initially prompt the user (the loan officer) for the principle of the loan (i.e. the amount that is being borrowed). It should then ask him or her to enter the customer’s credit score. Based on the customer’s credit score, the program will randomly generate an interest rate based on the following ranges: Table 2: Interest Rate Assignments…arrow_forwardi need the answer quicklyarrow_forward
- Question Completion Status: QUESTION 11 onsubmit event triggers when a form is submitted O True Falsearrow_forwardUSe Form CS Create an application consists of 1 form with 30 controls: 1 Textbox 3 Radio buttons 2 Buttons 5 Checkboxes Code must be written to respond to the user clicking on the buttons, radio buttons and check boxes. Project requirements: 1. when the application starts the focus must be at the flavor selection list with the first flavor selected, one scoop selected and no toppings selected and the correct total displayed 2. when the "Exit" button is clicked, the application ends 3. the total will be computed and displayed when the user makes a scoop selection and/or toppings selection. 4. when the "Clear" button is clicked, the textbox is cleared. Focus goes to the listbox.. The first flavor is selected, one scoop is selected and no toppings are selected and the correct total is displayed 5. the total dollar amount must be formatted as currency 6. allow multiple flavors to be selected 7. the otal will times be an eflect the ber of scoops and toppings as they are selectedarrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
- Np Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:CengageCOMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L