1 answer

For the below code find and fix the errors then tell what the output would be....

Question:

For the below code find and fix the errors then tell what the output would be.
import java.utils.*;
public class pin
public void main(String[] args);
{
char s;
int num;
Scanner br = Scanner(System.in);
System.out.print("Enter the first letter of your name :");
s = BR.next().charAt(0);
num = s;
System.out.println(“The value associated with your letter is” num);
}


Answers

//if you have any query then comment below.please rate the answer

import java.util.Scanner;

public class pin{

public static void main(String[] args)

{

char s;

int num;

Scanner br =new Scanner(System.in);

System.out.print("Enter the first letter of your name :");

s = br.next().charAt(0);

num = s;

System.out.println("The value associated with your letter is "+num);

}

}

Enter the first letter of your name r The value associated with your letter is 114

.

Similar Solved Questions

1 answer
The radius of a proton is about 1.2 dermis where one dermis is equal to 10^-15m.how many centimetres is the radius of the proton?
The radius of a proton is about 1.2 dermis where one dermis is equal to 10^-15m.how many centimetres is the radius of the proton?...
1 answer
Ethan uses the cash method of acounting and a calendar year. He Recieved the following payments...
Ethan uses the cash method of acounting and a calendar year. He Recieved the following payments from clients: A check from client #1 in the amount of $1091 on December 26, 2018, deposited January 15, 2019. A check from Client #2 on December 22, 2018, for $592, deposited December 24, 2018. An electro...
1 answer
14. Refer to the information regarding Tessco Technologies. On 3/30/18, Tessco issues 500 additional shares of...
14. Refer to the information regarding Tessco Technologies. On 3/30/18, Tessco issues 500 additional shares of common stock for $10,000 cash and immediately uses the cash to purchase plant and equipment costing $10,000. If a new balance sheet is prepared immediately after these transactions, it will...
1 answer
Blossom Company purchased an electric wax melter on April 30, 2017, by trading in its old...
Blossom Company purchased an electric wax melter on April 30, 2017, by trading in its old gas model and paying the balance in cash. The following data relate to the purchase. List price of new melter Cash paid Cost of old melter (5-year life, $994 salvage value) $22,436 14,200 15,904 8,946 7,384 Acc...
1 answer
Estimate the population size: 110 birds captured are marked, then released back in the population. the...
estimate the population size: 110 birds captured are marked, then released back in the population. the following month 102 birds are captures and 51 are market. what is the population size?...
1 answer
1.A spring-loaded dart gun with a spring constant K= 2000 N/m is used to shoot a...
1.A spring-loaded dart gun with a spring constant K= 2000 N/m is used to shoot a dart with a mass .20kg straight up into the air, and the dart reaches a maximum height of 10 meters. How far did the spring need to be compressed? 2. If i wanted to measure the amount of potential energy in the spring i...
1 answer
Demand curve: P = 30 – Q Supply curve: P = 2Q a) Calculate the equilibrium...
Demand curve: P = 30 – Q Supply curve: P = 2Q a) Calculate the equilibrium quantity and price. b) Draw the curves. c) Suppose that the government set the price at 25 dollars. Calculate the shortage or surplus that is created on the market. W4 exercise Use the demand and supply functions from...
1 answer
Exercise 13-18 Common-Size Income Statements and Horizontal Analysis LO2.3 Example 13-2, 13-5 Income statements for Mariners...
Exercise 13-18 Common-Size Income Statements and Horizontal Analysis LO2.3 Example 13-2, 13-5 Income statements for Mariners Corp. for the past two years are as follows: Sales revenue Cost of goods sold Gross profit Selling and administrative expense Operating income Interest expense Income before t...
1 answer
Design a comparator with mosfets use: vcc = 1.8 and -vcc = -1.8 Vcomp= + 1.5 , -1.5 8-23 p.m. Vie 10 may No seguro-electronicaugr es EI A.U. con realimentacion POSITIVAI Comparador con histéresi...
design a comparator with mosfets use: vcc = 1.8 and -vcc = -1.8 Vcomp= + 1.5 , -1.5 8-23 p.m. Vie 10 may No seguro-electronicaugr es EI A.U. con realimentacion POSITIVAI Comparador con histéresis V, comp R2 -V comp R1 Variar el nivel de comparación en función de la salida -...
1 answer
Can you please help me these two problems. thanks 7.-11 points CJ10 21.P.017 My Notes Ask...
Can you please help me these two problems. thanks 7.-11 points CJ10 21.P.017 My Notes Ask Your Teacher when beryllium 7 ions m 1.165 x 10-26 kg) pass through a mass spectrometer, a uniform magnetic field of 0.3481 T curves their path directly to the center accelerating potential difference, what mag...
1 answer
Dividends paid to non-controlling shareholders a. increase the non-controlling interest account b. decrease the non-controlling interest...
Dividends paid to non-controlling shareholders a. increase the non-controlling interest account b. decrease the non-controlling interest account...
1 answer
6 pts D Question 4 A1A1 A1A2 A2A2 10 10 15 Offspring Using the above table...
6 pts D Question 4 A1A1 A1A2 A2A2 10 10 15 Offspring Using the above table showing the average number of offspring for an individual with a given genotype, what are the the relative fitness values for the following (no more than 3 significant digits): W11 W12 W22...
1 answer
Use the table of electronegativity valeus from Ch 12 of the Bishop text. For each of...
Use the table of electronegativity valeus from Ch 12 of the Bishop text. For each of the following answers, first identify each bond as nonpolar covalent, polar covalent, or ionic. If a bond is polar covalent or ionic, identify the more negative element. Separate the two answers with a comma. Exampl...
1 answer
Keller Corporation (the lessee) entered into a general equipment lease with Dallo Company (the les-sor) on...
Keller Corporation (the lessee) entered into a general equipment lease with Dallo Company (the les-sor) on January 1 of Year 1. Use the following information to decide whether this lease qualifies as an operating or finance lease for Keller, and give an explanation using the five classification crit...
1 answer
5.) What is the mechanism and main product for the following series or reactions? (5 points)...
5.) What is the mechanism and main product for the following series or reactions? (5 points) 1) hv 2) Na OH 3) PCC 4) HN-NH, H cat 5) NaOH, H,O...
1 answer
If 5.49 kg of propane gas (C3H8) is stored in a 86.8 L container at 15.9oC,...
If 5.49 kg of propane gas (C3H8) is stored in a 86.8 L container at 15.9oC, what pressure (in atm) will be exerted on the storage tank? Give your answer to the correct number of significant figures and in units of atm. Data: 1 atm = 760 mmHg, 0oC = 273 K, PV = nRT, R = 0.0821 L.atm.mol-1.K-1, Molar ...