Categories: Excelling Homework

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
admin

Recent Posts

Economic Debate #3- Progressive Income Tax – The Homework Helper

Economic Debate- Progressive Income Tax For this Economic Debate, we are going to discuss the…

2 years ago

MKT 6120 – Marketing Management – Davis Learning Engagement #7

TOPIC: Going Global Discussion Thread 1 (initial post due Wednesday for full credit) Please note:…

4 years ago

jvjvjhvjhvhjvj

Assignment Topic This week will culminate in the creation of a narrated PowerPoint to create…

4 years ago

Students are supposed to select a technological organization of their choice.

The Assignment must be submitted on Blackboard (WORD format only) via allocated folder. Assignments submitted…

4 years ago

Increases the risk of wildfires

you need to post your 2-page information flier to share with your Final Project Group.…

4 years ago

Statistics for Technology management

discussion: Discuss the methods used at your company to measure and ensure quality products and…

4 years ago