Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please provide me with C++ code it's programing Please provide me with C++ code it's programing Please provide me with C++ code it's programing Please

Please provide me with C++ code it's programing

Please provide me with C++ code it's programing

Please provide me with C++ code it's programing

image text in transcribed

image text in transcribed

Please provide me with C++ code it's programing

Please provide me with C++ code it's programing

Please provide me with C++ code it's programing

1. Create a file named result. txt as shown below. This file contains the results of 10 students for 9 subjects taken by them. Each line of the file contains a student's id followed by her/his grades for subject 1 to 9 . Write a program that opens the result, txt file for input. The program calculates the total number of each grade achieved by each student (in each line of the file). Then, the results are written to the output file named summarizeResult.txt as shown below: 2. Alter the program you've developed for Exercise 1 that prompts the user to enter other students' id and their grades for cach subject. Then print the students' id and their grades by appending to the resuit. txt file. The program calculates the total number of each grade achieved by each new student. Then, the summarized grade results for the new students are appended to the output file named sumarizeResult. txt. Sample input and files are shown below: Sarmple Input : please enter student id and grades for subject 1 to 9: Press ctr1+Z to stop. S11 A A A A A B B B B 512 B B B C C C A A B 513 C C C C B B B D B 514CCDCBBBBB 515 A A A A B B B B B Please refer to the file summarizeResult result.txt with the new students' results : 1. Create a file named result. txt as shown below. This file contains the results of 10 students for 9 subjects taken by them. Each line of the file contains a student's id followed by her/his grades for subject 1 to 9 . Write a program that opens the result, txt file for input. The program calculates the total number of each grade achieved by each student (in each line of the file). Then, the results are written to the output file named summarizeResult.txt as shown below: 2. Alter the program you've developed for Exercise 1 that prompts the user to enter other students' id and their grades for cach subject. Then print the students' id and their grades by appending to the resuit. txt file. The program calculates the total number of each grade achieved by each new student. Then, the summarized grade results for the new students are appended to the output file named sumarizeResult. txt. Sample input and files are shown below: Sarmple Input : please enter student id and grades for subject 1 to 9: Press ctr1+Z to stop. S11 A A A A A B B B B 512 B B B C C C A A B 513 C C C C B B B D B 514CCDCBBBBB 515 A A A A B B B B B Please refer to the file summarizeResult result.txt with the new students' results

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 Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

Students also viewed these Databases questions

Question

Discuss on the critical radius of insulation with a neat diagram

Answered: 1 week ago

Question

What is Larmors formula? Explain with a suitable example.

Answered: 1 week ago

Question

Choosing Your Topic Researching the Topic

Answered: 1 week ago

Question

The Power of Public Speaking Clarifying the

Answered: 1 week ago