Question: CSI 2 2 6 Winter 2 0 2 4 Midterm Exam Create new project. Make sure to add your lastname as part of the project
CSI Winter Midterm Exam
Create new project. Make sure to add your lastname as part of the project name
Add a JFrame form Jframe
BasketBall Seating Prices
Giving the following sitting chart prices
Prime Lower Chair $
Lower Chair
sec row &
higher
$
Upper Chair $
FacultyStaff $
provide radio buttons to allow a customer to select one option from the seating chart
provide an other set of radio buttons to allow user to select one option out of:
Adults no discount
Child discount
Students discount
Seniors discount
Provide a text box to enter number of tickets purchased assuming same options for all tickets
provide a button "Purchase" to calculate the total $ amount due, including tax
Display subtotal, tax and total in currency format to either a textarea or a label
User should be able to choose a seat and choose adult, student, child, or senior
You have the option to use netbeans to build the GUI
Add a Jframe Form: Jframe
Build the following GUI. Add each part Questions to to JFrame
Set up the frame layout in such a way you can add to it the following
A text field at the top of the frame to display the the numbers keyed
A keypad at the center of the frame
Below or on the side the above keypad add the equal button
You could choose to drag and drop the buttons from the palette
Or do everything through code for extra bonus points.
In either case you must use layout managers
Add code to the key button calculate the sum of the values entered by user.
Text File
Build a gui to allow user to enter firstname, lastname email and phone number
Provide a text box to enter filename where a person data is saved to
Add a button to save a person data to a text file
Add a button to read all the data from the text file and display to a Jtextarea
Preload file with at least records only once when file doesnot exists
That way you dont have the same data preloaded every time you run the app.
hint: you should concatenate firstname, lastname, email and phone into a single string separated by comma
That way all you have to do is save a single line of text string.
These type of files are called comma separated values or csv file such as peoplecsv
Google said
Commaseparated values CSV is a text file format that uses commas to separate values. A CSV file
stores tabular data numbers and text in plain text, where each line of the file typically represents one data record
this is how an excel data is saved to a file
This test is divided into parts
Part and partpoints each
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
