Question: Using C programming language solve these problems Problem 1 Prompt user for three numbers. Put them in an array. Make a function ( or find

Using C programming language solve these problems Problem 1Prompt user for three numbers. Put them in an array. Make a function (or find existing ones) to Calculate the sum of the three numbers and a function to Calculate the average, call them and then display resultsProblem 2Above the main functionMake a struct called Employee with attributes for name, hours worked, and pay rate. Make a procedure #1/ This procedure takes the struct (address) as a parameter. This procedure will Output a greeting to the user and then Prompt user to enter name, number of hours worked and pay rate. and then populates the name, hours worked and pay rate as initializing parameters.Make a procedure #2/ This procedure takes the struct (address) as a parameter. that will calculate their gross pay (multiply number of hours worked by pay rate). Have it prints out the name, hours worked and pay rate, and the gross pay you just calculatedMake your main function. In your main function you will declare an employee struct, then pass the struct to procedure #1 by address and have procedure 1 populate it. Then, pass the struct to procedure #2 by address where procedure #2 will calculate gross pay and print the name, hours worked and gross pay.Problem 3Prompt the user for a username and password. Continue to do so until they enter Magic for the username and Kingdom1 for the password. Problem 4Prompt the user to enter the replacement cost of a building. Calculate 80% of the value and tell them thats what Allstate is willing to cover.Print answer using two decimal places precision

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!