For each of the following, describe why Java will or wont complain: If it will, describe how to fix it: A var X = 3.0 "2" B. long console nextInto); C if((2^7)>-5){Math.abs(-4);} D. fork;;){;} E. boolean True false;

Answers

Answer 1

Java is a general-purpose programming language designed to be platform-independent, object-oriented, and highly secure. It is widely used for developing web and mobile applications, games, software tools, and enterprise systems.

A. Java will complain because the variable type is not specified. To fix it, declare the variable type explicitly, like this: double X = 3.0;

B. Java will complain because there is a syntax error, the closing parenthesis is missing. To fix it, add the closing parenthesis at the end of the statement, like this: long console = nextInto);

C. Java won't complain because the expression is valid. However, the statement doesn't do anything, so it's useless. To fix it, assign the result of the Math.abs(-4) method to a variable or print it to the console.

D. Java will complain because there is a syntax error, the semicolon after "fork" is unnecessary. To fix it, remove the semicolon, like this: for(;;){;}

E. Java won't complain because these are valid boolean literals.

However, they are not assigned to any variable or used in any expression, so they are useless. To fix it, assign them to a variable or use them in an expression. For example: boolean myBoolean = true;
A. Java will complain because `var X = 3.0 "2"` is not a valid syntax. To fix it, declare the variables separately:

java
var X = 3.0;
String Y = "2";


B. Java will complain because `long console nextInto);` is not a valid syntax. To fix it, assuming you want to read a long value from console:
java
import java.util.Scanner;
Scanner scanner = new Scanner(System.in);
long value = scanner.nextLong();


C. Java will complain because `^` is not the correct exponentiation operator, and `Math.abs(-4);` is not in a proper statement. To fix it:

java
if(Math.pow(2, 7) > -5) {
   int absoluteValue = Math.abs(-4);
}


D. Java will complain because `fork;;){;}` is not a valid syntax. Assuming you meant an empty for loop, you can fix it by:

java
for (;;) {
   // Empty loop
}


E. Java will complain because `boolean True false;` is not a valid syntax. To fix it, declare boolean variables properly:

java
Boolean var1 = true;
boolean var2 = false;
To know more about Java visit:

https://brainly.com/question/29897053

#SPJ11


Related Questions

3.1.2 Quiz: What Can Information Technology Do for You? Question 8 of 10 What is one reason why a business may want to move entirely online? A. To double the number of employees B. To avoid paying state and local taxes C. To focus on a global market D. To limit the number of items in its inventory​

Answers

Answer:

C. To focus on a global market

Explanation:

Information technology can be defined as a set of components or computer systems, which is used to collect, store, and process data, as well as dissemination of information, knowledge, and distribution of digital products.

An information technology interacts with its environment by receiving data in its raw forms and information in a usable format.

Generally, it is an integral part of human life because individuals, organizations, and institutions rely on information technology and systems in order to perform their duties, functions or tasks and to manage their operations effectively. For example, all organizations make use of information technology and systems for supply chain management, process financial accounts, manage their workforce, and as a marketing channels to reach their customers or potential customers.

Additionally, an information system or technology comprises of five (5) main components;

1. Hardware.

2. Software.

3. Database.

4. Human resources.

5. Telecommunications.

Hence, information technology or system relies on the data it receives from its environment, processes this data into formats that are usable by the end users.

One reason why a business may want to move entirely online is to focus on a global market through the use of social media platforms and networks to reach out to customers in various geographical location.

I charge my stylus 2-3 hours a day. But after all the charging the battery only lasts for 5 minutes. I hope someone can rectify this issue for me. Thank you..

Answers

Answer:

Well if your charging it to 100% nd its only lasting 5 minutes it may be because you charger is getting old or is breaking. What model do you have (stylus)

Explanation:

You may need a new internal battery. How long have you had the pen? If it was for a while you may need it to be replaced.

i think i have a virus on my computer what am i supposed to do

Answers

Answer:

call like a phone or computer company and ask wjat thry can do

The shapes of AND, OR, and NOR gates have something in common. What is it and why do you think they share that feature?

Answers

There're all conjunctions.

You can seperate them in sentences after a comma for a run-on sentence.

