Question: QUESTION 1 [ 1 0 MARKS ] a ) Based on the outputs given in Figure 1 , complete the Program 1 with appropriate C

QUESTION 1
[10 MARKS]
a) Based on the outputs given in Figure 1, complete the Program 1 with appropriate C++ output formatting, i.e. setw, setprecision, showpoint, and fixed. Note: one cell represents one space per digit.
(7 marks)
Figure 1: Outputs for Program 1
//Program 1
#include
#include
using namespace std;
int main()
{
float a =1045.234, b =1.25551, c =33.44;
cout _________ a "" c endl;
cout _________ b endl;
cout _________ a endl;
cout __________________ b endl;
cout _________ c endl;
cout _________ a endl;
return 0;
}
v
QUESTION 1 [ 1 0 MARKS ] a ) Based on the outputs

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!