Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

After using the suitable compiler for C programming language, Please use the print screen for the output of each question and paste it on the

After using "the suitable compiler for C programming language", Please use the "print screen" for the output of each question and paste it on the file of the "Microsoft Word" , and also save the answer of each question separately as 'file.c' i.e the code of the program And put the "print screen" and the 'file.c' in separate folder for each question and rename the folder according to the number of the question. The deadline to submit the project of ECC101 is Saturday: 16.01.2021 1- (Arithmetic) Write a program that asks the user to enter two numbers, obtains them from the user and prints their sum. 2 .(Multiples) Write a program that reads in two integers and determines and prints whether the first is a multiple of the second. [Hint: Use the remainder operator.] 3- (Odd or Even) Write a program that reads an integer and determines and prints whether itsodd or even. [Hint: Use the remainder operator. An even number is a multiple of two. Any multiple of two leaves a remainder of zero when divided by 2 4- (Diameter, Circumference and Area of a Cirle) Write a program that reads the radius of a circle (as a float value) and computes and prints the diameter, the circumference and the area. Use the value 3.14159 for . 5- (Comparing Integers) Write a program that asks the user to enter two integers, obtains the numbers from the user, then prints the larger number followed by the words is larger. If the numbers are equal, print the message These numbers are equal. Use only the single selection form of the if statement you learned in this chapter. 6- (Largest ) Write a program that reads in three integers and then determines and prints the largest integers in the group. Use only the programming techniques you have learned in this chapter. 7 .(Smallest) Write a program that inputs three different integers from the keyboard, then prints the smallest largest of these numbers. Use only the single-selection form of the if statement 8- (Sides of a Triangle) Write a program that reads three nonzero integer values and determines and prints whether they could represent the sides of a triangle. 9- (Factorial) Write a program that reads a nonnegative integer and computes and prints its factorial. 10. Write a program that: will print A for exam grades greater than or equal to 90, B for grades greater than or equal to 80, C for grades greater than or equal to 70, D for grades greater than or equal to 60, and F for all other grades.

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

Oracle Database Foundations Technology Fundamentals For IT Success

Authors: Bob Bryla

1st Edition

0782143725, 9780782143720

More Books

Students also viewed these Databases questions