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 226 Winter2024 Midterm Exam
Create new project. Make sure to add your lastname as part of the project name
Add a JFrame form Jframe1
1. BasketBall Seating Prices
Giving the following sitting chart prices
Prime Lower Chair $337
Lower Chair
(sec 1-5,13-17 row 25 &
higher)
$269
Upper Chair $95
Faculty/Staff $149
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(35% discount)
Students (15% discount)
Seniors (25% 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 10% 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: Jframe2.
Build the following GUI. Add each part (Questions 1 to 4) to JFrame1
Set up the frame layout in such a way you can add to it the following
1. A text field at the top of the frame to display the the numbers keyed
2. A keypad at the center of the frame
3. 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 10 extra bonus points.
In either case you must use layout managers
4. Add code to the + key button calculate the sum of the values entered by user.
Text File
1. Build a gui to allow user to enter firstname, lastname email and phone number
2. Provide a text box to enter filename where a person data is saved to
3. Add a button to save a person data to a text file
4. Add a button to read all the data from the text file and display to a Jtextarea
5. Preload file with at least 5 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 people.csv
Google said
Comma-separated 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 3 parts
Part1 and part233points each

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!