Which finger is used to press SHIFT key while typing!
A. Little finger
B. Thumb
C. Index finger
D. Ring Finger ​

Answers

Answer:

Little Finger (A)

Explanation:

it would be A. little finger i’m pretty sure

What is the name of tool

Answers

Answer:

bro the pic is hazy

Explanation:

but it is looking like octagon

hope it helps you

please mark me as brainlist

What are the main purposes of an operating system?

Answers

Answer:

An operating system has three main functions: (1) manage the computer's resources, such as the central processing unit, memory, disk drives, and printers, (2) establish a user interface, and (3) execute and provide services for applications software.

What are the three components of the fire triangle

Answers

Answer:

Fuel, oxygen, and heat.

Explanation:

a c program to check the greaster number among the two entered number using if else statement​

Answers

Answer:

#include <stdio.h>

int main(void) {

 int number1, number2;

 printf("Enter first number: ");

 scanf("%d", &number1);

 printf("Enter second number: ");

 scanf("%d", &number2);

 if (number1 > number2) {

   printf("%d is greater than %d!", number1, number2);

 } else if (number2 > number1) {

   printf("%d is greater than %d!", number2, number1);  

 } else {

   printf("%d is equal to %d!", number1, number2);

 }

}

Documental acerca de los principales materiales que se emplean en la fabricación de medios técnicos utilizados en una oficina.

Answers

Answer:

Los equipos técnicos utilizados en una oficina y los principales materiales utilizados en su fabricación son;

Equipo de oficina [tex]{}[/tex]    Material utilizado en la fabricación

1) Impresoras;           [tex]{}[/tex]    Acero, aluminio, alambres de cobre, plástico, rodillos

2) Monitor de computadora; [tex]{}[/tex]   Pantalla de vidrio, plástico, cables, placas de circuito, resortes

3) Escáneres;     [tex]{}[/tex]  Alfombra compuesta, mesa de vidrio, carcasa de plástico, cables

4) Copiador;   [tex]{}[/tex]       Carcasa de plástico, contenedor de tóner, placa de vidrio, cables de alimentación

5) Proyector;    [tex]{}[/tex]    Lente de vidrio y carcasa de metal para lámpara, cables de alimentación

6) Desfibradora; [tex]{}[/tex]    Engranajes de plástico, correa de cadena de metal, rodamientos

Explanation:

guys do you know any websites that rewrites you text so you don’t get plagiarism?

Answers

it’s called typewrite.com !!!

Please answer these computer fill in the blanks
1) operators are the _______________ used in formulas to perform a particular calculation
2) the____________feature of Excelhelps to copy the formula quickly
3) Excel provides over ________________used to perform calculations
4) ____________ category of functions includes functions for calculation, and tracking principal and interest
5) ___________ functions returns one of two results you specify based on whether the value is TRUE or FALSE

Answers

Answer:

best

cool

Explanation:

Jessica has two pens, one red pen and a black pen. The red pen measures 5 inches while the
black one measures 15.24 cenfimefers.
A) How long is Jessica's red pen in centimeters
B) How long is Jessica's black pen in inches
C) which pen is longer
2) John rode 2 kilometers on his bike. His sister Sally rode 3000 meters on her bike. Who rode the
fasthest and
A) How much did John ride in meters
B) How much did Sally ride in kilometers 2012
C) Who rode the farthesten
D) How much farther did they ride (in kilometers)?
E) How much farther did they ride (in meters)?
3) Faye drew two line segments. The first line segment measures 7 inches while the second measures
10 inches.
A) What is the length of the first line segment in centimeters
B) What is the length of the second line segment in centimeters?



branleast ka sakin pag sinagotan moto promise

pag hindi maayos yan report ka sakin​

Answers

Answer:

1.

A) 12.7

B) 6

C) The black pen

2.

A) 2000

B) 3

C) Sally

D) They rode 1 kilometers farther

E) They rode 1000 meters farther

3.

A) 17.78

B) 25.4

Explanation:

A=5×2.54=12.7cmB.=15.24/2.54=6inchC.black pencilsalli rode a bike faster thanjohn.

A.john ride bike in metre=2×1000=2000m

B.salli ride a bike in kilometre=3000/1000=3 km

