Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 1 Lnai 9284

Authors: Annalisa Appice ,Pedro Pereira Rodrigues ,Vitor Santos Costa ,Carlos Soares ,Joao Gama ,Alipio Jorge

1st Edition

3319235273, 978-3319235271

More Books

Students also viewed these Databases questions