Program - cosc

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

Program - COSC

This assignment is based on Programming Exercise.

Input:  The input file has the needed data on a single line. There is text as well as the numerical inputs. One sample input line is

Pay rate:  $15.50 per hour. Weekly hours worked: 25    17.5  30   35.75    32

A second example of an input line is

Pay rate:  $12     Hours worked each week: 40  38  30.5  27.5  39

So, the text can vary, but you can count on (1) a dollar sign ($) appears just before the value of pay per hour, (2) a colon (:) appears just before the five values for the number of hours worked each week, and (3) the hours worked values are separated by spaces.

Your program must be able to handle ANY input line that meets these specifications. (You cannot have a different version of the program for each input line.)

Output: The output file will have a table with 2 columns. The left column has the labels telling what each value is; labels are left-justified. The right column has the money value, with 2 decimal places. There is a dollar sign ($) to the left; the money amounts line up on the right (right-justified) so all the decimal points line up vertically.

A sample output follows. (The values are for $15 per hour, and 40 hours worked each week.)

Summer Job Income                                                                $               3000.00

Taxes                                                                                   $                 420.00

Income After Taxes                                                                 $               2580.00

Clothes and Accessories                                                           $                 258.00

School Supplies                                                                      $                   25.80

Remaining Money                                                                    $               2296.20

Amount Spent on Savings Bonds                                                $                 574.05

Amount Parents Spend on Bonds                                                $                 287.03

Reference no: EM13676799

Questions Cloud

Market clearing level would a deadweight loss result : Suppose the supply curve is completely inelastic if the government imposed a price ceiling bellow the market clearing level, would a deadweight loss result? explain
Determine how long does it take package to reach the bottom : Two packages at UPS start sliding down the 40 degree ramp. Determine how long does it take package A to reach the bottom
The seven developmental periods covered in course : The seven developmental periods covered in course infancy toddlerhood
Determine the mass of an electron : Determine the mass of an electron where de Broglie wavelength is 1 nm moving at speed of 730000 meter per second
Program - cosc : Assignment is based on Programming Exercise - The input file has the needed data on a single line. There is text as well as the numerical inputs.
Find what would the final temperature of the mixture be : If we mixed 0.800 kilogram of iron at 80 °C with 0.400 kilogram of ice at -5°C, find what would the final temperature of the mixture be
Prevent the effects of stress : Prevent the effects of stress?
Determine the resulting temperature of the mixture : 11 kilogram of ice at -10 °C is heated and melted into water until water reaches a temperature of 50 °C. Determine the resulting temperature of the mixture
Comparing the personality theories of freud : Comparing the personality theories of Freud

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