Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(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

  1. (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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Structure Of The Relational Database Model

Authors: Jan Paredaens ,Paul De Bra ,Marc Gyssens ,Dirk Van Gucht

1st Edition

3642699588, 978-3642699580

More Books

Students also viewed these Databases questions