Question: Consider the following class of a c + + code. [ Prob . 6 . Fundamental of Programming ] Your answers should be written in

Consider the following class of a c++ code.[Prob.6. Fundamental of Programming]
Your answers should be written in Korean or English.
For programming problems, you can assume that all the "include" statements and
"namespace" statements are already written, and you are allowed to omit them.
(24p) Consider the following program:
void main()
{
int a=7,c;
double b=2.6,d, e;
c=a2+0.6;
d=a2+0.6
e=()(b2+3.9);
}
Write the values of c,d, and e after the execution of the above program,
and explain why.
(30p) Write a C or C++ program that receives one alphabet character
among 'A','a','B','b','C','c' from the keyboard, and output some message
according to the received character. If the character is 'A' or 'a', output
"Excellent", and if it is 'B' or 'b', output "Good", and if it is 'C' or 'c',
output "Not too bad" If the received character is none of them, repeat the
above procedure again. Your program will repeat this procedure until the
received character is one of the proper character.
 Consider the following class of a c++ code.[Prob.6. Fundamental of Programming]

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!