Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Using C++ create the following programs: a. Assuming that text is a variable of

ID: 3529979 • Letter: U

Question

Using C++ create the following programs: a. Assuming that text is a variable of type string, output the contents of text after the statement cin >> text; is executed if the user types Hello World! b. Grade conversion. Convert a numeric grade in a scale of 0 to 100 to a letter grade: 90to100correspondstoanA,80to89isB,70to79isC,60to69isD, and less than 60 is F. Sample output: Enter your numeric grade: 78 Your final letter grade is C c. Maclaurin Series Expansion The Maclaurin series expansion of the exponential function is the following: e x = ?? x n = 1 + x + x 2 + x 3 + L n=0n! 2! 3! for all x. Write a program that takes a double variable x from user input, and computeex usingloopsthatinclude(i)onlythefirst10termsoftheexpansion; and (ii) all the terms until the next term is less than 0.0001. Compare your results to that of the exp(x) function in (you must program it also). You can only use while or do-while loops in your program. Sample output: Result for part (i) = xxxxx Result for part (ii) = yyyyy Result for using exp(x) = zzzzz d. Doing it again Repeat Question c. This time, you can only use for loops. Also, you must use shorthand notations +=, *=, etc. in your program.

Explanation / Answer

//a

#include<iostream>

#include<string>

using namespace std;

int main(){

string text;

cin>>text;

cout<<text;

return 0;

}



Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote