Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In Class Exercise Write a program that creates a text file for your assignments/tests and their grades. The file should have the following structure: File
In Class Exercise Write a program that creates a text file for your assignments/tests and their grades. The file should have the following structure: File Name: grades.dat Field Description Data Type Comments Example course code string/text the unique course PROG24178 code the evaluation name string/text assignment/test/quiz Mid Term Exam etc. name actual grade double what you got on this 60 evaluation maximum grade double what the evaluation 65 was out of how of your final weighting double grade is this 35 evaluation worth (percent)?Create the UI that allows the user to enter the different field values. Write each field value to the file. A set of fields make one record. Don't forget to add your delimiters. File IO Exercises 0 X Add Evaluation Course Code Evaluation Title Grade: Grade /Out Of Weight of Course Grade Save ExitNotice there's only the SAVE and EXIT button. You'll have to open the output stream when the application starts. and close it when the user presses EXIT. Make sure your program doesn't crash if the file stream is not successfully created. Extras: What happens if the user enters invalid data? In this case, the record should not be added to the file. A meaningful error message should be shown, instead. You should never save invalid data to the data file
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started