Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The language is C++ The previously declared variables are: char var4, int var5, and float var6 To display please use printf() instead of cout 2)
The language is C++
The previously declared variables are: char var4, int var5, and float var6
To display please use printf() instead of cout
2) Console Input A. Copy and reuse the previously declared three variables created from part one B, and perform three input statements for each of those variables. Display them after the input is complete. B. Declare and initialize three variables var7 of the type char, var8 a string, and var9 a float. Input into the three variables in your program in the same order and use a get(), a getline(), and the extraction operator >>, respectively. Yes, it has to be in that order. C. Declare a string vario, and see if you can limit the input to 10 characters only. D. Declare two integer type variables (var11 and var12) and take their values using only one cin >>, that is do this input in the same statement. E. Declare a string variable var13, input "howdy there" using the extraction operator and print it. Next, add more statements for this task that creates another short int variable, var14, and try to input the value 77 into this variable and print. It should not work properly. You will need to do something (add more code) to make the program work again. Make the program work again. Add a comment to describe what you didStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started