Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Read in the principal amount P , interest rate R , and number of years T , and calculate and print the simple interest earned

Read in the principal amount P, interest rate R, and number of years T, and calculate and print
the simple interest earned (I=PTR100). Also, draw a flowchart for the program logic and
procedure.
Write a program to convert temperature in degrees centigrade to Fahrenheit, and display the
result.
a. Read temperature in C from the keyboard.
b. Calculate the temperature in F and print it on the screen.
c. Draw a flowchart for the program logic and procedure.
Write a program to calculate and display the area and circumference of a circle.
a. Read the radius (in cm) from the keyboard.
b. Calculate the area in sq.cm and print it on the screen.
c. Calculate the circumference and print it on the screen.
d. Draw a flowchart for the program logic and procedure.
Draw a flowchart that explains the process of getting two numbers from the user and then
displaying which input is greater, smaller or if numbers are equal. Use
onlinegdb.com website to solve the following questions. For each of the
questions, you must show the source code (in text) and screenshots displaying
the results of running each program.
Write C code for finding the greatest of 3 numbers according to the following flowchart. Use
the conditional operator "?".
Suppose that you have to print the grades of a student, with 90 marks getting A+,80-89
getting A,70-79 getting B,60-69 getting C,50-59 getting D,35-49 getting P and 30 getting
F. Read in the marks of a student and print his grade. Rewrite the following code using if-else statements:
Read in 3 integers and print a message if any one of them is equal to the sum of the other two.
Read in the coordinates of two points and print the equation of the line joining them in y=mx
+c form.
Read in the coefficients a,b,c of the quadratic equation ax2+bx+c=0, and print its roots
nicely (for imaginary roots, print in x+ iy form)
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

Oracle9i Database Administrator Implementation And Administration

Authors: Carol McCullough-Dieter

1st Edition

0619159006, 978-0619159009

More Books

Students also viewed these Databases questions