C.salli rode a bike fastest.sorry i do not know d,e

3.A=7×2.54=17.78cmB.10×2.54=25.4cm

The answer is not border

Answers

Answer:

#footer {

   border-top: 1px solid rgba(0, 0, 0, 0.3);

   background: rgba(0, 0, 0, 0.25);

   box-shadow: inset 0 1px rgba(255, 255, 255, 0.3);

   height: 40px;

}

Explanation:

hope this helps,

Have a great day

what is processing unit?​

Answers

Answer:

A central processing unit, also called a central processor, main processor or just processor, is the electronic circuitry within a computer that executes instructions that make up a computer program.

Explanation:

Answer:

CPU is processing unit.

The main computer case containing the central components of a personal computer is central processing unit.

You can use this keyboard shortcut to toggle the visibility of the command line. If for some reason your command line is hidden from the drawing area, then use this keyboard shortcut to bring it back *

Answers

Answer:

Ctrl + 9

Explanation:

You can use this keyboard shortcut to toggle the visibility of the command line

Your task is to identify three or more ways that big data is being collected on a regular basis, including one data collection method for each of the following categories:

Data collection on the internet
Digital data collection from a source other than the internet
Analog (non-digital) data collection being performed in physical places

For each of these data collection practices: Describe how the data collection occurs. Analyze the data collection process by answering the following five questions in complete sentences and to the best of your ability:

What data is being collected?
Why is this data being collected?
What are the likely benefits of this data collection?
How might this data collection cause harm?
How likely is it that this data can be accessed by others?

You may use the internet or any other available resources to identify and analyze these data collection strategies.

Answers

Answer:

Data is one of the most valuable resources today's businesses have. ... There are various data-gathering methods you can use with the help of your ... When it comes to data businesses collect about their customers, ... Third-party data offers much more scale than any other type of data, ... Big White Cursor.

Explanation:

The data is one of the most essential and the most important aspects of the  modern world and s collected each and every hour. The data forms an essential element of the internet and digital media.

The data is held soly responsible for the generation of numerous possibilities.The data collected can be used for further processing and creation of new contents.

Learn more about the tasks to identify.

brainly.com/question/20688743.

what is the definition of assiduous?

Answers

Answer:

showing great care and perseverance.

Assiduous is constant in application or effort; working diligently at a task; persevering; industrious; attentive: an


8.

Which of the following text pieces can be easily typed using right hand?
A. stewardess
B. lillipop
C. typewriter
D. FACE



Answers

Answer:

Lillipop

Explanation:

If you have your hands correctly placed on the keyboard, the only hand needed to type the word, "lillipop", is the left hand!

Hope I was of Assistance #SpreadTheLove <3

Internet and global communication came with challenges and opportunities, give example of opportunities from real life?

Answers

Answer:

Employment - The internet has allowed for people to be able to hire others from all over the globe instead of just in the country that they are based. The employers get access to skilled manpower from more than one place and more often than not, this kind of hiring reduces labor costs. Access to more markets - The internet and global communication have led to prosperity for a lot of people as they are now able to buy and/ or sell goods to many more markets. Think for instance, about the Chinese vendors selling on eBay or Amazon. The internet has allowed them to b able to sell to people all over the world instead of just China. Education : The internet also benefits education as students are now able to get help from other people by logging onto the net. People are also able to study in Universities that are far away from where they are based thanks to the internet allowing for instantaneous communication.

time to throw poggers xqc time to throw pogchamp time to throw pogchamp time to throw pogchamp time to throw pogchamp time to throw houhouhouhou time to throw poogcham

Answers

yes thank you very much

Answer:

yep

Explanation:

A client needed a software application to be delivered with a demo of the working software at every stage of development. The project head ensured that all the team members were in the same location. The work was completed in a short duration with minimal documentation and through continuous customer interaction. Which model did the team use? A agile B. spiral C waterfall D. RAD ​

Answers

Answer:

Rapid Application Development (RAD)

Explanation:

Software development life cycle (SDLC) can be defined as a strategic process or methodology that defines the key steps or stages for creating and implementing high quality software applications.

RAD is an acronym for rapid application development and it is a model that is typically based on the concepts of prototyping and iterative development technique with minimal documentation or planning involved.

