[Solved]Control Structures Fill Blank Following Code Program Print Based Conditions Programs Check Q37170076

Control Structures- Fill in the blank in the following code; what should the program print? Based on the conditions in the programs that check the x variable value: 1. #include(iostream> using namespace std: void main() int x; “<kendl: // (a) cout<<“x value is İE( x8.aa..) { “<<endl;// (b) cout<<“x value is digits”<<endl://(c) coutくく”z valu0 contains 2. Body Mass Index Calculator (BMI) calculator formulas for calculating BMI is weightinkilograms heightInMeters × height!nMeters BMI Create a BMI calculator application that reads the user’s weight and height then calculates and displays the user’s body mass index. Print “Underweight” if the BMI result is less than 18.5 Print “Normal” if the BMI result is between 18.5 and 24.9 Print “Overweight” if the BMI result is between 25 and 29.9 .Print “Obese” if the BMI result is 30 or greater a) Write the program (C++ source code) Ask the user to type in a word, one character at a time, and print how many uppercase letters are contained in the word. The word is terminated by a carriage return. Hint: The computer should continue to read in one character at a time and count those that are upper-case characters until a carriage return is read. Look at the following questions and answer them with Ct+ expression(s) or statement(s) .What is the loop’s logical expression? 3. What needs to be updated in the logical expression? What control form of the while loop should be used, i.e., count, sentinel, EOF, flag, or other event controlled? .Why was this particular construct chosen? What needs to be initialized before the while loop? What should be placed inside the loop? .What is known when the loop finishes? a) Based on the above C++ statements you have, write the program (C++ source code) b) Screen shot of the output Show transcribed image text Control Structures- Fill in the blank in the following code; what should the program print? Based on the conditions in the programs that check the x variable value: 1. #include(iostream> using namespace std: void main() int x; ”
Expert Answer
Answer to Control Structures- Fill in the blank in the following code; what should the program print? Based on the conditions in t… . . .
OR

