Trace the following programs and tell what each will display. (Some require a calculator.) A) (Assume the user enters 38711. Use a calculator.) #include using namespace std; int main() { double...



Trace the following programs and tell what each will display. (Some require a calculator.)


A) (Assume the user enters 38711. Use a calculator.)


#include


using namespace std;


int main()


{


double salary, monthly;


cout <>


cin >> salary;


monthly = static_cast(salary) / 12;


cout <><>


return 0;


}


B) #include


using namespace std;


int main()


{


long x, y, z;


x = y = z = 4;


x += 2;


y -= 1;


z *= 3;


cout <><><><><>


return 0;


}


C) #include


using namespace std;


#define WHO "Columbus"


#define DID "sailed"


#define WHAT "the ocean blue."


int main()


{


const int WHEN = 1492;


cout <><><><><>



<><><>


return 0;


}



May 26, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here