Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

.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

image text in transcribed
.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

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

Students also viewed these Databases questions

Question

Why do mergers and acquisitions have such an impact on employees?

Answered: 1 week ago

Question

8. Do the organizations fringe benefits reflect diversity?

Answered: 1 week ago