Computers and Technology, 13.02.2022 14:00 Mikey3414
Use the function written in the last lesson to calculate a student’s GPA. Ask them how many classes they are taking, then ask them to enter the grades for each class and if it is weighted.
Your program should then output the averaged GPA including the decimal place.
Your main program must call the function.
Sample Run
How many Classes are you taking? 7
Enter your Letter Grade: C
Is it weighted? (1 = yes) 1
Your GPA score is: 3
Enter your Letter Grade: D
Is it weighted? (1 = yes) 0
Your GPA score is: 1
Enter your Letter Grade: A
Is it weighted? (1 = yes) 1
Your GPA score is: 5
Enter your Letter Grade: B
Is it weighted? (1 = yes) 1
Your GPA score is: 4
Enter your Letter Grade: C
Is it weighted? (1 = yes) 0
Your GPA score is: 2
Enter your Letter Grade: A
Is it weighted? (1 = yes) 0
Your GPA score is: 4
Enter your Letter Grade: C
Is it weighted? (1 = yes) 0
Your GPA score is: 2
Your weighted GPA is a 3.0.
Answers: 1
Computers and Technology, 22.06.2019 20:00
Which type of file can be used to import data into a spreadsheet?
Answers: 1
Computers and Technology, 23.06.2019 02:50
Define a class named movie. include private fields for the title,year, and name of the director. include three public functions withprototypes void movie: : settitle(cstring); , voidmovie: : setyear(int); , void movie: : setdirector(string); . includeanother function that displays all the information about a movie.write a main() function that declares a movie object namedmyfavoritemovie. set and display the object's fields.this is what i have but know its wrong since it will notcompile: #include#includeusing namespace std; //class declarationclass movie{private: string movietitle ; string movieyear; string directorname; public: void settitle(string title); void setyear(string year); void setdirector(string director); void displayinfo(); }; //class implementationvoid movie: : settitle(string title){ movietitle = title; cout< < "what is the title of themovie? "< > temp; myfavoritemovie.settitle(temp); cout< < "enter movie year"< > temp; myfavoritemovie.setyear(temp); cout< < "enter director'sname"< > temp; myfavoritemovie.setdirector(temp); //display all the data myfavoritemovie.displayinfo(); system("pause"); return 0; this code is not entirely mine someone on cramster edited my firstcode but then i try manipulating the new code and i still get acompile error message : \documents\visual studio 2008\projects\movie\movie\movie.cpp(46) : error c2679: binary '< < ' : no operator found which takes aright-hand operand of type 'std: : string' (or there is no acceptableconversion)c: \program files (x86)\microsoft visual studio9.0\vc\include\ostream(653): could be'std: : basic_ostream< _elem,_traits> & std: : operator< < > (std: : basic_ostream< _elem,_traits> & ,const char *)w
Answers: 1
Computers and Technology, 24.06.2019 07:00
Selective is defined as paying attention to messages that are consistent with one’s attitudes and beliefs and ignoring messages that are inconsistent.
Answers: 1
Computers and Technology, 24.06.2019 17:30
What is the next step if your volume does not work on computer
Answers: 2
Use the function written in the last lesson to calculate a student’s GPA. Ask them how many classes...
Mathematics, 28.05.2020 05:58
History, 28.05.2020 05:58
Mathematics, 28.05.2020 05:58
Mathematics, 28.05.2020 05:58
Mathematics, 28.05.2020 05:58
Mathematics, 28.05.2020 05:58
Mathematics, 28.05.2020 05:58
Mathematics, 28.05.2020 05:58
Mathematics, 28.05.2020 05:58
History, 28.05.2020 05:58