The following print code is to find out the ASCII code, character for the decimal codes,and comparison of characters. Use the ASCII chart to figure out what will be printed andverify it via Eclipse. System.out.println((int)'1');System.out.println((int)'A');System.out.println((int)'a'); System.out.println((char)40);System.out.println((char)59);System.out.println((char)64); System.out.println('a' < 'b');System.out.println('a' <= 'A');System.out.println('a' == 'a');System.out.println('a' != 'b');

Question

The following print code is to find out the ASCII code, character for the decimal codes,
and comparison of characters. Use the ASCII chart to figure out what will be printed and
verify it via Eclipse.

System.out.println((int)'1');
System.out.println((int)'A');
System.out.println((int)'a');

System.out.println((char)40);
System.out.println((char)59);
System.out.println((char)64);

System.out.println('a' < 'b');
System.out.println('a' <= 'A');
System.out.println('a' == 'a');
System.out.println('a' != 'b');

Expert Answer

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Science

Programing Language

Related Computer Science Q&A

Find answers to questions asked by students like you.

Q: Create the physical level ERD.  I believe my physical level ERD is missing several parts. However, t...

A: Hey.....The actual design of database can be represented  by  physical E- R   diagrams.Physical ERD ...

Q: 1) The UsingMethod class consists of a main method and a method called xMethod. What will the code p...

A: Hey, since there are multiple questions posted, we will answer first question. If you want any speci...

Q: Write a program that coverts a zip code to a bar code. The bar codes use large and small bars. We wi...

A: Solution:#Define the functiondef checksum(zip):    #Declare the empty variable    sum = 0    #Loop e...

Q: SQL (Oracle) How do I create a unique constraint to find a specific price range? i.e. between 30 - 1...

