Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Objectives: In this lab, the following topic will be covered: 1. Text I/O Task Write a program that generates random letter grades in the file
Objectives: In this lab, the following topic will be covered: 1. Text I/O Task Write a program that generates random letter grades in the file "LetterGrades.txt". The number of letter grades is also random. The possible letter grades are: Letter Grade A+ B+ B C+ D+ D F w WP WF DN Generate random number of letter grades between 30 and 50 Display the number of grades to be generated Generate the letter grades and write them to the file "LetterGrades.txt" Read them from the file and print them on the screen without countint Sample run: number of letter grades generated = 39 B+ B A D+ C+ DAC B+ FCAD B+ A+ C WP B+ DN C+ W D+ D+ F C B+ DF DN WP WP C+ FWW C+ C+ DN C Letter grades found in the file = 39
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