Can anyone help me with ts question. I’ve been stuck on these exercises Transcribed Image Text: Open Microsoft Visual Studio, create

Excerpt
of the print. What happens? Make changes in the program Frame1 such that you can key in floating-point values and get a correct result that is displayed as a floating- point value. Make sure to update the prompts accordingly. Include your code and testing results

Can anyone help me with ts question. I’ve been stuck on these exercises Transcribed Image Text: Open Microsoft Visual Studio, create a new project called Frame1(use the same configuration as lab #1).
Enter the following program to your project as Frame1.cpp. Use ts program for exercises 1-3.
// Program Framelprompts the user to input values representing
// the dimensions of a print. The amount of wood needed for
// the frame is calculated and printed on the screen.
#include
Using namespace std;
int main()
{
int side;
int top;
int inchesOfWood;
// Vertical dimension in inches
// Horizontal dimension in inches
// Inches of wood needed
cout << "Enter the vertical dimension of your print." <« endl; cout << "The dimension should be in whole inches. " << "Press return." « endl; cin >> side;
cout << "Enter the horizontal dimension of your print." << endl; cout << "The dimension should be in whole inches. " << "Press return." « endl; cin >> top;
inchesOfWood = top + top + side + side;
cout << "You need " << inches0fWood くく " inches of wood." << endl; return 0; } Exercise 1. Read the program and answer the following questions before you run the program. a). How many lines of input does program Frame1 expect? b). What happens if you key both values on the same line with a blank between them? c). What happens if you key both values on the same line without a blank between them? Transcribed Image Text: Exercise 2. Compile and run the program. Verify your answers in Exercise 1. Show your results Exercise 3. Key in floating-point values as side and top of the print. What happens? Make changes in the program Frame1 such that you can key in floating-point values and get a correct result that is displayed as a floating- point value. Make sure to update the prompts accordingly. Include your code and testing results

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer