question archive (Gr12 C++ Programming assignment) Please include the algorithm and comments for every question
Subject:Computer SciencePrice: Bought3
(Gr12 C++ Programming assignment)
Please include the algorithm and comments for every question.
q1 Write a program that inputs five characters from the user and stores them in a file.
q2 write a program, that will open a city.txt in read mode, read all written text.
q3 Write a program that inputs the names of five cities in Ontario and stores them in a file city.txt.
q4 write a program, that will create a student’s file string name (“st1.txt”) and then write students first name and last name into the file, after writing, text file must be closed and again open the file in read mode, read all written text.