Answer:
The code is witten in Java and given in the explanation section.
Using a Scanner object we receive a the user's input and with the System.out.println we output the variable
Explanation:
import java.util.Scanner;
public class VariableOutput{
public static void main (String [] args){
Scanner input = new Scanner(System.in);
System.out.println("Enter an Integer 15 or 40");
int numObjects = input.nextInt();
System.out.println("You entered the number "+numObjects);
}
}
Answer:
Troubleshooting
Explanation:
These actions are called troubleshooting.
Troubleshooting is used to diagnose the unexpected error while you are performing some action on the computer. For example
You are running skype, and a one-day mic or sound performing unexpected error. What will you do? You have to perform the troubleshooting for MIC and sound to diagnose the problem.
During troubleshooting, you will wizard through steps of the procedure to diagnose the problem step by step. If the problem will be identified, the solution will be suggested.
You may experience sometimes your Wifi router at home not working. For this to identify the unexpected error you will perform the troubleshooting.
In short, troubleshooting is used to diagnose unexpected error while performing some action on the computer. If troubleshooting does not work, then close all the programs running on your machine, then shut down your computer. Wait a couple of minutes, and then start your computer and see, the problem may have been alleviated.
Answer:
current_price = int(input("Enter the current price: "))
last_months_price = int(input("Enter the last month's price: "))
print("This house is $" + str(current_price))
print("The change is $" + str(current_price - last_months_price) + " since last month")
print("The estimated monthly mortgage is ${:.2f}".format((current_price * 0.051) / 12))
Explanation:
Ask the user to enter the current price and last month's price
Print the current price
Print the change in the price, subtract the last month's price from the current price
Print the estimated monthly mortgage, use the given formula to calculate, in required format
Answer:
Recursion is calling of a function from within that same function