Explanation of Solution
Program:
File name: “InputCharacterInfo.java”
//Import necessary header files
import java.util.Scanner;
//Define a class named InputCharacterInfo
public class InputCharacterInfo
{
//Define main method
public static void main(String[] args)
{
//Create an object to the Scanner class
Scanner sc = new Scanner(System.in);
//Prompt the user to enter a character
System.out.println("Enter char: ");
char aChar = sc.nextLine().charAt(0);
//Tests if character is uppercase
if (Character.isUpperCase(aChar))
{
//Print the result
System.out.println(aChar + " is uppercase");
}
//Else condition
else
{
//Print the result
System.out.println(aChar + " is not uppercase");
}
//Tests if character is lowercase
if (Character.isLowerCase(aChar))
{
//Print the result
System.out.println(aChar + " is lowercase");
}
//Else condition
else
{
//Print the result
System.out.println(aChar + " is not lowercase");
}
//Returns the uppercase equivalent of the character
aChar = Character...
Want to see the full answer?
Check out a sample textbook solution- Create an input text file that has the name input.txt with the following content. In Java please. 10 45 23 14 76 55 14 34 11 4 12arrow_forwardThe attached text file lists all vehicles entered to the parking lot of a mega shopping centre for one day. Each line of the text file includes a vehicle make, color, plate number and the date of entry to the mall. Based on the content of this text file and the program result in the console, provide a line-by-line description for the below java program. Please provide line by line explaination for the code below. And I don't understand line 16, so detail that a bit.arrow_forwardWhat will be output by the above code segment ?arrow_forward
- Note:- Please study than type and execute this java code and also give output for this java program as soon as possible. Also please save with what name to save the file.arrow_forwardModify the code below. The output must not have spaces between the comma and the number. What is the time complexity before and after modifying the code?arrow_forwardPlease do only the .java file (FamilyName_Perfect.java) containing the codeand 3 image files (Sample1, Sample2 and Sample3) containing different sampleinput/output of the program.arrow_forward
- Please use C++ and only use libraries <iostream> and <cmath>. Also ultilize cin.ignore to let responses be recognized with a Y or Yes. Thank you!arrow_forwardcan change code to be import to calendar where only month as name and other as date number between , ,arrow_forwardModify the CharacterInfo class shown and included in the code editor to the right so that the tested character is retrieved from user input. An example of the program is shown below: Enter a character... R The character is R R is uppercase R is not lowercase After toLowerCase(), aChar is r After toUpperCase(), aChar is R R is a letter or digit R is not whitespace info> Do not edit the output statements. Task 01: Create the InputCharacterInfo class. Task 02: The InputCharacterInfo program displays the correct information for the input character.arrow_forward
- Complete code and find errorss with attach screenshot of code with outputarrow_forwardWhat is the output produced by the following?String test = "abcdefg";System.out.println(test.substring(3));arrow_forward The fields below repeat for each customer: o Customer name (String)o Customer ID (numeric integer) o Bill balance (numeric)o EmailAddress (String)o Tax liability (numeric or String) The customers served by the office supply store are of two types: tax-exempt or non-tax- exempt. For a tax-exempt customer, the tax liability field on the file is the reason for the tax exemptions: education, non-profit, government, other (String). For a non-tax exempt customer, the tax liability field is the percent of tax that the customer will pay (numeric) based on the state where the customer’s business resides. Program requirements: From the information provided, write a solution that includes the following: A suitable inheritance hierarchy which represents the customers serviced by the office supply company. It is up to you how to design the inheritance hierarchy. I suggest a Customer class and appropriate subclasses.. For all classes include the following: o Instance variables o…arrow_forward
- EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning