How to square a number in java.

Answers

Answer 1

Answer:

num**2

Explanation:

To square a number in Java, you just take the number and use two asterisks (**) to denote an exponent, and then connect a 2 to it.

For example, if your number is 5:

5**2 in Java means 5^2, which is 25.

Just like how 5**3 in Java means 5^3.

Hope this helps.


Related Questions

PLEASE HELP ME

(b) When a computer systems RAM becomes full it can use virtual memory.
Explain what happens if the computer does not have any virtual memory.

Answers

Answer:

it won't be able to run

Explanation:

because computer runs on physical memory

If a computer does not have any virtual memory, the consequences of running out of physical RAM can be quite problematic.

When the RAM becomes full, the operating system relies on virtual memory as a way to supplement the physical memory shortage. Without virtual memory, the system would have no way to manage or accommodate the excess data that needs to be stored temporarily.

As a result, the computer would likely start experiencing severe slowdowns, freezing, or crashing when attempting to run applications that require more memory than is available.

In extreme cases, the system might even become unresponsive or display error messages indicating a lack of memory. Virtual memory acts as a safety net, allowing the computer to continue functioning by utilizing a portion of the hard drive as temporary memory storage when physical RAM is exhausted.

Without this essential feature, the computer's ability to multitask and handle memory-intensive tasks would be severely hindered.

Learn more about virtual memory, click;

https://brainly.com/question/30756270

#SPJ3

A common attack in which a client's cookies, security tokens, or other personal information is obtained and used to impersonate the user is referred to as

Answers

Answer:

Identity Theft. i hope this helps :D

Read what is in the commets.

Answers

Answer:

I'm a little confused on what you are asking, could you please explain.

PLEASE HELP! (NO LINKS)

The US Copyright Act gives computer programs the same status as what kinds of work?

Answers

Answer:

C.

Explanation:

In image below.

                                        Have a wonderful day and mark brainliest if I helped,

                                                                   starkitty052010 of Brainly

                                       

In object-oriented programming, a data member plays the role of _________. a. an attribute b. a behavior c. either a or b d. neither a nor b

Answers

In object-oriented programming, the object consist of both the data and the functions that operate on the data. In object-oriented programming, a data member plays the role of neither A nor B.

Objects are the product of abstract data types that has inside of it both data and function altogether.

A data member often has different classes. They can be private or public.

Object-oriented programming (OOP) is simply known as a computer programming model that put together software design around data, or objects.

Learn more from

https://brainly.com/question/12342989

we are unable to process your request at this time. if you continue to receive this error, please contact cardholder services by calling the number on the back of your card.

Answers

Answer:

is this a sim chip card replacement card for Electronics ?

Explanation:

In older languages, you could leave a selection or loop before it was complete by using a ____ statement

Answers

Answer:

D) go to

Explanation:

A) next

B) go next

C) loop

D) go to

D) go to is correct answer

(Hope this helps can I pls have brainlist (crown)☺️)

We use the keyboard to point, click, and select menus and icons, and for onscreen navigation. True or False

Answers

Answer:

False.

Explanation:

Hope I could help. Hey, have a nice study time.

Answer:

false

Explanation:

we use our keyboard to type not click icons or point.

Can you make a phone app with angular?.

Answers

Answer:

yes

Explanation:

poob bn vbyfcfgxfc jghjg jhgh

Answers

Answer:

Ploob was a monster employed at Horville's Hut of Horrors. He looked like a small green ball with a long tube-like nose and hair along his spine.

Explanation:

The Internet provides access to Internet information through documents including text, graphics, audio, and video files that use a special formatting language called HTML.

Answers

Answer:world wide wev

Explanation:

Select the correct text in the passage.
Which three phrases describe a wireframe?

Tracy uses a (pictorial summary of an entire website) in her team meeting. It is a (two-dimensional illustration) of how (each web page on a website will look.) Known as a workflow diagram, this (explains how pages in a website connect to one another.) It is a (design tool), and it (shows the overall framework of a website.) It is a (visual representation of how much space each element on a page should take.)

Answers

Answer:

A B D

Explanation:

Which process refers to the process of translating between a set of private addresses inside a network and a set of public address outside the network

Answers

Answer:

The process of translating between a set of private addresses inside a network and a set of public addresses outside the network is called

IP pulling through use of a subnet mask bypass

What is the difference between the dom api and the html dom api.

Answers

The DOM-core is the object model that is common for all XML documents (including HTML) with elements and attributes. The HTML-DOM is an extension of the core DOM with more specific interfaces for the various HTML elements.

