Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ CSIT 575-Programming Fundamentals for Computer Science Lab #5B Obiectives To learn to code, compile and run a program using file input and an output

C++

image text in transcribed

CSIT 575-Programming Fundamentals for Computer Science Lab #5B Obiectives To learn to code, compile and run a program using file input and an output file ignme Plan and code a program utilizing one file for input and one file for output to solve the following problem Orlando Tree Service, Incorporated, offers the following services and rates to its customers Tree removal Tree trimming Stump grinding 300 per tree $50 per hour $ 20 per stump plus $2.00 per inch for each stump whose diameter exceeds ten inches. The $2.00 charge is only for the diameter inches in excess of ten. Write a complete program to allow the manager to provide an estimate when he bids on a job. Your output should include a listing of each separate charge, discount, and totals. A 10 percent discount is given for any job whose total exceeds $1000.00 Output each separate charge, discount, and the total charges. Input Estimate information from text file (SEE BELOW). Create the data file below using you're text editor or Notepad. A typical entry from the input file: R 7T 6.5 G 8 8 10 12 14 15 15 20 25 (diameters of the stumps that were ground down, in inches) (7 trees removed, 6.5 hours trimming trees, 8 stumps ground down) Where: Tree removal The integer following R are the number of trees removed Trimming-The real number following T are the hours spent trimming Stump grinding. The integer following G represents number of stumps to be ground The second line (8 10 12..) are the diameters of the stumps ground, in inches. Data File R 7 T 6.5 G 8 8 10 12 14 15 15 20 25 R O T 2.0 G1 R 3 TO G 0 R 1 TOG 8 1 27 30 ROTOG 3 8 18 28 R 2 T 7.5 G 2 10 20 X 3 S 3.5 F3 2 3 4 Output Itemized estimate containing each separate charge and total charge to a file. Label al output clearly Turn in Program listing and program output. Be sure your output file contains what was input in addition to the results of your program processing. Label all output clearly. Output valid data to one file and all errors to an error file

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

More Books

Students also viewed these Databases questions

Question

What are the main strengths of the behavioral interview?

Answered: 1 week ago

Question

Understand the roles of signs, symbols, and artifacts.

Answered: 1 week ago

Question

Know the three main dimensions of the service environment.

Answered: 1 week ago