Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please provide me with C++ code it's programing 2. Alter the program you've developed for Exercise 1 that prompts the user to enter other students'

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

image text in transcribed

image text in transcribed

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 result. 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

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 Systems Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions