Question: CE 1 0 1 Computer Programming I Lab Homework LAB # 2 :For problems 1 - 7 design an algorithm; implement a C program and

CE101 Computer Programming I Lab Homework LAB #2:For problems 1-7 design an algorithm; implement a C program and run on your PC! Lab p-1)Find the largest value of the given two integers. Lab p-2)Find the largest value of the given two integers using conditional operator. Lab p-3)Write a program on following algorithm: Algorithm: Enter a grade; Print A if exam grade is >= to 90 Print B if exam grade is >= to 80 Print C if exam grade is >= to 70 Print D if exam grade is >= to 60 Print F for all other grades. Lab p-4)Write a program that reads three nonzero float values and determines and prints if they could represent the sides of a triangle. Theorem: The sum of the lengths of any two sides of a triangle must be greater than the third side.C+B>AA+C>BB+A>C Lab p-5)Write a program that reads a four-digit number and finds the sum of the individual digits. Exp 5234->5+2+3+4=14 Lab p-6)Write a C program that inputs four different integers from keyboard, and then print the sum, the average, and the product and integer division of each pair. (Pair 1 is 3&4 and pair 2 is 5&6 according to below example). Use if statement and the screen dialogue should appear as follows: Example: the integers are sequentially ordered as: 3,4,5,6, Pair 1 Pair 2Format required on screen: Please input four integers: Sum is: Average is:Product: First and second pair divisions are: Lab p-7)Write a c program that will check if a given number by the user is Prime Number or Not Prime Number. (use while loop in programming)Example Output:Enter Number: 23Prime NumberExample Output:Enter Number: 24Not Prime Number

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 Programming Questions!