logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

The purpose of this lab project is to expose you to Loops, enforce functions, proper use of by-value/by reference, and to expand your skills in writing larger/more sophisticated programs.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Project 4

Objective:

The purpose of this lab project is to expose you to Loops, enforce functions, proper use of by-value/by reference, and to expand your skills in writing larger/more sophisticated programs.

 Problem Specification: 

The Passaic County Contracting Company, PCCC, negotiates building projects/job contracts. For each contract, the company have to subcontract an electrician to do the electrical, a plumber to do the pluming, a roofer to do the roofing, and a landscaper to do the landscaping. All other work is done internally by their employees. For each project they assign a minimum of 5 employees who are paid salary that varies from employee to employee. The company orders and pays for material which consists of wood, concrete, windows, doors, sheetrock and spackle.

 

As the programmer for PCCC, they assigned you the task of writing a C++ program to accept the number of the projects/jobs that PCCC has won.  

For each contract, the program should accept:

  • The amount of the contract
  • The amount they paid each subcontractor.
  • For internal work:
    • The salary for each of the employees working on the project, is entered as input until the sentinel 0 is entered (the number of employees is unknown but a minimum of 5 per contract).
    • The cost of the material for each of the items listed above.
  • For each contract the program should output to a file, the amount of the contract, the cost of the contract, and the profit/loss from the contract.
  • At the end, the program will output, to the same file:
    • the total electrical cost, total plumbing cost, total roofing cost, total landscaping cost, total cost for material and total cost for salaries for all contracts
    • it then outputs to the same file, the total of all contracts, the cost for all contracts, and the profit/loss for all contracts.

 

 

Requirements:    

  • Comment as needed.
  • All functions have specifications.
  • All data is passed by value / by reference as appropriate.
  • Main is the driver function, hardly any statements other than function calls, may appear in main.
  • Use loops as is appropriate to complete the specified task/subtask.
  • Calculate all totals as requested.
  • Write the report to a file with proper headings, identifications … etc 

Hints:        

  • Be sure to initialize your accumulators appropriately.
  • Keep running totals and grand totals between different contracts.

 

(5/5)
Attachments:

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

. Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Husnain SaeedComputer science

726 Answers

Hire Me
expert
Atharva PatilComputer science

524 Answers

Hire Me
expert
Chrisantus MakokhaComputer science

873 Answers

Hire Me
expert
AyooluwaEducation

900 Answers

Hire Me

Get Free Quote!

392 Experts Online