A: Query to create tabale:Let us assume the table name as "Product". CREATE TABLE PRODUCT(ORDER_ID INT,...

Q: Find a pda that accepts the language L={anb2n :n≥0}.L={anb2n :n≥0}.

A: Pushdown Automata (PDA):In PDA, we can store one alphabet of language because PDA has only one stack...

Q: Consider the following procedure: procedure mystery (x, y, z); integer x, y, z;beginz = 2; y= z+x;en...

A: Pass by reference copies the location of argument to the parameter. Hence, the final value of n, A[1...

Q: Assume that an array of integers named a that contains exactly five elements has been declared and i...

A: Didn’t mention which language to do the problem. So, did the problem in Java.Given:Let assume an arr...

Q: Assume the following declarations and initializations (MIN, MAX, num) are made just before each sub-...

A: 1.Program plan:Define the class.Define the “main()” function.Initialize the necessary variables.The ...

Q: Thank you!C++ please

A: First we'll create a LinkedList class.Below is the code for the LinkedList class:-class LinkedList{p...

Q: Write a program that contains 2 methods, main and printLine 1) The printLine method will do the foll...

A: Program plan: Import necessary packages.Define a class named “PrintCheck”.Define a method called “pr...

Q: You are not required to execute the queries. However, your syntax must by accurate.You must give at ...

A: SELECT Movie_Tiltle, Movie_Year, Price_Description, Rental_Fee FROM Movies WHERE Categories = ‘famil...

Q: I need ERD Model Arrow Electronics is a consumer electronics retailer operating in the United States...

A: The 8 entities are indicated below with only their unqiue identifier (bold) and one or more other at...

Q: (The Rectangle class) Following the example of the Circle class in Section 8.2,design a class named ...

A: Note: The given program is compiled and executed in "NetbeansIDE" 

Q: Function #1: superman Parameters: height - an integer representing the user's height in inches Descr...

A: Solution:Superman() function:#Define the functiondef superman(input_inches):    #Declare the variabl...

Q: One acre of land is equivalent to 43,560 square feet. Write a program that calculates the number of ...

A: The algorithm for the program is as follows:Accept input string as the square feetCalculate the numb...

Q: Give regular expressions for the following languages. (a) L1 = {anbm, n ≥ 3, m ≤ 4} (b) L2 = {anbm :...

A: Answer:Regular expression:a. L = {an bm, n &gt;=3, m &lt;= 4}

Q: Programming in C.

A: Note: The below program has been complied and executed in "repl.it" online complier

Q: Create a list of 3 technologies that have gone from analog to digital. What was the reasoning for e...

A: Back in 1970s and earlier main technology in use was analog technology. Analog technology used vario...

Q: how to implement a KMS system at any firm where employees can use it but not depend on it

A: Knowledge management system:Knowledge management system deals with storing and managing data or info...

Q: What language is accepted by the Turing machine whose transition graph is in the figure below?

A: Turing machine:Turing machine is a model of a hypothetical computing machine which can use a predefi...

Q: Write a java program called Sales considering the following directions and the sample run. Practice ...

A: The program has the following steps:Declare the variablesReceive the input from the userCalculate th...

Q: Try giving these 2 commands $ echo cat$ cat echoExplain the differences between the output of each c...

A: echo command:echo command is used to display the line of text passed as an argument. It is a built i...

Q: Show a derivation tree for w = aaabbaaa using the grammar in Example 5.1. EXAMPLE 5.1 The grammar G ...

A: Solution:Given that,w = aaabbaaa

Q: Let L1 = L (a∗baa∗) and L2 = L (aba∗). Find L1/L2.

A: Solution:Given that,Input: L1= L(a*baa*) and L2 = L(aba*) Output: Determine the L1/L2.We take all st...

Q: Problem Description: The international standard letter/number mapping found on the telephone keypad ...

A: The pseudocode is as follows:Prompt user for a letter in upper caseReceive the input.Convert the use...

Q: Using adders, subtracters, comparers, copiers, or multipliers, draw block diagrams for Turing machin...

A: Solution:Turing machine:The Turing machine is theoretical computing machine that can be used to iden...

Q: Write a program in Eclipse that prompts the user to enter a string and displays the number of vowels...

A: Solution:Given data, The java code gets the input string from user and display the number of vowels ...

Q: Concentric circle(15) NUM_CIRCLE=15 OFFSET=15 pensize(innercircle)=5 pensize (outercircle)=2 Circle ...

A: Instructions to draw concentric circles:Initialize NUM_CIRCLE and OFFSET to 15. And, create a turtle...

Q: I have a Python question and I cannot seem to figure out how to answer this problem exactly (I've at...

A: Hey..To print the power of 2 you have to use a  power function  "pow(2,N) " .It is inbuild function ...

Q: Find and list the websites of the parent and child standardization organizations that create standar...

A: Standards in Data communication and computer networking defines the rules which are needed for inter...

Q: Construct a dfa that accepts the language generated by the grammar S → abA, A → baB, B → aA|bb.

A: Deterministic finite automata (DFA):

Q: Eliminate all useless productions from the grammar S → aS|AB|λ, A → bA, B → AA. What language does t...

A: A useless production is basically a production which can never participate in the derivation of any ...

Q: 4.23 (Financial application: payroll) Write a program that reads the following information and print...

A: C code#include&lt;stdio.h&gt;#include&lt;string.h&gt; int main(){char employeeName[20]="";double hou...

Q: l Sprint LTE 09:28 9 morgan.blackboard.com Bb Courses Course Material Assignment 3 1. Use the variab...

A: Hey, since there are multiple questions posted, I answer first three questions. If you want any spec...

Q: Create a PL/SQL block to calculate factorial of a number entered from the screen by the user. If the...

A: The PL/SQL block to calculate factorial of a number entered from the screen by the user is given bel...

Q: Give the derivation tree for ((a+b)∗c+d, using the grammar in Example 5.12. EXAMPLE 5.12 To rewrite ...

A: To solve your problem first of all we define  What is Context Free grammer  and  Derivation tree? Co...

Q: Give an implementation of the macroinstruction searchleft (a, qi, qj), which indicates that the mach...

A: Turing machine uses “searchleft” for an implementation of the macroinstructions. If the machine read...

Q: Consider a 32-bit hexadecimal number stored in memory as follows: Address Value 100 2A 101...

A: Answer:In Little Endian the order is reversed. So the binary representation of reversed order is as ...

Q: (Method Overloading) Given the following methods, write down the printed output of themethod calls: ...

A: Answer with Explanation:“doSomething(5)” contains an argument integer “5” and it is called to the “d...

Q: Programming in C.

A: Algorithm: Declare required header files.Create “ContactInfo” structure.Declare required variables f...

Q: Find an nfa that accepts the complement from L (ab∗aa + bba∗ab)?

A: Solution:The following graph indicates the NFA (Non-deterministic finite automata) is given below:M ...

Q: 5-1) (Count positive and negative numbers and compute the average of numbers) Write a program that r...

A: Java program to count posive and negative numbers and computing the total and average of numbers is ...

Q: This question is for Python. Thank you!

A: The algorithm of the file would be as below:Receive the inputs as a series of input commandsConcaten...

Q: 2. What are ‘accelerated filers’ and how are they selected- revenue, # employee, etc.

A: If a company meets the following conditions at the fiscal year end, it is considered as accelerated ...

Q: What form of storage doses a password manger store encrypted passwords? Is it local, web sites, clod...

A: Passwords managers allows one to generate strong and unique passwords and store them in one safe pla...

Q: (The Fan class) Design a class named Fan to represent a fan. The class contains:■ Three constants na...

A: Java program to create Fan class is as follows:

Q: create a new file in c++. In this lab, you will add some more functionality to the program. Use loop...

A: Program Instructions:Declare variables and write a welcome message.Always convert the user's choice ...

Q: Task_1: Base-10 conversion of the following Base-2 values? 101101   2. 011101   3. 1001   4. 11111...

A: Conversion of Base-2 to Base-10: 1. 101101:

Q: Write a function “gcDivisor” that takes two positive int “k” and “m” and returns the greatest common...

A: A call is made to a function called gcd with the numerator and denominator after receiving the user ...

Q: Can someone offer an explanation to these few simple questions please?

A: Click to see the answer