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(); 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
We've got everything to become your favourite writing service
Money back guarantee
Your money is safe. Even if we fail to satisfy your expectations, you can always request a refund and get your money back.
Confidentiality
We don’t share your private information with anyone. What happens on our website stays on our website.
Our service is legit
We provide you with a sample paper on the topic you need, and this kind of academic assistance is perfectly legitimate.
Get a plagiarism-free paper
We check every paper with our plagiarism-detection software, so you get a unique paper written for your particular purposes.
We can help with urgent tasks
Need a paper tomorrow? We can write it even while you’re sleeping. Place an order now and get your paper in 8 hours.
Pay a fair price
Our prices depend on urgency. If you want a cheap essay, place your order in advance. Our prices start from $11 per page.