Question: Please help me to answer the question below in C++ language: Question 1: If you include the following code within your program and then choose

Please help me to answer the question below in C++ language:

Question 1:

If you include the following code within your program and then choose compile and run,

what happens?

const int x = 6;

x /= 3;

cout << x;

Question 2:

Complete the following code fragment by writing code to calculate

what percentage of a pizza has been eaten.

int slicesEaten = 3;

int totalSlices = 8;

double percentEaten;

/*

Your calculation code here would go here, but you type it in the answer.

*/

// The code to print the value of percentEaten goes here,

// but is not shown (you do not need to code this)

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 Databases Questions!