Answer:
Here is the implementation of the Car class:class Car {
private String model;
private String year;
private double price;
public Car(String model, String year, double price) {
this.model = model;
this.year = year;
if (price > 0) {
this.price = price;
}
}
public String getModel() {
return model;
}
public void setModel(String model) {
this.model = model;
}
public String getYear() {
return year;
}
public void setYear(String year) {
this.year = year;
}
public double getPrice() {
return price;
}
public void setPrice(double price) {
if (price > 0) {
this.price = price;
}
}
}
Here is the test application that demonstrates the capabilities of the Car class:class CarApplication {
public static void main(String[] args) {
Car car1 = new Car("Toyota", "2020", 20000);
Car car2 = new Car("Honda", "2019", 25000);
System.out.println("Original price of car1: $" + car1.getPrice());
System.out.println("Original price of car2: $" + car2.getPrice());
car1.setPrice(car1.getPrice() * 0.95);
car2.setPrice(car2.getPrice() * 0.93);
System.out.println("Discounted price of car1: $" + car1.getPrice());
System.out.println("Discounted price of car2: $" + car2.getPrice());
}
}
Type MC cable provides an effective ground-fault current path and is recognized by the NEC as an equipment grounding conductor when _____.
In accordance with 250.118(1), A MC cable includes an insulated or uninsulated equipment grounding conductor.
When does MC cable is recognized by the NEC as an equipment grounding conductor?
Type MC cable that provides an efficient ground-fault current path in compliance with one or more of the following is :
1. In accordance with 250.118(1).2. The interlocked metal tape-type MC cable's combined metallic sheath and uninsulated equipment grounding/bonding conductor that is listed and identified as an equipment.3. The smooth or corrugated tube-type MC cable's metallic sheath, or the combined metallic sheath and equipment grounding conductors, that is listed and identified as an equipment grounding conductor.To know more about MC cable, visit: https://brainly.com/question/14934410
#SPJ4
Select the word that best completes the sentence. Osha's standards require your employer to ensure that lighting, equipment, motors, machines, appliances, switches, controls and enclosures are constructed and installed to _____________ electrical dangers.
The word that best completes the sentence. is "MInimize"
Thus, Osha's standards require your employer to ensure that lighting, equipment, motors, machines, appliances, switches, controls, and enclosures are constructed and installed to MInimize electrical dangers.
What are OSHA Standards?OSHA standards are guidelines that specify how companies must safeguard their employees from dangers. OSHA rules are divided into four categories: general industry, building, maritime, and agriculture. (The General Industry set relates to the greatest number of people and workplaces.)
OSHA standards include requirements to provide protective clothing, prevent tunneling cave-ins, reduce exposure to some communicable diseases, guarantee the safety of workers entering confined spaces, prevent exposure to potentially harmful substances such as asbestos and lead, and install machine guards, among other things.
Learn more about OSHA:
https://brainly.com/question/29345131?
#SPJ1