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

  Identify and explore contemporary challenge and opportunity

Demonstrate ability to collaborate with peers to analyse and solve business problems with information technologies, and present the solution in a report.

  When potential new suppliers compete for contracts

The company's newly hired VP of the IT is conducting this project because she does not have a security specialist on her staff and has learned that the company does not have the comprehensive security strategy. In fact, she suspects lack of even b..

  How to develop a simple scientific calculator

make a Clear button to clear the result text box and reset all controls.

  Medium access control methods

Task 1: Both the CSMA/CD with Token bus medium access control methods can be used in real time systems. Which one is better suited for real time applications? Explain.

  Write down an application that plays "guess the number"

Write an application that plays "guess the number" as follows: Your application chooses number to be guessed by selecting an integer at random in range 1-1000.

  Disadvantages of using each method

The first process is to create slides from scratch. This means starting each slide as a blank slide; inserting text boxes and formatted text; and then adding bullets and numbering, colors, clip art, charts, and graphics you might want to use.

  Java program that allows a user to enter three words

design a Java program that allows a user to enter three words, and displays the appropriate three-letter acronym (constructed from the input) in all uppercase letters. If user enters more than three words, ignore the extra words.

  What is a best way to address issues

What is the best way to address issues and concerns in a Real network management system (NMS) as it pertains to the processes that take place through out network discovery and mapping of the network.

  Mips single-cycle datapath processor

An instruction is being executed on the MIPS single-cycle datapath processor. Which class of instruction is being executed over the processor? b) Will you specify which instruction is being executing?

  According to return-on-investment analysis which candidate

you are designing a web-based system where your regional offices can submit their sales reports online instead of

  Define the divide-and-average algorithm

The divide-and-average algorithm for approximating the square root of any positive number a is as follows: Take any initial approximation x that is positive, and then find out a new approximation by calculating the average of x and a/x, that is, (..

  Define a symbolic equation for each

Define a symbolic equation for each, and solve by using MATLAB's symbalic capability.

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