[tex]\Huge\sf\underline{\underline\red{Question}} [/tex]

WAP in Java to input a number and deduce if the
entered number is positive or negative.

☞note: I want program not explanation​

Answers

Answer 1
Tbh I don’t know too much.. nor can I try the code but.. try this.

var number = window.prompt("Enter a number: ")
if (number > 0) {
alert("positive") // positive
} else {
alert("negative") // negative
}
Answer 2

Answer:

var number = window.prompt("Enter a number: ")

if (number > 0) {

alert("positive") // positive

} else {

alert("negative") // negative

}


Related Questions

A shorthand method consists of a symbol of the element surrounded by dots?.​

Answers

Answer:

Since it is falling freely, the only force on it is its weight, w. w = m ⋅ g = 1000kg ⋅ 9.8m s2 = 9800N To draw a Free Body Diagram, draw an elevator cage (I am sure you would get lots of points for drawing it with intricate detail) with a downward force of 9800 N. I hope this helps,

Explanation:

Assignment 4: Evens and Odds


How do I fix this?

Answers

There's definitely something wrong with your for loop. Try this:

for x in range(n):

You might want to check if all your print statements are correct. You might be missing just a period and it will be counted wrong.

Coding help, if you give my the correct answer I'll give brainliest, plus 30 points...

Which of the following statements would access the fourth item in a list named flavors?

A. flavors(3)
B. flavors[4]
C. flavors[3]
D. flavors(4)

Answers

Answer:

Flavors [4]..............

The main reason for formatting message style and theme is that it can be useful for making your message

more entertaining to the reader.
easier to send and receive.
professional in appearance.
top priority for the reader.

Answers

Answer:

The answer is C

Explanation:

CCCCC

Answer:

C

Explanation:

Answered myself.

Which of the following is NOT considered an interactive?
A. Feedback forms
B. Text
C. Calendars
D. Social media integration

Answers

Answer: Calendar

Explanation:

Feedback forms, text and social media integration are considered to be interactive. A feedback form is used by an individual or a organization to get a feedback on a certain topic.

A text and social media integration are also interactive as well as the sender and receiver can have an interactive session through both means.

Therefore, the correct option is a calendar as this is not Interactive.

What is the result of adding 1234.5674 and
45.67843 if you round to the nearest thousandth BEFORE the addition?

A. 1280.24543

B. 1280.246

C. 1280.245

D. 1280.24

Answers

Answer:

C. 1280.245

Explanation:

1234.567 + 45.678 = 1280.245

why is it important to consider the clients temperature before doing the foot spa services?​

Answers

Answer:

Expecially during these time checkling someone’s tempature could separate you from either getting the virus or not. But without the virus right now, it would be vital due to common things like, if the client has a little fever, you can make the water less hot so it wouldn’t be burning (unless requested). Or with a cold, you can make the water warmer to make it more enjoyable.

Which tool is used to create a basic web page using HTML?

HTML
Web coder
Text editor
JavaScript

Answers

Answer:

C. Text Editor

Explanation:

Answer:

Text editor

Explanation:

Computer instructions are converted to binary when executed. Binary numbers use which set of digits?

A, B, C, D, E, F

0 and 1

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F

0, 1, 2, 3, 4, 5, 6, 7, 8, 9

Answers

Answer:

Binary numbers are expressed using only the digits 1 and 0. This is also referred to as base 2 notation.

Computer instructions are converted to binary when executed. Binary numbers use 0 and 1 set of digits. The second option is correct.

What is binary number?

In digital electronics and mathematics, a binary number is defined as a number expressed in the form of base 2 numeral system.

Binary number contains only two digits i.e. 1 and 0.

Thus, 0 and 1 set of digits are used in binary numbers.

Learn more about binary number.

https://brainly.com/question/8649831

#SPJ2

What element of a timeline helps to mark progress of the project?
A.
milestones
B.job responsibilities
C.
external deliverables
D.
internal tasks

Answers

The correct answer is A. Milestone

Explanation:

In a timeline, events are organized according to time. This tool can be used as part of projects to organize each of the events or stages that are part of a project. Moreover, in a timeline, there are milestones or important achievements.

