subject
Engineering, 05.05.2020 08:53 sajdshjad751

Write a program that will produce a report showing the current and max-imum enrollments for a number of classes. Your applications should be designed with two classes. The first class should include data members for the name of the course, current enrollment, and maximum enroll-ment. Include an instance method that returns the number of students that can still enroll in the course. The ToString() method should return the name of the course, current enrollment, and the number of open slots. In the implementation class, declare parallel arrays and do a compile-time initialization for the name of the course, current enroll-ment, and maximum enrollment. Also declare an array of class objects in your implementation class. Test your application with the following data:

Class name Current enrollment Maximum enrollment
CS150 180 200
CS250 21 30
CS270 9 20
CS300 4 20
CS350 20 20

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Which of the following components of a pid controlled accumulates the error over time and responds to system error after the error has been accumulated? a)- proportional b)- derivative c)- integral d)- on/off.
Answers: 2
question
Engineering, 04.07.2019 18:10
Hydraulic fluid with a sg. of 0.78 is flowing through a 1.5 in. i.d. pipe at 58 gal/min. the fluid has an absolute viscosity of 11.8 x 105 lbf-sec/ft2. is the flow laminar, turbulent or within the critical range? give both a numerical reynolds number and a term answer.
Answers: 3
question
Engineering, 04.07.2019 18:20
Asimple rankine cycle uses water as the working fluid. the water enters the turbine at 10 mpa and 480c while the condenser operates at 6 kpa. if the turbine has an isentropic efficiency of 80 percent while the pump has an isentropic efficiency of 70 percent determine the thermal efficiency
Answers: 1
question
Engineering, 04.07.2019 18:20
Amixture of slurry and mud is to be pumped through a horizontal pipe of diameter 500 mm. the fluid behaves as a bingham plastic with a yield stress of 30 pa and viscosity 0.04 pa.s. describe the effects of the shear stress through a transverse section of the pipe by plotting the variation in shear stress and velocity profile: (i) just before the slurry starts to move (ii) as the slurry flows when the pressure gradient is double that in part (i)
Answers: 3
You know the right answer?
Write a program that will produce a report showing the current and max-imum enrollments for a number...
Questions
question
Mathematics, 08.09.2021 18:30
question
Mathematics, 08.09.2021 18:30
question
Mathematics, 08.09.2021 18:30
question
Computers and Technology, 08.09.2021 18:30
question
Mathematics, 08.09.2021 18:30
Questions on the website: 13722363