Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is the output of the following pseudo-code segment? ** In pseudo-code, you ignore syntax errors and focus on the logic ** score = 105

What is the output of the following pseudo-code segment? ** In pseudo-code, you ignore syntax errors and focus on the logic ** score = 105 if (score >= 70) print "C" else if (score >= 80) print "B" else if (score >= 90) print "A"
A
B
C
None of the above
2. Program to read an integer and print if it is odd or even...
 Write a program which reads an integer and prints ODD or EVEN depending on whether the integer it read is an odd or even number. For example, if the input is 3, output should be 3 is ODD
Sample console I/O execution sequence
Enter an integer and I'll tell you if it is odd or even: 3 3 is ODD
#3 Read two distinct integers and print the maximum...
Write a program that reads two distinct integers and prints the maximum of the two integers. For example, if the input is 1 2, output should be 2.
Sample console I/O execution sequence
Enter two integers: 1 2 The maximum of 1 and 2 is: 2
#4. Program to find maximum of integers...
Write a program that reads three distinct integers and prints the maximum of the three integers entered. For example, if the input is 3 1 2, output should be 3.
Sample console I/O execution sequence
Enter three distinct integers: 3 1 2 The maximum is: 3
5 Program to find median...
Write a program which reads 3 distinct integers and prints the middle (median) of the three numbers when the numbers are in order. For example, if the input is 3 1 2, output should be 2. Or if the input is 5 6 2, the output should be 5.
Sample console I/O execution sequence
Enter three integers and you will get the median: 3 1 2 The median is: 2
Enter three integers and you will get the median: 5 6 2 The median is: 5

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

More Books

Students also viewed these Databases questions

Question

4. Explain the strengths and weaknesses of each approach.

Answered: 1 week ago