The r is the distance coordinate and theta is the radiun equivalent of the angel
ID: 3640770 • Letter: T
Question
The r is the distance coordinate and theta is the radiun equivalent of the angel coordinate in the polar, data file. Write a C++ program to create a data file containing the following information: Using the file created in Exercise 4a, write a C++ program that creates student grade reports. The grade reports for each student should contain the student's name and ID number, a list of course taken, the credits and grade for each course, and a semester grade point average (GPA). For example, this is the grade report for the first student: Total Semester Course Credits Completed: 7 Semester GPA: 4.0 The semester GPA is computer in two steps. First course grade is assigned a numerical value (A = 4, B = 3, C = 2, D = 1, F = 0), and the sum of each course's grade value times the credit for each course is computed. This sum is then divided by the total number of credits taken during the semester.Explanation / Answer
#include<iostream>
#include<fstream>
#include<cstdlib>
#include<iomanip>
using namespace std;
int main()
{
char fileName[20];
ofstream fout;
cout << "Enter file name: ";
cin >> fileName;
cout << endl;
fout.open(fileName);
fout<<setw(7)<<"2333021"<<setw(15)<<"BOKOW, R."<<setw(10)<<"NS201"<<" 3 "<<" A ";
fout<<" "<<setw(7)<<"2333021"<<setw(15)<<"BOKOW, R."<<setw(10)<<"MG342"<<" 3 "<<" A ";
fout<<" "<<setw(7)<<"2333021"<<setw(15)<<"BOKOW, R."<<setw(10)<<"FA302"<<" 1 "<<" A ";
fout<<" "<<setw(7)<<"2574063"<<setw(15)<<"FALLIN, D."<<setw(10)<<"MK106"<<" 3 "<<" C ";
fout<<" "<<setw(7)<<"2574063"<<setw(15)<<"FALLIN, D."<<setw(10)<<"MA208"<<" 3 "<<" B ";
fout<<" "<<setw(7)<<"2574063"<<setw(15)<<"FALLIN, D."<<setw(10)<<"CM201"<<" 3 "<<" C ";
fout<<" "<<setw(7)<<"2574063"<<setw(15)<<"FALLIN, D."<<setw(10)<<"MP101"<<" 2 "<<" B ";
fout<<" "<<setw(7)<<"2663628"<<setw(15)<<"KINGSLEY, M."<<setw(10)<<"QA140"<<" 3 "<<" A ";
fout<<" "<<setw(7)<<"2663628"<<setw(15)<<"KINGSLEY, M."<<setw(10)<<"CM245"<<" 3 "<<" B ";
fout<<" "<<setw(7)<<"2663628"<<setw(15)<<"KINGSLEY, M."<<setw(10)<<"EQ521"<<" 3 "<<" A ";
fout<<" "<<setw(7)<<"2663628"<<setw(15)<<"KINGSLEY, M."<<setw(10)<<"MK341"<<" 3 "<<" A ";
fout<<" "<<setw(7)<<"2663628"<<setw(15)<<"KINGSLEY, M."<<setw(10)<<"CP101"<<" 2 "<<" B ";
return 0;
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.