Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Debug Space shuttle in Java. Consists of public classes: Component, Computer, Control, Environment, LifeSupportSystem, Main, Parameter, ParameterLimit, Sensor and public enum StatusCode. When I debugged

Debug Space shuttle in Java.

Consists of public classes: Component, Computer, Control, Environment, LifeSupportSystem, Main, Parameter, ParameterLimit, Sensor and public enum StatusCode.

When I debugged the program the following errors displayed:

The method increaseValue(int) is undefined for the type parameter;

at spacestation.lifesupport.Main.changeTemperatures(Main.java: 173);

at spacestation.lifesupport.Main.main(Main.java: 29)

Please see in red color.

public class Component

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

public class Computer:

image text in transcribed

public class Control:

image text in transcribed

image text in transcribed

image text in transcribed

public class Environment:

image text in transcribed

image text in transcribed

public class LifeSupportSystem:

image text in transcribed

image text in transcribed

image text in transcribed

public class Main:

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

public class Parameter:

image text in transcribed

image text in transcribed

public class ParameterLimit:

image text in transcribed

public class Sensor:

image text in transcribed

image text in transcribed

image text in transcribed

public enum StatusCode:

image text in transcribed

ERRORS after debugging:

image text in transcribed

Quice Arcess matJava Dweightjava "Component ava st ) ComputerJava Controllava 1 L Environment." DLifeSupport. Mainiava Parameter ava " 1 package spacestation.lifesupport; 4 public class Component f private final String Name; 8 private final String SettingName; 10 private final double Hinisettine;//The min setting for this comporient (how low can you set the throttle 12 private final double MaxSetting;//The max setting for this component (how high can you set the throttle) 14 private final Sensor PrimarySensor;//This is the main sensor this component is trying to solve for 15 16 17 18 19 private final Sensor Secondarysensor;//A secondary sensor to meesure side effects, if relevantd private final Control IncreaseController; 20 private final Control DecreaseController 21 private double CurrentSetting; 23 24 public final double SettingprimaryImpact;//How many units the target paremeter changes for each unit of setting 25 26 27 public final double SettingsecondaryImpact;//low many units the secondary parameter changes (only relevant if 28 29 30 private final int DigitsPrecision 2: 31 /fchange //comportent has side effects) 325 public Component (String name, String settingName, double minisetting, double maxSetting, double settingPrimaryImpact, double settingsecondarylimpact, Control increaseController, 34 35 36 37 38 39 40 41 Control decreaseController, Sensor primarySensor, Sensor secondarySensor) f this.Name name this.SettineName settingName; this MiniSetting miniSetting; this.MaxSetting maxSetting; 43 Smart Insert16 99 Writa ble :11 PM 11/3/2018 t; dx

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

More Books

Students also viewed these Databases questions

Question

Describe the seven standard parts of a letter.

Answered: 1 week ago