Write a program that reads data from the specified file

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

1. Three employees in a company are up special pay increase. You are given a file, with the following data: Miller Andrew 65789.87 5 Green Sheila 75892.56 6 Sethi Amit 74900.50 6.1 Each input line consists of an employee's last name, first name, current salary, and percent pay increase. , in the first input line, the last name of the employee is Miller, the first name is Andrew current salary is 65789.87, and the pay increase is 5%. Write a program that reads data from the specified file and stores the output in the file Ch3_ Ex7Output.dat. employee, the data must be output in the following form: firstName lastName updatedSalary. Format the output of decimal numbers to two decimal places.

2. Write a C++ program that inputs a letter and outputs the corresponding International Civil Aviation Organization (ICAO) alphabet word (these are the words that pilots use when they need to spell something out over a noisy radio channel). Do not use case statements. The alphabet is as follows: A Alpha B Bravo C Charlie D Delta E Echo F Foxtrot G Golf H Hotel I India J Juliet K Kilo L Lima M Mike N November O Oscar P Papa Q Quebec R Romeo S Sierra T Tango U Uniform V Victor W Whiskey X X-Ray Y Yankee Z Zulu Be sure to use proper formatting and appropriate comments in your code. Provide appropriate prompts to the user. The output should be labeled clearly and formatted neatly.

Reference no: EM131308645

Questions Cloud

Rapidly and currently needs to retain all of its earnings : Computech Corporation is expanding rapidly and currently needs to retain all of its earnings; hence, it does not pay dividends. However, investors expect Computech to begin paying dividends, beginning with a dividend of $1.50 coming 3 years from toda..
Write least-squares regression equation for airports costs : Write the least-squares regression equation for the airport's costs. Predict the airport's costs during a month when 1,500 flights originate at the airport.
Discuss about the health care facility : The organization that a health care facility can distinguish will determine its potential success and the longevity of that success because preparation, patience and organization are vital. Health care facilities are constantly changing, advancin..
What is its capital gains yields-expected dividend yield : Taussig Technologies Corporation (TTC) has been growing at a rate of 15% per year in recent years. This same growth rate is expected to last for another 2 years, then decline to gn = 7%. What is its expected dividend yield at this time, that is, duri..
Write a program that reads data from the specified file : Write a program that reads data from the specified file and stores the output in the file Ch3_ Ex7Output.dat. employee, the data must be output in the following form: firstName lastName updatedSalary.
Ideas about locations to hold mediations : What are some other ideas about locations to hold mediations, disciplinary situation, and appraisals for employees? Examples with support.
What amount must nutty hospital borrow today : Assume that underwriting fees and other issuance costs will be 5% of the issue and that all debt service on the old issue must be met from the proceeds of the refunding issue and related investment income.
What is the company cost of preferred stock : A Company's perpetual preferred stock sells for $102.50 per share, and it pays a $9.50 annual dividend.  If the company were to sell a new preferred issue, it would incur a flotation cost of 4.00% of the price paid by investors. What is the compan..
Employee and labor relations : What should employee and labor relations look like in today's business environment if both the employee and the organization are going to prosper?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create class integerset

Create class IntegerSet for which each object can hold integers in the range 0 through 100. Represent the set internally as a vector of bool values. Element a[i] is true if integer i is in the set. Element a[j] is false if integer j is not in the set..

  Write a c program that prompts the user to enter some data

Write a C program that prompts the user to enter some data regarding some clients. The user should prompt for client account number (a UNIQUE positive integer between 1 and 1000).

  Calculate the total expenses if quantity and price per item

While purchasing certain items, a discount of 10% is offered if the quantity purchased is more than 1000. If quantity and price per item are input through the keyboard. Calculate the total expenses. Ramesh's basic salary is input through the keyboard..

  What do the loops print

What do the following loops print? Work out the answer by tracing the code, not by using the computer. a. int s = 1; for (int n = 1; n

  Support and troubleshooting checklist

Develop a support and troubleshooting checklist based on the five operating systems issues. Include:

  Develop a simple poker game

Develop a simple poker game

  Write a c++ function that removes and counts all occurrences

Write a C++ function that removes and counts all occurrences of a given string from such a bag. Your function should return this number.

  Write a c program for addition

Write a C Program for addition

  By a minimal interpretation that makes a formula

By a minimal interpretation that makes a formula true, we mean that if one atom is removed from the interpretation then the resulting interpretation does no longer make the formula true.

  Read ascii strings from standard input

Your program must read 8-bit ASCII strings from standard input -- for instance, using the cin object in C++, or stdin in C. You must consume all input from standard input

  Using virtual methods, organize the animals

Using virtual methods, organize the animals in a small zoo, having as guests lions, parrots, alligators, penguins, elephants, cobras, zebras, hawks, turkeys and rabbits.

  Describe an example of a base

Describe an example of a base and a derived class that shows base-class functions that are overridden in the derived class. Provide the syntax, showing the class definitions of both classes.

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