1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
alekssr [168]
3 years ago
12

*/ What's wrong with this program? /* public MyProgram { public static void main(String[] args); } int a, b, c \\ Three integers

a = 3 b = 4 c = a + b System.out.println('The value of c is' + C); {
Computers and Technology
1 answer:
gulaghasi [49]3 years ago
6 0

Answer:

A lot is wrong with the program given in the question. See the corrected version below:

<em>public class ANot {</em>

<em>    public static void main(String[] args) {</em>

<em>        int a, b, c;</em>

<em>    //Three integers</em>

<em>    a = 3; b = 4; c = a + b;</em>

<em>        System.out.println("The value of c is " + c);</em>

<em>    }</em>

<em>}</em>

Explanation:

Errors:

1. The main method had a semi colon after it. This is wrong

2. An open brace was supposed to follow the main method

3. The declaration of the variables was supposed to end with a semi colon

4. the correct comment style is // and not \\

5. Initialization of variables was supposed to end with semi colons

6. The output statement had C and not c which is the declared and initialized variable..Java is strictly typed

7. Open and closing braces for the class and method wrongly placed

You might be interested in
Advantages of communications​
poizon [28]

Answer:

promotes team building

creates better relationship

3 0
3 years ago
Read 2 more answers
A network on the internet has a subnet mask of 255.255.240.0. what is the maximum number of hosts it can handle
Lera25 [3.4K]
It is a class B network, so for a class B network, the upper 16 bits form the network address and the lower 16 bits are subnet and host fields. Of the lower 16 bits, most significant 4 bits are 1111. This leaves 12 bits for the host number. So, 4096(2^12) host address exists. First and last address are special so the maximum number of address is 4096-2=4094.
7 0
3 years ago
ICT Practical Work
Shalnov [3]

Explanation:

ICT Practical Work

3rd Stage

In this next process, carry out an analysis of where the information travels. For which we must have read and understood the functions of the nodes.

An English executive wishes to send a letter to an Argentine colleague to organize a commercial operation.

Write a draft in English.

The secretary translates it into Spanish.

Envelopes it properly to send the letter by air.

Label it.

He takes it to the mail where it is bagged, after sorting, with other envelopes, for different destinations, in the city of Bs. As. According to the transport possibilities, they decide if it will be sent on a direct flight, or with a stopover in Rió De Janeiro.

The post office of Bs. As. Verifies the state of the envelope, because if it is damaged; You can return it to the sender or (if the destination is legible) deliver it with a warning note regarding the condition of the envelope.

The Argentine executive receives the letter and, despite agreeing with the conditions of the transaction, detects a spelling error, corrects it, and responds to his colleague.

At what point in this process, would you locate each of the following node functions? : Interface, transmission, error detection, format conversion,

3 0
3 years ago
Quickly Please!!!
Alex
:)holding the control and pressing home
7 0
3 years ago
Read 2 more answers
Select all the correct answers.
monitta

approvals necessary to bypass the policy

6 0
2 years ago
Read 2 more answers
Other questions:
  • What can be determined from this selection? Check all that apply. The Tax Info worksheet is currently being viewed. There are th
    6·2 answers
  • Write an application that allows a user to enter the names and birth dates of up to 10 friends. Continue to prompt the user for
    6·1 answer
  • Please help!! will fan and medal
    12·2 answers
  • Double clicking a word selects the entire word?
    9·2 answers
  • True false are computer has four main parts​
    11·2 answers
  • Which of the following is not an ideal habitat for a strong time-management plan
    10·2 answers
  • On five lane roadways, the center lane is designated for __________ and is used by vehicles traveling in both directions.A. Thro
    15·1 answer
  • The icon below represents the ____________.
    8·1 answer
  • What is a complier in computers
    9·2 answers
  • SOMEONE PLEASE HELP ME WITH THIS ILL GIVE YOU BRAINLY IF YOU GET IT RIGHT PLEASE!!!!!
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!