Question
(C++) Fill in the blanks so that the exact output given below will be generated when the following program is run. NOTE: Do not copy
- (C++) Fill in the blanks so that the exact output given below will be generated when the following program is run.
NOTE: Do not copy the entire program. ONLY write out the code in the blanks and number your blanks as 1, 2. 3, etc.
#include
using namespace std;
int main()
{
int int1, int2, int3;
int int4 = 3;
int int5 = 15;
double double1, double2;
int1 = ____________; // divide two NONE-zero integers
int2 = ____________; // divide an integer by a floating number
int3 = ____________; // divide two floating numbers
double1 = _________; // divide two NONE-zero integers
double2 = __________; // divide an integer by a floating number
cout << int1 << endl;
cout << int2 << endl;
cout << int3 << endl;
cout << double1 << endl;
cout << double2 << endl;
cout << ________ << endl; //increment int4
cout << ________ << endl; //increment int4
cout << ________ << endl; //int5 modulo an integer
___________________; //multiply int5 by an integer and assign to int5
cout << int5 << endl;
cout << "______________________"; //fill in the string
cout << "______________________"; //fill in the string
cout << '___' << endl; //Fill in a single character
return 0;
}
Output:
0
1
2
0
1.5
3
5
3
30
Jan Feb Mar
Apr May
Jun JulAug Sep
Oct Nov DecX
Step 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