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

  Template method patern from the strategy pattern

The template method pattern and the strategy pattern both abstract some computation in the form of methods. What de ning characteristic distinguishes the template method patern from the strategy pattern? Explain your answer.

  Program to compute and show miles per gallon

Create the program in C++ which will input miles driven and gallons used (both as integers) for each tankful. Program must compute and show miles per gallon.

  Each person in your team will complete one sequence

each person in your team will complete one sequence problem problem 1 or 2. one selection problem problems 3 4 or

  A class is derived from another one

In C++, when a class is derived from another one, you can specify the inheritance relationship as public, private or even protected. What are the main differences a between these types of inheritance in C++? How does a public inheritance differ from ..

  Write a c++ program that would take two 3x3 matrix

Write a C++ program that would take two 3x3 matrix and outputs the results of adding, subtracting and multiplying two matrices. Create at least three functions: one that performs addition,

  Create a graphical calculator with buttons that can add

create a graphical calculator with buttons that can add subtract multiply divide - sin cos tan clear and modulus.write

  Recursive function returns number of vowels in a string

Write a recursive function, vowels, that returns the number of vowels in a string and write a program to test your function.

  Lab11

ltbrgt

  Use selection sort to sort a[48] into increasing order

Use selection sort to sort A[48] into increasing order, and then print out the sorted list in four rows. There may be duplicates, but that's OK. (65 and 53 appear twice.) Duplicates will appear next to each other in the sorted list.

  Class named realestate that has data members

Create a class named RealEstate that has data members to hold the price of a house, the number of bedrooms, and the number of baths. Member functions include overloaded insertion and extraction operations

  Define a base class to use for the entire program

Your company, Datamax, Inc., is in the process of automating its payroll systems. Your manager has asked you to create a program that calculates overtime pay for all employees.

  Create the roman.h and implement roman class in roman.cpp

Create the roman.h and implement the Roman class in roman.cpp. Make sure that you put in measures to prevent multiple inclusion of the header file. Test your implementation using task2a.cpp.

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