CSCI 141 Tampa College Run Power Plants Java Project Programming Project 7 In this programming project, you are given an abstract superclass PowerPlant.ja

CSCI 141 Tampa College Run Power Plants Java Project Programming Project 7 In this programming project, you are given an abstract superclass PowerPlant.java and a control program RunPowerPlants.java. You must implement the classes that represent coal power plant (extends power plant class), solar power plant (extends power plant class), and power plant units, which must use a vector to hold the power plants units and manage the certain operations that were given below. Coal extends PowerPlant: ? CO2 per watt = 0.04. • Coal(int power); • double CO2Output(); • boolean isRenewable(); Solar extends PowerPlant: ? CO2 per watt = 0. • Solar(int power); • double CO2Output(); • boolean isRenewable(); PowerPlantUnits: • PowerPlantUnits(); • void display(); • void addPowerPlant(PowerPlant powerPlant); • void removePowerPlant(int index); • double CO2Output(); • double powerPlantOutput(); • int numberRenewable(); Here’s what a sample run should look like (with the keyboard input shown in bold and italics): > java RunPowerPlants ———————————— Total watts = 0.0 Total renewable units = 0 CO2 output = 0.0 ———————————— (A)dd power plant, (R)emove power plant, e(X)it : a (C)oal or (S)olar : c How many watts : 1000 ———————————— 0: Coal power plant with 1000 watts Total watts = 1000.0 Total renewable units = 0 CO2 output = 40.0 ———————————— (A)dd power plant, (R)emove power plant, e(X)it : a (C)oal or (S)olar : s How many watts : 500 ———————————— 0: Coal power plant with 1000 watts 1: Solar power plant with 500 watts Total watts = 1500.0 Total renewable units = 1 CO2 output = 40.0 ———————————— (A)dd power plant, (R)emove power plant, e(X)it : a (C)oal or (S)olar : c How many watts : 800 ———————————— 0: Coal power plant with 1000 watts 1: Solar power plant with 500 watts 2: Coal power plant with 800 watts Total watts = 2300.0 Total renewable units = 1 CO2 output = 72.0 ———————————— (A)dd power plant, (R)emove power plant, e(X)it : r Index of power plant to remove: 1 ———————————— 0: Coal power plant with 1000 watts 1: Coal power plant with 800 watts Total watts = 1800.0 Total renewable units = 0 CO2 output = 72.0 ———————————— (A)dd power plant, (R)emove power plant, e(X)it : x

Don't use plagiarized sources. Get Your Custom Essay on
CSCI 141 Tampa College Run Power Plants Java Project Programming Project 7 In this programming project, you are given an abstract superclass PowerPlant.ja
For $10/Page 0nly
Order Essay
Calculator

Calculate the price of your paper

Total price:$26

Need a better grade?
We've got you covered.

Order your paper