Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Simple pay calc Calculate the amount of pay, given employee name, hours worked, and hourly rate. ( The formula to calculate payroll is pay =

Simple pay calc
Calculate the amount of pay, given employee name, hours worked, and hourly rate. (The formula to calculate payroll is pay = hourly
rate * hours worked.) use numeric functions from prior assignment to calculate. Display employee name, hourly rate, hours worked,
and pay. (Do not add any rules such as overtime)
The user will calculate the pay for multiple employees. Here is a sample output:Assignment Guidelines
You will add the following options to the menu selection "Calc MPG", "Calc Simple Pay", "View MPG Calculations", "View Simple
Pay calculations", "Save MPG to file", "Save Simple Pay Calc to file", "View MPG file", "View Simple Calc file"
You need to use C-structure for the following functions to store the data:
MPG
Calculate the average miles per gallon obtained on a trip. Input car name, trip name, the amount of gas used, and the number of
miles driven. (The formula to calculate miles per gallon is miles per gallon = number of miles driven / amount of gas used) Display
car name, trip name, gas used, miles driven, and MPG. use numeric functions from prior assignment to calculate.
The user will calculate the MPG for multiple trips. Here is a sample output
Honda home to beach miles =200 gallons =10mpg=20
Fiat home to market miles =60 gallons =2,mpg=30
image text in transcribed

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_2

Step: 3

blur-text-image_3

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

Pro PowerShell For Database Developers

Authors: Bryan P Cafferky

1st Edition

1484205413, 9781484205419

More Books

Students also viewed these Databases questions