In the RAD model, more priority is given to the development of the software while minimal attention is given to documentation or planning. Therefore, it focuses on developing softwares within a short period of time and using prototypes (working modules) such as templates, codes, processes, tools, etc.

Basically, the RAD model comprises of five (5) phases and these includes;

I. Business modeling.

II. Data modeling.

III. Process modeling.

IV. Application generation.

V. Testing and turnover.

In conclusion, the RAD model allows software application to be delivered with a demo of the working software at every stage of development for continuous customer interaction.

Answer:

Its rad ladies and gentlemen

Explanation:

The equipment that makes sewing easier and faster is ________​

Answers

Answer:

its a sewing machine

Explanation:

The equipment that makes sewing easier and faster is a sewing machine

Select all the correct answers.
Daniel is an app developer. He is working on an app for a retail store selling sports goods. The store manager explains that he would like customers to be alerted whenever there is a sale at the store. Interested customers would also be able to send an immediate response and book items they like from their mobile devices. Which statements about the use of the app are true?

It will make shopping easy.
It will enable quick transactions.
It will enable safety.
It will manage health.
It will save time.
Please I really need it because it will decides my grade.

Answers

Answer:

it will make shopping easy

Explanation:

The app will allow customers to shop with their phone instead of locating to the store. It also keeps the customers informed of events and sales for shopping.

Frida has been given the task of creating a database to store all her company's records and sales records. She is going to produce a relational database. The customers records will have the fields Customer_id, Name, Contact_Phone, and card Number. The sales records will have the fields Invoice_number, Item_number, Item_description, Item_cost and Customer_ref.

Complete the diagram below to show how the tables will be combined.

Answers

Answer:

A value that's used to identify a record from a linked table is called a ______. ... A database administrator is setting up a new table that will contain customer ... The fields include name, address, company, phone, email, and customer ID. ... Gina does not know how to write SQL commands and no forms have been created.

Explanation:

pls answer i need to turn it in today!!

In computing flowcharts how are decisions represented?

What is the command used most for decisions?

Answers

Answer:

See Explanation

Explanation:

How decisions are represented?

In flowcharts, decisions are represented using diamond shapes (see attachment)

Decisions could be conditional statement or repetition operations which may have the form of loops or iterations.

Either of theses are represented using the diamond shapes.

Take for instance:

To check if a is greater than b... Simply write if a > b i the diamond box

Command used for most decisions

Most decisions are conditional statements; hence, the if command is often used for decisions.

What are the basic parts of sewing machine?​

Answers

Answer:

1. Spool Pin  

Thread usually comes on a spool. That is the wooden thread holder you buy in the store. The spool pin holds the spool of thread for you making it easier for you to thread your machine and keep the thread coming as you want it to. Read about the spool pin felt.

2. Bobbin Binder Spindle  

A bobbin is a little cylinder that may come with or without flanges. It holds the thread that is wound around it. The spindle is where the bobbin is placed during winding.

3. Bobbin Winder Stopper  

The bobbin is only so large. It cannot always hold the amount of thread you want to put on it. This part stops the bobbin from collecting thread when it has reached full capacity.

4. Stitch Width Dial  

On many newer sewing machines, you get a variety of stitch options to use. The purpose of this part is to control the zig-zag stitch option while you are busy concentrating on your sewing.

5. Pattern Selector Dial  

This little dial allows you to select one stitch pattern out of the many that come built into your sewing machine. You just turn the dial to get the pattern that you want on your clothes and other fabrics you want to mend or create.

6. Hand Wheel  

This is the manual needle control which raises or lowers the needle. It is usually located at the right-hand side of the machine. It shouldn’t be that hard to turn.

7. Stitch Length Dial  

More recent sewing machines may have this part attached to them. Its purpose is to control the length of your selected stitch. This helps you stay in control of your sewing duties and make sure you get what you want and need.

8. Reverse Stitch Lever  

Once you push this lever, you get to sew in the opposite direction. This function makes your sewing a little easier and faster to do because you can go forward or in reverse when you need to.

9. Power Switch  

You already know what this switch does. The key to using it is to make sure you turned your sewing machine off before you walk away. Also, it should be located at the right side of your machine.