What access-point feature allows a network administrator to define what type of data can enter the wireless network?

Answers

Traffic filtering. It’s name is self-explanatory!

with which type of satellite is there a propagation delay?

Answers

Geostationary satellites have a high propagation delay.

As a game designer, your goal in game design is to get your players to fell like your game is the whole world. You want your players to obtain a state of deep engagement with the game that allows them to fully invest their imagination in the game's artificial world. If you successfully accomplish this, what have you mastered?

roguelike state

second person perspective

player immersion

seamless movement

Answers

My Answer:

Player Immersion

Explanation:

I love video games, so this is something I am also looking for. Player Immersion will successfully draw the player into the game, seamlessly hooked to it. In order to make this possible, focus on the big details, like the setting, the music, and the plot.

Setting: Must be immersive, big, and beautiful.

Music: Must be beautiful, grand, and can possibly get stuck in your head.

Plot: Must be plausible. Don't make a plot that doesn't tie into the game.

These are things that will definitely draw in your player, hence, the answer is player immersion.

Hope this helps!

Player immersion because it tells u right there

Angular when to use reactiveformsmodule.

Answers

Answer:

Image result for Angular when to use reactiveformsmodule.

In summaries, if forms are very important for your app, or reactive pattern are used in your app, you should use reactive forms. Otherwise your app have basic and simple requirement for forms such as sign in, you should use template-driven forms

Explanation:

Each form has a state that can be updated by many different interactions and its up to the application developer to manage that state and prevent it from getting corrupted. This can get hard to do for very large forms and can introduce a category of potential bugs

1. Which software is used mostly for typing text? a) Word b) Excel O c) PowerPoint o d) Paint​

Answers

Answer:

a. Word

Explanation:

Microsoft Word is the most widely used word processing software according to a user tracking system built into the software.

Answer: a) Word

Explanation: Microsoft Word is the most widely used word processing software.

In a complex formula, how does excel determine which calculation to perform first?.

Answers

In a complex formula, the way excel determines which calculation to perform first is that; It follows the order of operations.

When carrying out calculations in excel, if we don't bracket certain operations, excel will use the order of operation called BODMAS to determine which operation to carry out first.

For example, if excel wants to solve 3 × 4 + 7 - 2;

The acronyms in BODMAS stand for;

B - Brackets

O - Orders (powers/indices or roots)

D - Division

M - Multiplication

A - Addition

S - Subtraction

Now, it means that the first action it will perform is Bracket while the last will be subtraction.

In our example, excel will first use the multiplication sign to get;

(3 * 4) = 12

Then addition; 12 + 7 = 19

Then subtraction; 19 - 2 = 17

Read more on BODMAS at; https://brainly.com/question/16788360

Power Supply

Description :

Answers

A device that supplies power to electronic equipment which; is sometimes called A, B, or C according to its purpose of heating vacuum tube cathodes, producing electron current flow in plate circuits, or applying a direct voltage in grid circuits.

Explanation:

Not exexactly sure on what your asking

AI is not embraced everywhere in every industry because _______.

Answers

Answer:

See below:

Explanation:

AI is not embraced in every industry because of the type of industry and what it requires. In some situations, a human is needed since an AI cannot determine what to do and can sometimes even cause death.

AI isn't embraced everywhere because for some things we need a person, lets say for example, we need an AI to respond to 911 calls, that simply won't work due to the many situations and training the bot too will be a nightmare. For example, if a caller says a word that normal humans can understand, or a "code word" that every human knows but they haven't bothered to tell the bot, that will be the end of the line for them.

There are mutliple reasons to not use AI depending on the situation whether its life and death or just plain impractical.

________ is a group meeting-based process for requirements collection. a. Reverse engineering b. Joint application design c. Human-computer interface d. Computer-aided design e. Total ownership

Answers

Answer:

a) reverse engineering

Write a program to output 3 lines of text with the following information:
Student's first and last name:
Class:
Born in:
Answer

Answers

Answer:

C LANG

#include <stdio.h>

// function main begins program execution

int main( void )

{

printf( "student's first name" );

} // end function main

PYTHON

student's name=''

born_date=''

class=''

print ('')

Explanation:

create an sql database rows and Columns then use sql commands to call any specific data if so :

(you have a complet database of students data)

SELECT born_date

FROM students

//(Call all students born_date )

//you can specify

********,*********

to create an sql table

CREATE TABLE students (

name char,

born_date int,

class int,

);

