Question
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
public class Computer:
public class Control:
public class Environment:
public class LifeSupportSystem:
public class Main:
public class Parameter:
public class ParameterLimit:
public class Sensor:
public enum StatusCode:
ERRORS after debugging:
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; dxStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started