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(); Heres 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
Economic Debate- Progressive Income Tax For this Economic Debate, we are going to discuss the…
TOPIC: Going Global Discussion Thread 1 (initial post due Wednesday for full credit) Please note:…
Assignment Topic This week will culminate in the creation of a narrated PowerPoint to create…
The Assignment must be submitted on Blackboard (WORD format only) via allocated folder. Assignments submitted…
you need to post your 2-page information flier to share with your Final Project Group.…
discussion: Discuss the methods used at your company to measure and ensure quality products and…