Calculate amount of money that should be paid to employees

Assignment Help Computer Engineering
Reference no: EM131145322

You are tasked with creating a mileage caclulator to calculate the amount of money that should be paid to employees.

The mileage is computed as follows:

An amount of .25 for each mile up to 100 miles An amount of .15 for every mile above 100. So 115 miles would be (.25 * 100) + (.15 * 15) This can all be coded using a mathematical solution but I want you to use an if / else statement. Here is how you are to implement it: If the total miles input is less than or equal to 100 then simply calculate the miles * .25 and output the amount otherwise compute the total amount for all miles mathematically.

Input: Total number of miles Process: dollar amount owed for miles driven Output: Amount of money due * Please note that you should simply do calculations within the if and else statements. This mean no cin or cout within if or else. Do it afterward.

Reference no: EM131145322

Questions Cloud

Find the minimum of n numbers using library : Write a C++ program that finds the minimum of n numbers using library only and without using array
Computers based on novel technology developed : SCC Inc. makes desktop quantum computers. These are computers based on novel technology developed by SCC. It needs printed circuit boards (PCBs) for prototype computers in the R&D lab where they are being developed. SCC also needs other PCBs for curr..
Evaluate the policy''s output effects in this situation : Suppose a permanent rise in domestic government spending, by creating the prospect of future government deficits, also raises ρ, that is, makes domestic currency deposits more risky. Evaluate the policy's output effects in this situation.
What conclusions about the management of cash : The financial statements of The Hershey Company are presented in Appendix B, following the financial statements for Tootsie Roll Industries in Appendix A.
Calculate amount of money that should be paid to employees : You are tasked with creating a mileage caclulator to calculate the amount of money that should be paid to employees.
Describe viable alternatives considered to resolve situation : Describe the viable alternatives you considered to resolve the situation. In this section, you will analyze which solutions/practices might be feasible for your company.
Identify and explain your competitors : Discuss the following: Identify the small business and the type of product that will be introduced internationally. Choose a country you will first introduce the product
Regarding the indirect pattern of organization : Regarding the indirect pattern of organization, is it manipulative to delay the presentation of the main idea in a message? Share an experience when you have had to indirectly present information, whether good new or bad news.
What was the net cash used by investing activities : What was the amount of net cash provided by operating activities for 2007? For 2006? What were some causes of any significant changes in cash from operations between 2006 and 2007?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Make a list of files that are world-writable

make a crontab to perform the tasks listed below at the frequencies specified. Note that you do NOT need to write the actual scripts.

  Purpose of testing

Describe the purpose of testing. Discuss how tests are carried out at different levels within the system.

  Consider the reasons implementations fail for at least

1. consider the reasons implementations fail. for at least three of these reasons explain why this happens if there is

  Calculate the output value of problem

Design a program that reads in a text file with drawing commands and then outputs a bitmap with all the items drawn correctly

  Companies still fail in their use of information technology

Why do big companies still fail in their use of information technology? What should they be doing differently.

  To what percent of its normal speed is the computer reduced

To what percent of its normal speed is the computer reduced during a DMA transfer if each 32-bit DMA transfer takes one bus cycle?

  Explored the topics of digital forensics and investigations

During this module, you explored the topics of digital forensics and investigations. You have undoubtedly heard about, and now read about, some types of computer misuse

  Is there a flaw in this scheme

Information & Network Security. Alice and Bob agree to communicate privately via email using a scheme based on RC4, but they want to avoid using a new secret key for each transmission.

  Demonstrate how this search would go

assume an algorithm that processes a data set of size 8 has a runtime of 72, and the same algorithm on a data set of size 20 has a runtime of 420. Using big-O notation, state runtime for this algorithm for the general case of a data set of size n.

  What condition is it appropriate to buy commercial

Under what condition is it appropriate to develop software in house and Why? Under what circumstances is it appropriate to commission development of custom software? Why? Under what circumstance is it appropriate to buy commercial or COTS software..

  Creating flowchart and pseudocode utilizing control breaks

Generate a Flowchart and Pseudocode utilizing the Control Breaks for Xhemrock is a brake pad manufacturing company. This company utilizing the raw materials like carbon powder, ash, iron, and resin.

  Write down each interaction between you and your smartphone

Suppose your smartphone as a system and use its calendar to set a calendar event with a reminder for your birthday.

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