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

  Use an adjacency matrix to represent the graph

Repeat the previous programming problem, but represent the graph using an adjacency list instead of an adjacency matrix.

  Identify hosts within the network

Identify hosts within the network.

  Explaining geographical information systems

Considering this, explain in scholarly detail some suitable examples of geographical information systems and how they are utilized in supporting both marketing and sales.

  Create wireframes for the five pages of your proposed design

This step in redesigning the spa website will be to create wireframes for the five pages of your proposed design. Specifically, you will address the following.

  Research paper will focus on issues and concerns

Research paper will focus on issues and concerns with Patch Management.  With the advent of many types of software and systems, patch management is major nightmare.

  World trade organization international trade

The World Trade Organization International Trade Statistics is an annual report that provides comprehensive, comparable, and updated statistics on trade in merchandise and commercial services. The report allows an assessment of world trade flows b..

  Summer vacation working as a waiter

A college student earned $7300 during summer vacation working as a waiter in a popular restaurant. The student invested part of the money at 7% and the rest at 6%. If the student received a total of $458 in interest at the end of the year, how muc..

  What is the difference between led and laser transmitters

What is the difference between LED and laser transmitters

  Write the algorithm/logic for computing following problem

Given the dimensions of a crate (side 1, side 2, and side 3), find the largest surface area it can provide when used as a table.

  Evaluate the firm sustainable growth rate

Using the company's financial statements, calculate and evaluate the firm's sustainable growth rate (SGR) for the last 2 years, and summarize your findings in your paper. Be sure to address the following: 1 Word document 400-600 words.

  What is a copy constructor

What is a copy constructor? When would you use a copy constructor? Can you give an example?

  Prepare your advice for this company

What are the critical points, other than cost, that you need to consider in order to prepare your advice for this company? Your report to SoftArc should be about 2 pages

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