Question: Master Lab Assignn Microsoft-ImagineCreate account C no al packages Microsoft MicrosoftEdge 8 ekybadebb erem State Downloads Master%20ab%20Assign no CSIT 575-Programming Fundamentals for Computer Science Lab
Master Lab Assignn Microsoft-ImagineCreate account C no al packages Microsoft MicrosoftEdge 8 ekybadebb erem State Downloads Master%20ab%20Assign no CSIT 575-Programming Fundamentals for Computer Science Lab #5C Objectives To learn to code, compile and run a program using file input and an output file Assignment Plan and code a program utilizing one file for input and one file for output to solve the following problem: Write a complete program to calculate painting costs for customers of Top Quality Home Painting Service. All data will be input from a file (see below). Input data from a file. Determine the cost for interior painting, the cost for exterior painting, and the cost for the entire paint job. Any painting estimate greater than $1000.00 receives a 10% discount. Label and output all data (customer initials, customer account number, interior square feet, cost per interior square feet, exterior square feet, cost per exterior square feet, total interior cost, total exterior cost, any discount and total cost) to an output file. If any data record contains an error, output the data to an error file with a message indicating what caused the error. Your instructor will clarify what will be considered an error in the data file. Input Input data from a file. One record of data contains the following sequence of data: ABC 1234 400 3.50 850 5.50 3 customer initials, customer account number (4 digit integer), the number of interior square feet to be painted, the cost per square foot for interior painting, the number of exterior square feet to be square foot for exterior painting. painted, the cost per Create the data file below using your text editor or Notepad. Data File ABC 1234 400 3.50 850 5.50 DEF 1345 100 5.25 200 2.75 GHI 2346 200 10.00 0.0 KL 4567 375 4.00 50 4.00 MNO 5463 200 5.0 150 3.00 POR 679 0.0 100 3.50 STU 6879 1000.0 100 0.0 vwx 7348 0.0750 0.0 XYZ 9012 -24 5.0050 5.00 Output Output and label all input and calculated data (three initials, customer account number, interior square feet, cost per interior square feet, exterior square feet, cost per exterior square feet, total interior cost, total exterior cost valid data t
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
