Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribedimage text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions

Question

1. How does The Body Shop create customer sat- isfaction?

Answered: 1 week ago