Challenge 9

Open your previous challenge program and save a new copy of it.

Alter your program so that after a valid mark has been entered it asks the user if they wish to enter another set of details. “Y” starts to process over asking for another set of student details. Store all these collected student details in a list of class objects. Anything other than “Y” moves the program to the next stage.

Then write a procedure that writes all the student details to a file that contains one line of information per student. This file can be .txt or .csv, just pick something that uses the text rather than binary flag.

Report a Glow concern
Cookie policy  Privacy policy

Glow Blogs uses cookies to enhance your experience on our service. By using this service or closing this message you consent to our use of those cookies. Please read our Cookie Policy.