Question: .Copy of the source code (.c file) saved as an electronic attachment to Assignment 2 located in Canvas under Assignments. .A single word document with

 .Copy of the source code (.c file) saved as an electronic

.Copy of the source code (.c file) saved as an electronic attachment to Assignment 2 located in Canvas under Assignments. .A single word document with screen shots of the output of each of the programs Observe the usual guidelines regarding the initial comment section, indenting, and so on. Write a program that will use the random number gencrator, seeded with time, to generate 5 integer values between 10 and 50. Print all 5 numbers and their average(the numbers are all ints. ..should the average be a int as well?) i. 2. Write a program that prompts a user to enter the sides of two right triangles, al and bl (for triangle 1) and a2 and b3(for triangle 2). Then calculate the length of the hypotenuse of each triangle, cl for triangle 1 and c2 for triangle 2 You must use pow) and sqrt) library functions for this problem. Output a, b, and c for each triangle, rounded to two decimal places. Use the following data to test your program: al 2.4 b 3.2 a2 6.2 b2-4.3 . Write a program will generate three angles between 10 and 80 degrees using the random number generator seeded with time Calculate the sin and cos of each angle. Output the angle, sin, and cos in a table with labels at the top. The angle should show one decimal place. The sin and cos should both be showing 4 decimal places

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