10. Bobbin Winder Thread Guide  

When you activate this part on your sewing machine, you are guiding the thread towards the bobbin/ This makes winding your thread up a little easier and should prevent twists, tangles or caught thread.

11. Thread Tension Dial  

Tension is important when you do your sewing. Too loose can cause you problems and too much tension could snap your thread and make sewing more time consuming as you have to re-thread the machine. This little part simply controls the tension on the thread so be careful when you use it.

12. Thread Take-Up Lever  

Your top thread passes through this part as you do your sewing. The lever moves up and down with your needle so do not be alarmed that it is constantly moving.

13. Needle Clamp Screw  

Needles do not stay in place by themselves. It would be nice if they did. You need this part to hold your needle where it is supposed to be. It also makes sure your needle is secure as it moves.

14. Presser Foot  

This is the part that holds your fabric so it doe snot slip all over the place while you are working. Controlling your fabric is important while you do your sewing.

15. Bobbin Cover  

Your sewing machine parts do need some protection to keep them in top working order and to help then last you for years. This is the job of the bobbin cover. It protects the bobbin as it covers it.

16. Bobbin Cover Release Button  

Also, you need access to your bobbin when it its filled with thread or there is a problem. This release button helps you to remove the bobbin cover so you have complete access to your bobbin.

17. Feed Dog  

It is an interesting name, but it has a very straightforward function., This part feeds your fabric through the sewing machine while you are sewing. This helps you concentrate on other sewing needs as you work.

18. Needle  

Another self-explanatory label that tells you everything you need to know. The needle is an integral part of the sewing machine and without it, the other parts cannot do their job.

19. Needle Plate  

This part is located right under the needle and an under the presser foot. Its job is to help move the fabric forward as you sew. It may help help push the fabric back when you use the reverse mode on your sewing machine.

Explanation:

The schematic diagram below shows three machines in a production unit connected to a 240 volt supply.
The layout uses different types of wire for the main wire, wire 1, wire 2, and wire 3.
Calculate the maximum current that can flow through each type of wire. The diameter of a wire is related to the maximum amount of current it
can safely carry. Use Internet resources to find the most suitable gauge of wire for each part of the wiring in the circuit. List the highest American
Wire Gauge (AWG) number that you can use for each type of wire. (Hint: For the main wire, consider how the current through it relates to the
currents through each of the machines.)
Also, state how you can protect the wiring from damage If any of the machines exceeds its maximum power rating because of a malfunction.

Answers

Answer:

[tex]\begin{array}{ccc}Wire \ Number &Maximum\ \ Current \ (A)& AWG\\&&\\Main \ Wire&16\frac{5}{6} &9\\&&\\Wire \ 1&9\frac{1}{6} &12\\&&\\Wire \ 2&5&14\\&&\\Wire \ 3&2.5&17\end{array}[/tex]

Explanation:

The given parameters of the circuit are;

The voltage applied to the circuit = 240 volt

The types of wire in the circuit are Main wire, wire 1, wire 2, and wire 3

The maximum current that can flow through each type of wire is given by the max power of the machine powered by the wire

Power, P = Voltage, V × Current, I

∴ I = P/V

The maximum power of the machine powered by wire 1 = 2,200 W

The current flowing through wire 1, I₁ = 2,200 W/(240 V) = 55/6 A = [tex]9\dfrac{1}{6} \, A[/tex]

The maximum power of the machine powered by wire 2 = 1,200 W

The current flowing through wire 2, I₂ = 1,200 W/(240 V) = 5 A

The maximum power of the machine powered by wire 3 = 600 W

The current flowing through wire 3, I₃ = 600 W/(240 V) = 2.5 A

Therefore, Kirchhoff's current law, we have;

The current that the main wire can carry, I = I₁ + I₂ + I₃

∴ I = 55/6 A + 5 A + 2.5 A = 50/3 A = 16.[tex]\overline 6[/tex] A

The current that the main wire can carry, I = 16.[tex]\overline 6[/tex] A

The highest American Wire Gauge (AWG) that can be used for each type of wire are listed as follows;

