Program to solve a simple payroll calculation

Assignment Help Basic Computer Science
Reference no: EM131186984

Problem 1: Write a program to solve a simple payroll calculation. Find the amount of pay given, hours worked, and hourly rate. (The formula to calculate payroll is pay = hourly rate * hours worked.) Use these values to test the calculation: Problem 1A (hours = 30 and rate = 8.52) and Problem 1B (hours = 53 and rate = 11.54). Display hourly rate, hours worked, and pay. Use the print command and make basic mathematical calculations.

Problem 2: Write a program that will calculate the average miles per gallon obtained on a trip. Input 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. ) Use these values to test the calculation: Problem 2 (number of miles driven = 298) and (amount of gas used = 12.17). Use the print command and make basic mathematical calculations

Reference no: EM131186984

Questions Cloud

What is the present value of cash outflows : What is the present value of cash outflows for each of these alternatives, using the after-tax cost of debt as the discount rate?
Communicating and relationships in negoatation : Consider this scenario: You and your brother work for your father’s successful family business, which employs 15 individuals. Your role has evolved from being the Chief Machinist to being the General Manager and main salesperson for the business. Exp..
What is the speedup obtained from fast mode : A) What is the speedup obtained from fast mode? B) What percentage of the original execution time has been converted to fast mode? Or what is the Fractionenhanced?
What indicates the big-o value of a given method : What represent the best-case, average-case and worst-case performance of an algorithm? Choose a common method studied in the prerequisite courses (for example searching for a given value in an array, adding a value to a linked list or to an array..
Program to solve a simple payroll calculation : Write a program to solve a simple payroll calculation. Find the amount of pay given, hours worked, and hourly rate. (The formula to calculate payroll is pay = hourly rate * hours worked.) Use these values to test the calculation: Problem 1A (hours..
Packet sniffer in situation : Provide one (1) example of a situation where the use of a packet sniffer might be justified. Explain why you believe it would be okay to use a packet sniffer in this situation.
Managing family relationships in negotiation : Consider this scenario: You and your brother work for your father’s successful family business, which employs 15 individuals. Your role has evolved from being the Chief Machinist to being the General Manager and main salesperson for the business. Exp..
Potential sources of evidence are substantial : Analyze the usefulness of firewall and router logs and why these potential sources of evidence are substantial enough to analyze. Determine whether or not you believe traffic analysis with a sniffer is necessary with the proper acquisition of fire..
Healthcare to continue to succeed over the next decade : The management practices of past decades may not be adequate to meet the challenges of a changing workplace and changing workforce. What management style and/or philosophy changes do you predict for your organization/healthcare to continue to succeed..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Privacy on a desktop application

How does data privacy on a mobile device differ from privacy on a desktop application?

  General syntax of an sql

In a VBScript SQL Query statement, what Boolean operator can be used to test a set of conditions whereby all conditions must be true?

  How does lossy compression help

How does lossy compression help

  Use ethernet network data link protocols

Is possible to use Ethernet network data link protocols on a Token Ring network? Explain why or why not.

  Examine how coppa and cipa are similar and how they are

write a three to five 3-5 page paper in which you describe the main compliancy requirements and the protected

  Describe the general tree adt

Describe the General Tree ADT. Discuss different ways for implementing general trees, and compare them in terms of the efficiency of search operations.

  Write a select statement that will display student details

Write a select statement that will display student id, student last name and the number of courses a student has been enrolled. You will need to join two table, use a COUNT aggregate and a GROUP BY clause in your SELECT statement.

  What can you conclude about this project

In fact, progress for the first 20 days has been: 2, 3, 4, 6, 7, 9, 12, 14, 15, 17, 20, 21, 21, 22, 24, 26, 27, 29, 31, 33. What can you conclude about this project?

  Using the types of entities found in the henry

Using the types of entities found in the Henry Books database (books, authors, and publishers), create an example of a table that is in first normal form but not in second normal form and an example of a table that is in second normal form but ..

  Difference between descriptive analytics-predictive analytic

What is the difference between descriptive analytics, predictive analytics, and prescriptive analytics? Provide examples of each.

  Write a program that accepts as input a number of oranges

Write a program that accepts as input a number of oranges and produces as output the minimum baseline requried at the lowest level so that all of these oranges can be included in this stack. The number of oranges is always a positive integer.

  Sustainable and effective use of health care information

Once an information system is implemented, it is important that an organization's leadership demonstrate a continued commitment to that system through rigorous and routine support and maintenance.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd