Philip is thinking about customizing his motorcycle. A paint job, saddlebags, and a radio would cost $600. His motorcycle is old
er, so he also knows that he will need to get another motorcycle sometime in the next two years. He creates a cost-benefit analysis table to examine his choices. What statement would best complete the chart, and why?
He will temporarily have less money in his bank account.
Explanation:
Philip will have less money in his bank account at this time because he is considering modifying his motorcycle that costs approx $600, but his bike older and he also understands that he required a new bike in the next two years.
So, he decided to make an analysis table according to his choice and after that, he examines that if he tailored his bike at this time then he has a shortage of money at the time of purchasing a new bike.
Answer:
import java.util.Scanner;
public class CharTestt { public static void main(String[] args) { System.out.println("Please enter a character "); Scanner input = new Scanner(System.in); char letterStart = input.next().charAt(0); char thenextChar = (char)(letterStart+1); System.out.print(letterStart); System.out.println(thenextChar);
}
}
Explanation:
Import Scanner Class
Prompt user to enter a character
Read and save user's input in a variable char letterStart = input.next().charAt(0);
Knowing that the next character using ASCII is +1, create a new character variable and add 1
print the character entered and the new character all on same line without spaces