Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

Database Administration The Complete Guide To Dba Practices And Procedures

Authors: Craig S. Mullins

2nd Edition

0321822943, 978-0321822949

More Books

Students also viewed these Databases questions

Question

=+j What rules will apply to the process of negotiations?

Answered: 1 week ago