[tex]\begin{array}{ccc}Wire \ Number &Maximum\ \ Current \ (A)& AWG\\&&\\I&16\frac{5}{6} &9\\&&\\I_1&9\frac{1}{6} &12\\&&\\I_2&5&14\\&&\\I_3&2.5&17\end{array}[/tex]

Therefore, we have;

[tex]\begin{array}{ccc}Wire \ Number &Maximum\ \ Current \ (A)& AWG\\&&\\Main \ Wire&16\frac{5}{6} &9\\&&\\Wire \ 1&9\frac{1}{6} &12\\&&\\Wire \ 2&5&14\\&&\\Wire \ 3&2.5&17\end{array}[/tex]

the guest would like to convert his 100 dollar to peso.How much will the guest receive if the exchange rate is 1 dollar=Php 50.50?​

Answers

Answer:

the answer is $100

I hope it helps

have a nice day

#Captainpower :~

Which of these best represents a call to action?
O A. Bright colors on a billboard
O B. "Buy 1 Get One Free!"
O C. Loud background music to a commercial
O D. "Come in today!"

Answers

Answer:

d

Explanation:

d just did it

"Come in today!" best represents a call to action. Thus, option D is correct.

What is a call to action?

This is an instruction on a webpage or a house call that directs the customer to execute an action. Traditionally, a call to action is expressed as a directive and deed that a person needs to come in soon. Any layout intended to elicit an instant answer or promote an entrepreneurship culture is referred to in promotion as a "call to action."

The shop represents or says that come in today, they were for the customer to come in today and help the people to come in and get the product that is needed.

This suggests that the part there will be a change in the want of the people and the command of the people that the people should immediately want them to come in, it is a strategy to attract the customers. Therefore, option D is the correct option.

Learn more about call to action, here:

https://brainly.com/question/12170995

#SPJ2

Other Questions
We as a social order have to figure out three things. What are they? When using alcohol-based hand sanitizer how many seconds should you rub the ABHR into your hands to ensure killing of all microorganisms? What does Thoreau mean whenhe says "the richest vein issomewhere hereabouts"? Whatkey idea does this statementconvey? What is the simplified form of the following expression? rootindex 3 startroot startfraction 4 x over 5 endfraction endroot. Plot the points A(3,-2), B(-3, 8), C(-5, -1) on the coordinate axes below. Statethe coordinates of point D such that A, B, C, and D would form aparallelogram.(Plotting point D is optional.) How much does pressure change with altitude? 5. What type of intermolecular force gives water many of its characteristics?hydrogen bondingOion-dipole forcesO dipole-dipole forcesdispersion forces A car of mass 942.4 kg accelerates from rest with a constant power output of 140.5 hp. Neglecting air resistance , what is the speed of the car after 4.55 s? What is the slope-intercept form the linear equation 2x y 10? Succinic acid occurs in fungi and lichens. Its empirical formula is C2H3O2 and its molar mass is 118.1 g/mol. What is its molecular formula? (Type your answer using the format CH4 for CH4.) Can someone help, please? 3x+9y=-6 ,-4x-12y=8 solve by substitution method Have you ever experienced a time when someone else had something you wanted? If so, did you take it? And how did you justify your actions to yourself or others? Do you believe there are situations in which taking something from someone by force is acceptable? Answer these questions with a minimum of 5 sentences. PLEASE HELPA boutique in Hampton specializes in leather goods for men. Last month, the company sold 36 wallets and 11 belts, for a total of $3,295. This month, they sold 91 wallets and 10 belts, for a total of $7,599. How much does the boutique charge for each item?Wallets: $__Belts: $__ How many images are formed when two plane mirrors are placed at 120? 2 Al + 3CuCl --> 2 AlCl3 + 3 CuHow many grams of Al do you need to make 15 g of AICI3? Rememberto round all molar masses to whole numbers.(round to the hundredths place) Which expression is equivalent to the given expression? A. B. C. D. In biochemistry laboratories, solutions of sucrose (table sugar, C12H22O11) are used in high speed centrifuges to separate the parts of a biological cell. How many liters of 4.25 M sucrose contain 109 g of solute? Circle D is shown. Line segment C D is a radius with length 18 centimeters. Which statements are true regarding the area of circle D? Select two options. The area of the circle depends on the square of the radius. what process prepares a hard drive for use by an operating system?