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

i need help with the formatting of the precision. how to set precision in c++ fo

ID: 3560887 • Letter: I

Question

i need help with the formatting of the precision.

how to set precision in c++ for one value and unset precision for another?

the instructions are

The first set is the user's age (in whole number years) and name (first and last), in that order, each on its own separate line, following its prompt. The second set is the current outside temperature (in floating point degrees F), and the user's location (city), in that order, each on its own separate line.After both sets have been read in, calculate two values: (1) the user's age one year from now, and (2) the temperature in degrees C. Finally, print the 4 input values and the two calculated values

Here are the specifications, in addition to the universal requirements and programming conventions explained in lab 1b above:

Explanation / Answer

// Lab 1, Programming Conventions, to read and print two sets of inputs, with two calculated values. // Programmer: Worlds worst programmer // Editor(s) used: XP Notepad // Compiler(s) used: VC++ 2010 Express // preprocessor directive for streaming, variable, and ending statement. #include using std::cin; using std::cout; using std::endl; // preprocessor directive for string, and variable string. #include using std::string; using std::getline; //preprocessor for the decimal placement. #include using std::ios; using std::setprecision; #include int main() { //Jesse Burns program number 1: the basics. cout