For example, if the project is to build a house, one of the milestones or important achievements is to complete the plane of the building. This implies each of the milestones helps to check the progress of the project. After all, if all the milestones are achieved the project will be completed.

Do you think lossy compression formats will be popular in 20 years? Why or why not?

Answers

Answer:

I think it will be not popular

Explanation:

We are living in a information era and future data will be more important than now so we will need every detail of information and we will need data. Lossy compression is faster but computers are getting powerful so lossless compression will be faster so lossless compression will be popular.

Which numbers are perfect squares? Check all that apply.
1
2
16
18
32
44
94
100

Answers

Answer:

16 , 100

Explanation:

4² = 16

10² = 100

hope this helps

Answer:

1, 16 and 100 are the only perfect squares listed there.

Explanation:

The first ten perfect squares are

1, 4, 9, 16, 25, 36, 49, 64, 81 and 100

Three of those match the ones listed.

Who plays Rblx?? What do yall play?

Answers

Answer:

i play rblx

Explanation:

queenloveadriana (main acc)

AdiosLoca (alt)

Azazel_Iblis (the acc I'll use for my YT channel)

I also play Fn, CofD, Destiny, 2k, Mortal Combat, but my PS4 broke and I'm waiting to get my PS5 that I ordered        

Answer:

i do

Explanation:

Alpha Technologies, a newly established company, wants to share information about its work with people all over the world. Which type of server should this company use to upload their information?

Answers

This answer from the pro IdowShadow

Option A, Web Server, because it is a type of HTTP server used to direct web pages and blogs, as a method of transmitting information through a web platform for personal or business use, to publicize a business or an organization.

Given the 8-bit binary code 10011011, what is the equivalent decimal value?
101
155
256
83
634

Answers

Answer:

The binary number 10011011 is equivalent to the the decimal number 155.

Explanation:

You can solve this by looking at each bit as a multiple of a power of two, starting at 2⁷ and descending:

10011011 ≡ 1 × 2⁷ + 0 × 2⁶ + 0 × 2⁵ + 1 × 2⁴ + 1 × 2³ + 0 × 2² + 1 × 2¹ + 1 × 2⁰

= 128 + 16 + 8 + 2 + 1

= 155

Write a java program to find the perimeter of a triangle with sides measuring 10cm, 14cm and 15 cm.

Answers

Answer:

The code is shown below.

Explanation:

Consider the provide information.

We need to find the perimeter of the triangle.

The perimeter of the triangle is the sum of all sides.

So the perimeter should be: 10 cm + 14 cm + 15 cm =  39 cm

Now we will write a Java program to find the perimeter.

public class MyClass {

   public static void main(String args[]) {

     int x=10;

     int y=14;

     int z=15;

     int A=x+y+z;

     System.out.println("The perimeter of the triangle is 10 cm + 14 cm + 15 cm = " + A+" cm");

   }

}

Execute the program and you will get a result like this:

The perimeter of the triangle is 10 cm + 14 cm + 15 cm = 39 cm

Refer to the image for better understanding.

Exercise 7.2.6: If You're Not First, You're Last
Write the function called end_of_word that takes a string and returns everything but the first character.

end_of_word ("boat")
="oat"
end_of_word ("mice")
="ice"​

Answers

Answer:

end_of_word ("boat")

="oat"

end_of_word ("mice")

="ice"​

Explanation:you need to call out your function in the best way possible

Answer:

def end_of_word(word):

   return word[1:]

print(end_of_word("something"))

Explanation:

Your welcome :D

five differences between email and website addresses​

Answers

Answer:

I don't know if there are that many

An email address is an address that you can send mail to online (e-mail)

A website address is an address that you can look around at and do stuff in.

An email address always has the 'at' symbol.

Website addresses and in .com, .org, .gov etc to show that it is a 'company', organization, government website etc.

Answer:

Email:

1. For communication between individuals.

2. Can be personalized.

3. Can be made by everyone easily.

URL/Website Address:

1. For organizations or mass media communications.

2. Not everyone knows how to make a website.

Ask one of your parent, grandparent or elder relatives about the popular song during their time they consider their favorite. Ask them why they like the song. Afterwhich, listen to the song yourself, which wordings or lyrics in that song you find interesting and why?​

Answers

Answer:

Babooshka by Kate bush

Explanation:

My dad likes this song because it has a very nice beat

I find this sond interesting because the vocals and pitch end up sounding different than you would expect them to be. Also the range of the singer (Kate bush) is amazing

Explain the four misconceptions about entrepreneurship.

Answers

Answer:

that is the answer

Explanation:

ok its about succes you business

Mi laptop dice the computer restarted unexpectedly or encountered an unexpected error.Windows installation cannot procced.To install Windows,

Answers

Answer:

Explanation:

There are two reasons as to what could have happened with your laptop. The first one is that your laptop was installing a critical windows update which got corrupted when the laptop's battery died causing windows itself to become corrupted. In this case, you would need to format the hard drive and reinstall windows. The second reason could be that your hard drive is failing and not allowing Windows to load or properly be installed on it. In this second scenario you would need to buy and replace the hard drive.

What does search engine optimization (SEO) do?
A.
helps in tracking changes in progress
B.
tries to improve the ranking in user searches
C.
tries setting quality benchmarks
D.
makes navigation easier for the visitor

Answers

Answer:

B. tries to improve the ranking in user searches

Explanation:

Search engine optimization (SEO) can be defined as a strategic process which typically involves improving and maximizing the quantity and quality of the number of visitors (website traffics) to a particular website by making it appear topmost among the list of results from a search engine such as Goo-gle, Bing, Yah-oo etc.

This ultimately implies that, search engine optimization (SEO) helps individuals and business firms to maximize the amount of traffic generated by their website i.e strategically placing their website at the top of the results returned by a search engine through the use of algorithms, keywords and phrases, hierarchy, website updates etc.

Hence, search engine optimization (SEO) tries to improve the ranking in user searches by simply increasing the probability (chances) of a specific website emerging at the top of a web search.

HELP ASAP!!!!
Rosa needs to add a new slide layout to her presentation for the Sales users to add videos and other media in an
easier fashion. What should she do first?
Open PowerPoint options.
Create a design template.
O Access the Slide Master view.
O Design a new customized presentation

Answers

Answer:

C. Access the Slide Master view.

Explanation:

PowerPoint application can be defined as a software application or program designed and developed by Microsoft, to avail users the ability to create various slides containing textual and multimedia informations that can be used during a presentation. Some of the features available on Microsoft PowerPoint are narrations, transition effects, custom slideshows, animation effects, formatting options etc.

In this scenario, Rosa needs to add a new slide layout to her presentation for the Sales users to add videos and other media in an easier fashion. Hence, what she should do first is to access the Slide Master view because this is used for changing the look or making adjustments to a PowerPoint slide.

Which of the following BEST describes a front-end developer?

Answers

Answer:

plz give me BRAINLIEST answer

Explanation:

Definition: Front end development manages everything that users visually see first in their browser or application. Front end developers are responsible for the look and feel of a site. ... As a front end developer you are responsible for the look, feel and ultimately design of the site.

A front-end developer is a type of software developer who specializes in creating the user interface (UI) and user experience (UX) of a website or application. They are responsible for translating design mock-ups and wireframes into functional code using programming languages such as HTML, CSS, and JavaScript.

Front-end developers work on the client-side of web development, focusing on the visual aspects and interactions that users see and experience directly. They ensure that the website or application is visually appealing, responsive, and user-friendly across different devices and browsers.

In addition to coding, front-end developers collaborate closely with designers and back-end developers to integrate the UI with the back-end systems and databases. They may also be involved in optimizing the performance and accessibility of the front-end code, as well as testing and debugging to ensure smooth functionality.

Learn more about databases on:

https://brainly.com/question/30163202

#SPJ6

Write about the history of computer.​

Answers

Answer:

Charles Babbage, an English mechanical engineer and polymath, originated the concept of a programmable computer. Considered the "father of the computer", he conceptualized and invented the first mechanical computer in the early 19th century. ... The machine was about a century ahead of its time.

Explanation:

Hope it is helpful...

what type of activities are performed with the help of the software used in hospitals?

Answers

Answer:

Xrays, Ultrasounds, managing patient records, communicating with colleagues, etc.

xrays ultrasounds lasers

A ____ can be used to enter, display, or edit data

Answers

Answer:

Database

Explanation:

Some people think of computer programming as a male-dominated field. But the first algorithm to be executed by a computer was created by Ada Lovelace and the first compiler (which is a tool for converting one programming language into another) was created by Grace Hopper. What do you think could be done to encourage more women to study computer science?

Answers

Answer:

Various campaigns and awareness program can be launched to encourage women to study computers.

Explanation:

Ada Lovelace was a great mathematician and is famous for computing. She was very fond of mathematics. She did some exceptional work on various computer concepts. Thus she is considered as the first computer programmer. While Grace Hopper was a well known computer compiler and a computer scientist.

So it is clear from above that computer programming or studying about computers is not a male dominating thing. Women have done exceptionally good in this field.

Women should be encouraged more about studying and learning computers and programming languages. Various campaigns can be launched to spread the awareness. It should brought to public notice that studying computers does not require extra skills or knowledge and everybody can study and excel in them.

Free study programs or classes can be organised for the girls and women to learn about computers and different programming languages so that more and more women can come enroll themselves in the program and study computers.

Answer:

hi

Explanation:

please HELP!!!!
Which term refers to the individual locations within a PowerPoint table?
O units
O sections
O cells
O formulas

Answers

Answer:

cells

Explanation:

Cell is a individual location in PowerPoint table.

Answer: c

Explanation:

I will mark you as BRAINLIEST if you give me the correct answer of the questions... Pls asap with all details i am time limited

11. Find the number of square decimetres in a hectare.

20. Find a formula for the length of a room in terms of its breadth b metres and the perimeter of its floor, p metres​

Answers

Answer:

11. 1million square decimetres (from online)

20. assuming room is rectangular,

length= (p - 2b)/2

because perimeter= 2 length + 2 breadth for rectangular

perimeter of room will be

2×(l+b)

hope it helps you

Other Questions
what is the domain of g IS BMI = Hight /Weight?Yes or no ? Help me please please help me Give the amino acids for the codes: CAA, GAC, UAC, AAA, GUA. Please answer ASAP A)soy clarity soy costarricense B) la Hermanastra de estela es ecuatoguineanaC) Nuestros hijos deportistas son ecuatorianos.D) Su abuela es chilena y le gusta mirar la tele. Jerritt has 5 friend . 2 have video game and the rest have dont have any. He gives Leonard 2 of his video game. Know Jerritt has 2 video game. How many of Leonard friend dont have video game? Someone please help me 5/8+(-3/5)+(-5/8)+5/3 what is the answer Somebody please help me Please help answer correctly !!!!!!!!!!!!!!!! Will mark Brianliest !!!!!!!!!!!!!!! 8( -4 - 9h) I REALLY REALLY REALLY NEED HELP PLEASE HELP list the details of how the first wish was granted from monkey's paw When viewing the shape of a human cheek cell, what microscope would most likely be used? A.) Light B.) Dissecting C.) Transmission Electron D.) Scanning Electron Pakisagutan lang po help pls Which of the following statements best describes the civil rights movement led by Martin Luther King Jr.? A) A protest movement involving peaceful civil disobedience B) A protest movement that broke no laws C) A violent radical protest movement D) A lobby group that used its influence and money to sway lawmakers A generator delivers an AC voltage of the form v =(82 V) sin (75t) to a capacitor. Themaximum current in the circuit is 1.00A. Find the following.(a) rms voltage of the generator1 V(b) frequency of the generator2 Hz(c) rms current3 A(d) reactance4 (e) value of the capacitance5 F this is my last question please help can anyone help me with this question? A middle school took all of its 6th grade students on a field trip to see a play at a theater that has 4600 seats. The students filled 92% of the seats in the theater. How many 6th graders went on the trip? What does the universe contain? A. Only stars and planets B. Everything