Program that calculates how much a person earns in a month

Assignment Help C/C++ Programming
Reference no: EM13166853

Write a program that calculates how much a person earns in a month if the salary is one penny the first day, two pennies the second day, four pennies the third day, and so on with the daily pay doubling each day the employee works. The program should ask the user for the number of days the employee worked during the month and should display a table showing how much the salary was for each day worked, as well as the total pay earned for the month. The output should be displayed in dollars with two decimal points, not in pennies.

Input Validation: Do not accept a number less than 1 or more than 31 for the number of days worked.
 

Reference no: EM13166853

Questions Cloud

Calculate the electrode potential : Calculate the electrode potential of the following half cell if it was at standard conditions. Then recalculate how this changes using.
How much heat must be provided to vaporize : Liquid butane, C4H10, is stored in cylinders to be used as a fuel. Suppose 30.4 g of butane gas is removed from a cylinder. How much heat must be provided to vaporize this much gas? The heat of vaporization of butane is 21.3 kJ/mol.
How much heat is evolved per mole of gas formed : When 1 gram of nitroglycern, C3H5(NO3)3, decomposes to form nitrogen gas, oxygen gas, gaseous carbon dioxide, and liquid water, 1.9 kcal of heat is evolved. How much heat is evolved per mole of gas formed in the decomposition of nitroglycerine?
Find the number of automobiles : The mass of an average blueberry is 0.76g and the mass of an automobile is kg. Find the number of automobiles whose total mass is the same as 1.0mol blueberries.
Program that calculates how much a person earns in a month : Write a program that calculates how much a person earns in a month if the salary is one penny the first day, two pennies the second day, four pennies the third day,
Calculate the number of grams of alcohol present : Calculate the number of grams of alcohol present in 1.00 L of 60. proof gin. The density of ethanol is 0.798 g/mL.
What is the mass of the liquid : If 12.5 g of CCl3F is enclosed in a 1.1 -,L container, will any liquid be present? What is the mass of the liquid?
How many grams of asprin were lost in the washing process : how many grams of asprin were lost in the washing process you used to purify your product, assuming you used 50mL if water for washing? The solubility of asprin in water is 0.33g per 100mL at room temperature.
Determine the empirical formula of greenockite : the mineral greenockite is a rare yellow sulfide of cadmium that is 78.0% cadmium and 22.0% sulfur by mass. Determine the empirical formula of greenockite.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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