It's call your question I Bielive but I'm not sure what your
In stead of going number arithmetic, you could also approach it as string handling. Replace the last lines of your code (right after the scan statement) with:
String s = Integer.toString(num);
System.out.println("Here are the digits: ");
System.out.println(s.charAt(0)+"\n"+s.charAt(1)+"\n"+s.charAt(2));
Answer:
The Java class is given below with appropriate tags for better understanding
Explanation:
public class Cat extends Pet{
private String breed;
public Cat(String name, String owner, String breed){
/* implementation not shown */
super(name, owner);
this.breed = breed;
}
public String getBreed() {
return breed;
}
public void setBreed(String breed) {
this.breed = breed;
}
public String speak(){ /* implementation not shown */
return "Purring…";
}
}
Answer: Procedure
Explanation:
A macro is what the question is describing. Another way to word macro is sub procedure.