Would my phone still work if I snapped it in half?

Answers

Probably not
Not a good idea my friend

Depends on if you wanna get it repaired or not

Why do
ve need to add movies in our slide?

Answers

Answer:

movies are awesome! LOL but i dont understand your question...sadly.

Explanation:

Bob has started a company and registered its name with the government as a private corporation. He tries to create a domain name using that registered name along with his country code. The name has already been registered by someone else. What should Bob do

Answers

Answer:

bobo

Explanation:

What is an IF statement used for?

Answers

The IF statement is a decision-making statement that guides a program to make decisions based on specified criteria. The IF statement executes one set of code if a specified condition is met (TRUE) or another set of code evaluates to FALSE.

I need help with this question.

Fill in the blank with the correct response.
When an app seems to have a personality, we say it has ____

Answers

The answer is persona

When should you close the socket python tcp server client.

Answers

f socket refers to an open TCP connection, the connection is closed. If a stream socket is closed when there is input data queued, the TCP connection is reset rather than being cleanly closed. The descriptor of the socket to be closed

To close the socket you need to call shutdown() first and then close(), and shutdown takes an argument
Other Questions
A females eggs are located in the : aCapillaries bUterus cTestes dOvaries how does binomal nomenclature work? I need a small answer!!!!! no more then 1 sentance! i will give brainliest!!! Click to see the picture! NO LINKS 3/15 as an improper fraction 100 points if you answer - if it's correct ill give brainliest(01.04 MC)The elevation of city A is 60 feet above sea level; the elevation of city C is 12 feet above sea level. The elevation of city D is 1 over 2 of the elevation of city C.Part A: Write an expression to represent the elevation, in feet, of city D. (5 points)Part B: Solve the expression and explain why the answer is negative or positive. (5 points) A package of breakfast bars has 12 breakfast bars in it. The total weight of the breakfast bars in the package is552 grams. The mass of each breakfast bar is the same. What is the mass in grams of each breakfast bar? People at Collier High School are really crazy about the afterschool enrichment program. How should this sentence be rewritten to BEST match the overall tone of the report? Hello all, I am giving free pooints! Click answer fast to get 50 pooints! Chance of getting brainliest and extra 25 pooints! (keep forgetting) Sun Do sells key chains with leather fobs for $12 and $9. The key chains are very similar and have identical manufacturing costs. The difference is that the stitching on the leather fob is in a less precise pattern on the $9 key chain than it is on the $12 key chains. What approach to price discrimination is Sun Do using 13. A stack of lumber contains the following: three 1" x 6" X 8' pieces of yellow pine. six 2" x 10" x 12' pieces of redwood. six 1" x 8" 10' pieces of fir. How many total board feet of lumber are in this stack? *180 board ft162 board ft192 board ft172 board ft According to Machiavelli is it better to be feared, but what other emotion should a leader avoid among his people? I rode my bicycle to grandmother's house at 6 km/h in a flat road for 5 min before reach a hill. I went at 2 km/h up the hill for 3minutes. I met a friend and stopped to talk for 5 minutes. I went on at 2 km/h to my grandmother's house. Draw (plot) the v against t graph for this motion. name the section of music within a concerto during which improvisation occurs. Select the equation which represents the equation solved for y.20x+5y=35y=4x+7y=4x+7y=4x7y=4x7 Fill in the gaps with the list of wordsGilberto Gil is a Brazilian singer and guitarist, and one of his country's most (1)_____________ songwriters. As a young musician in the 1950s, he was (2)_____________ by the bossa nova style of Joao Gilberto, but he didn't (3)_____________ his first album, Louvaqao, until 1967. He travelled in the 1970s, (4)_____________ an album in English, and, in 1980, introduced reggae to Brazil with his (5)_____________ of the Bob Marley song, 'No woman, no cry'. He has played with many musicians, while continuing his career as a (6)_____________ artist. In all he has produced over 40 (7)_____________. His music (8)_____________ to people because of the rhythm and melodies, but people also (9)_____________ him for his work in politics and for social causes.albumsreleaseappealstalentedrecordedadmirerecordinginfluencedsolo 10 x 9= what is it help solve for x in the triangle!!! Find all of the rational zeros of the function. f(x)=x 4 3x 3 6x 2 +6x+8 #1 Twenty five members of a travel club are planning their next club trip. Each memberhas ranked their choices according to the following preference schedules. Is the pluralitywinner the same as the majority winner? ________ is the only element in the marketing mix that produces revenue.