Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
image text in transcribed

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

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions

Question

15 lim 84x 3 n 1 7 1 3 n 1 2 3 n 1 1 1 3 3 n I

Answered: 1 week ago