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
Ksivusya [100]
3 years ago
11

What is wrong with the following declaration? How should it be fixed?

Computers and Technology
1 answer:
GalinKa [24]3 years ago
6 0

Answer:

We have used int datatype which is wrong in the given declaration.

The correct declaration is public static final double myNumber = 17.36;

Explanation:

In this declaration the value is stored in "myNumber" variable is 17.36 which is decimal point number to store the decimal point number we have to use the double datatype, not int datatype because int datatype can store only integer value not the decimal value. So we have to use the double datatype instead of int type.

The correct syntax for the following declaration is :

public static final double myNumber = 17.36;

You might be interested in
Scott is inspired by one of his friends to write a research paper. how should he go about writing the research paper?
VLD [36.1K]

Scott first step is to ask people who are more educationally inclined in that filed about the work or use the internet or library to research on the topic or previous work that is done in that area.

<h3>What is a research paper?</h3>

This is known to be a kind of written essay on a topic that is done in depth.

Therefore, Scott first step is to ask people who are more educationally inclined in that filed about the work or use the internet or library to research on the topic or previous work that is done in that area.

Learn more about  research paper from

brainly.com/question/25257437

#SPJ1

4 0
2 years ago
How are overhead projectors being used to improve teaching and learning in the classroom?
baherus [9]
<span>Projects are easier to organize in programs like PowerPoint. Also it is definitely a lot less Complicated than a chalkboard or a whiteboard.</span>
6 0
3 years ago
Read 2 more answers
Pick two programming languages. Please describe: - The major differences between those two languages; and - If you were assessin
kiruha [24]

First language : JAVA

Second Language : C++

Major Difference :

1. Platform Dependency :

Java is platform independent which means that its code can be run on any machine. It uses JVM ( Java virtual machine ) which converts the code in byte form and then run it which makes it flexible enough to be used on any system. So .exe file can run on any OS.

C++ is not platform independent and thus its .exe file  cannot be run on different OS.

2. Objects

In JAVA everything is reference typed and is inherited from the class objects that are predefined in it.

In C++ not everything is class or reference typed.

3. Garbage Collector

Java has built in garbage collector when we use classes in java.

C++ make developer to collect garbage when he uses reference types like pointers.

Why choose Java and C++ ?

People are very confused about the platform in-dependency of JAVA, so i decided to choose Java and compared that concept with c++ which is mother of all languages.

8 0
4 years ago
Why some programming languages use compilers and other interpreters ?​
Inga [223]

Answer:

A compiler takes a lot of time to analyze the source code. However, the overall time taken to execute the process is much faster. An interpreter does not generate an intermediary code. Hence, an interpreter is highly efficient in terms of its memory.

Explanation:

5 0
3 years ago
Please answer this now I need please.
choli [55]

Answer:

You can change the color of text in your Word document. Select the text that you want to change. On the Home tab, in the Font group, choose the arrow next to Font Color, and then select a color.

You can display a graphics window and draw colorful shapes in it if you use the Show operation of the GraphicsWindow object. You can also specify properties of the graphics window, such as its title, height, width, and background color.

Explanation: Sorry I couldn't do the third question but hope it helps.

7 0
3 years ago
Other questions:
  • If you like to spend time outdoors working with plants and animals, you have a(n) _____. a. bodily/kinesthetic learning style b.
    6·2 answers
  • Mutual authentication for multiple services is also known as _______.
    12·1 answer
  • What features of a credit card do you need to research when considering a credit card?
    7·2 answers
  • What is c also write it's features
    15·2 answers
  • Summarizes statistical data ?
    11·1 answer
  • The operation of early electronic computing devices required:
    8·1 answer
  • What is a secondary storage medium that uses magnetic techniques to store and retrieve data on disks or tapes coated with magnet
    6·1 answer
  • One lap around a standard high-school running track is exactly 0.25 miles. Write the function miles_to_laps() that takes a numbe
    8·1 answer
  • What does l m a o actually mean?
    6·1 answer
  • Question 2 (6 points)
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!