does anyone know how to make a astronaut hop while using loop?

Answers

Answer 1

Answer:

In Java

Explanation:

package application;

import java.util.Scanner;

import entities.Astronaut;

public class Main {

public static void main(String[] args) {

 Scanner sc = new Scanner(System.in);

 

 System.out.print("How is the astronaut's energy in a scale of 0 to 100? ");

 int energy = sc.nextInt();

 

 Astronaut fakeArmstrong = new Astronaut();

 

 while (energy > 0) {

  fakeArmstrong.hop();

  energy--;

 }

 

 System.out.println("The astronaut is tired eh? Let him rest you psychopato");

 sc.close();

}

}

----------------------------------------------------------------------------------------------

package entities;

public class Astronaut {

private int bodyEnergy;

 

public Astronaut() {

 

}

 

 

public int getBodyEnergy() {

 return bodyEnergy;

}

public void hop() {  

 System.out.println("up and down!");    

}

}


Related Questions

If, in a recursive solution, function A calls function B which calls function C, this is called ________ recursion. indirect three function call direct continuous

Answers

If, in a recursive solution, function A calls function B which calls function C, this is called Indirect recursion.

A recursive algorithm is said to be recursive if such an algorithm calls itself with smaller input values and get current result for implementing basic operations on those simple inputs.

Indirect recursion occurs when a function A invokes another function B which in turn makes it the original function and calls another function C.

Learn more about recursion here:

https://brainly.com/question/3169485?referrer=searchResults

What do we call any element within a computer program, such as a computer game, which simulated decision-making based on algorithms defined by game designers and programmers?

non-player characters (NPCs)

artificial intelligence (AI)

avatar

roguelikes

Answers

Answer:

AI - Artificial Intelligence

Explanation:

___1. What is the first thing you should do if you received a package?
a. count the number of items c. accept it immediately then leave

b. check out the whole package d. check for the delivery receipt

________2. What should you do with the copy of your request for inspection?

a. return to the delivery man c. dispose it immediately

b. keep the copy of your request letter d. do not accept the letter

________3. What form is used to request for tools and equipment to be used for a

particular job written instruction to perform a work?

a. job order / order forms c. inventory of Materials forms

b. borrower’s forms d. purchase requisition

Answers

1.C
2.D
3.D
4.B
5.A
6.A
7.C
8.D
9.A
10.C

Which type of security is specifically concerned with computers or devices that are part of a network infrastructure

Answers

Answer:

Ransomware

Explanation:

"Ransomware is malicious software that threatens to reveal sensitive data or prevent access to your files/systems until you pay a ransom payment within a set timeframe."

Question # 2
Multiple Select
Which of the following statements are true regarding feedback? Select 3 options.

-Feedback is used exclusively for marketing purposes.

-Feedback includes only the unsolicited opinions of customers.

-Feedback can be gathered from everyday activities, like support calls.

-The type of feedback gathered, depends on the phase of the project and the goals for the feedback.

-Customer surveys can be used to ask specific questions.

Answers

The statement that are true regarding feedback are:

c. Feedback can be gathered from everyday activities, like support calls.

d. The type of feedback gathered depends on the phase of the project and the goals for the feedback.

e. Customer surveys can be used to ask specific questions.

What are feedbacks?

Feedbacks are the return compliments or suggestions that are given by customers after taking any service by any company. The business updates its products in response to client input.

He requested input from his employer. According to the sensors' feedback, the computer adjusts. The microphone was providing some input to us. These feedbacks are important for the company or any other person to improve herself.

Therefore, the correct options are c, d, and e.

To learn more about feedback, refer to the link:

https://brainly.com/question/26994432

#SPJ2

The FAT method ______________.

a. keeps information about the block where bit vector is stored.

b. employs space maps to manage information about free blocks.

c. does not store information about free blocks.

d. incorporates free-block accounting into the allocation data structure.

Answers

The FAT method incorporates free-block accounting into the allocation data structure.

The File Allocation Table (FAT) method is a file system designed to store file information in a designated entry format. The operating system makes use of it to manage files on hard drives and other computer devices.

It usually comprises an entry for each block. As such, it is indexed via the block number. This helps to locate files faster based on the address of the given number of the free blocks as opposed to using the traditional grouping method.

Learn more about the File Allocation Table (FAT) method here:

https://brainly.com/question/4671431

Tamara is writing a program to organize students in a class and needs to use operators to organize student grades, then compare the results of that to each other. What kinds of operators does Tamara need to use for each step?
Tamara needs to use
operators to organize the students' grades, then
operators to compare the results.

Answers

Answer:   you said "Tamara needs to use

operators to organize the students' grades, then

operators to compare the results."

i think your right

Explanation:

sounds right.

______ requires that any electronic communication must be backed up and secured with reasonable disaster recovery infrastructure.

Answers

SOX requirements requires that any electronic communication must be backed up and secured with reasonable disaster recovery infrastructure.

Sarbanes Oxley (SOX) requires that data security policies are being made, effectively communicated and enforced. This is needed for data security as well as protecting financial data needed for normal operations.

SOX requirements are needed to be met so as to perform compliance auditing.

Find out more at: https://brainly.com/question/17157670

Beyond restoring normal operations and data, what else should be done during the recovery phase?.

Answers

Based on troubleshooting management, beyond restoring normal operations and data, one should correct the underlying root cause during the recovery phase.

The need for correcting the underlying root cause.

During the restoration of normal operations and data, it is essential to correct the root cause of the problem.

By correcting the root cause of the operational problem, will limit the chance of the problem recurring.

Also, correcting the root cause of the problem will make the operations free completely of any possible malicious issue.

Hence, in this case, it is concluded that the correct answer is "correct the underlying root cause during the recovery phase."

Learn more about Restoration of operation here: https://brainly.com/question/6983264

How do you calculate the file size of a text file?

Answers

Answer:

It is calculated by multiplying the surface area of a document (height x width) to be scanned by the bit depth and the dpi2. Because image file size is represented in bytes, which are made up of 8 bits, divide this figure by 8.

write an expression taht evaluated to true if and only if the variable s does not contain the string 'end'

Answers

Answer:

//check which string is greater

if(strcmp(name1,name2)>0)

//assign name1 to first, if the

    //name1 is greater than name2

    first=name1;

else

    //assign name2 to first, if the

    //name2 is greater than name1

    first=name2;

5)

//compare name1 and name2

    if(strcmp(name1,name2)>0)

   

         //compare name1 and name3

         if(strcmp(name1,name3)>0)

       

             //assign name1 to max, becuase

             //name1 is greater than name2 and name3

             max=name1;

       

Explanation:

If the disaster requires actions offsite from the primary infrastructure, it is under the jurisdiction of__________.

Answers

Answer:

Business continuity

Explanation:

The disaster is affecting business functions and needs to be urgently remedied.

How to add animation to img angular.

Answers

Answer:

Step 1: Enabling the animations modulelink. ...

Step 2: Importing animation functions into component fileslink. ...

Step 3: Adding the animation metadata propertylink

how important are operating system in our devices?​

Answers

Answer:

An operating system is the most important software that runs on a computer. It manages the computer's memory and processes, as well as all of its software and hardware. It also allows you to communicate with the computer without knowing how to speak the computer's language. 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.

(Hope this helps, please mark as brainiest <3.)

Fill in the blank with the correct answer.

Question 1 options:

1) options


2) view


3) selection


4) history


5) navigate

1.
The ______ panel records user operations and can be used to reverse changes made to an image.

2.
The ______ panel is used to pan an image and zoom in and out

3.
The ______ bar displays options available for selected tool.

4.
The Actual Size and Fit Screen options are available in the ______ menu.

5.
The Lasso, Marquee, and Wand tools are examples of ______ selection tools.

Answers

Answer:

1. history

2. view

3. Selection

4. options

5. navigation

Explanation:

Hoped this helped. I am un-sure of a few.

DES is a commonly used symmetric encryption algorithm, developed in the mid-1990s by the American government in conjunction with IBM, and is the recommended encryption algorithm for highly sensitive data. True False

Answers

Answer:

False

Explanation:

The DES encryption standard is believed to be weakened by the American government by containing shortened key lengths and 'S-boxes' of unknown origin.

The implementation stage of the SDLC is when the system is moved into operation where it can be used. What stage PRECEDES the implementation stage and what happens in this preceding stage

Answers

The stage that precedes the implementation stage of SDLC is testing and it involves checking the functionality of the system.

System design involves the process of determining an overall system architecture, which typically comprises the following:

Hardware.End users.Physical processing components.Software.Communication channel.

Generally, there are seven (7) main stages in the systems development life cycle (SDLC) model and these include:

1. Planning.

2. Analysis.

3. Design.

4. Development.

5. Testing.

6. Implementation.

7. Maintenance.

From the above, we can deduce that the stage which precedes the implementation stage of SDLC is testing.

During the testing stage of SDLC, a quality assurance (QA) expert checks the system to determine whether or not it is functioning properly before it is deployed for operation, which is where the system can be used.

Read more: https://brainly.com/question/20813142

Which component of a DC motor ensures electrical connectivity to the rotor?



What is the value of the current in x?

Answers

Answer:

ketchup?

Explanation:

what do you think is the reason why there are two kinds of transmission mode in computer networking?

Answers

Answer:  Transmission mode or communication mode is referred to as transmission of data between two devices using a communication channel that includes an optical fiber, copper wires, wireless channels, and various storage media. The data that gets transmitted is in the form of electromagnetic waves. There are various ways of data transmission where the message that is passed is in the sequence of pulses using digital modulation. The transmission mode of data was first introduced in a computer networking system during the 1940s in modems, then in LANs, WANs, repeaters, and other networking system

is this what u are looking for?

RSA encryption relies on
_____. Select 4 options.

the use of prime numbers
the system time

a public key that the server and the user's computer know

a private key that only the server knows

the difficulty in factoring large numbers

Answers

Answer:

the difficulty in factoring large numbers

 a public key that the server and the user’s computer know

 

the use of prime numbers

a private key that only the server knows

Explanation:

ege 2021

RSA encryption relies on a private key that only the server knows. Option C is correct.

What is RSA?

RSA is a kind of asymmetric encryption that employs two distinct but linked keys. A communication can be encrypted using both the public and private keys in RSA cryptography. To decrypt a message, use the opposite key that was used to encrypt it.

The RSA algorithm is the foundation of a cryptosystem (a collection of cryptographic algorithms used for specific security services or purposes) that enables public key encryption and is widely used to secure sensitive data, especially when it is sent over an insecure network.

Therefore, option C is correct.

Learn more about the RSA, refer to:

https://brainly.com/question/14319307

#SPJ2

Question 8 of 10
When is a table the most effective way to present information?
O A. When graphs are more expensive to create.
O B. When you want to show the parts of a whole.
O C. When you want to show how parts fit together.
O D. When you want to make many details available in an organized
way.

Answers

Answer:

C

Explanation:

Tables and figures are particularly effective when large amounts of information have to be presented and discussed in an effective way.

Answer:

D. When you want to make many details available in an organized way.

Explanation:

How to test nativeelement in angular.

Answers

Answer:

Dim or Overly Bright Lights. ...

Dead Battery. ...

Slow or Malfunctioning Accessories. ...

Trouble Starting or Frequent Stalling. ...

Growling or Whining Noises. ...

Smell of Burning Rubber or Wires. ...

Battery Warning Light on Dash.

Explanation:

make sure you check

HELP ME PLZ

A computer system has 16 GB of RAM and 8 MB of cache which is faster than
RAM
Explain why the computer system does not have 16 GB of cache.

Answers

Answer:

inorder to be close to the processor..the cache memory should be much smaller than the main memory...to increase processing speed.

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

A computer game allows a player to repeat a level until they run out of lives. Which two of the following loops would work correctly?

Answers

Answer:

c.

Explanation:

because this is the right syntax for the following loops

A technology ____ begins with the birth of a new technology and ends when that technology reaches its limits and dies as it is replaced by a newer, substantially better technology.

Answers

Answer:

A technology __cycle __ begins with the birth of a new technology and ends when that technology reaches its limits and dies as it is replaced by a newer, substantially better technology.

Explanation:

Hope its help

Three teams (Team A, Team B, and Team C) are participating in a trivia contest. Let scoreA represent the number of correct questions for Team A, scoreB represent the number of correct questions for Team B, and scoreC represent the number of correct questions for Team C. Assuming no two teams get the same number of correct questions, what code segments correctly displays the team with the highest number of correct questions?

Answers

To make comparison between a set of variables, the if-else statement is usually employed, Hence, the correct code segment which displays the team with the highest number of correct questions is the option A.

First it checks if ScoreA > ScoreB ; - - - #1st blockIf True ; then check if ScoreA > ScoreC ;

Then TeamA will be the highest, if otherwise then it will be TeamC

If the 1st block is false, then ScoreB > ScoreA;then check if ScoreB > ScoreC ;Then TeamB will be the highest, if otherwise then it will be TeamC

Hence, the correct option is A.

Learn more : https://brainly.com/question/25675806

Answer:

A

Explanation:

Technical security measures like anti-virus (anti-malware), firewalls, and keeping browsers up-to-date will:

Answers

prevent malware from old exploits

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:

alannah just purchased a smart lock for her front door. how can she connect her lock to the internet so she can control the lock when she’s away from home?

Answers

Answer: cellular connection

She can connect her lock to the internet so she can control the lock when she’s away from home by Bluetooth connection. The correct option is D.

What is a Bluetooth connection?

Bluetooth technology enables devices to communicate with one another without the use of cables or wires.

Bluetooth operates on a short-range radio frequency, and any device equipped with the technology can communicate as long as it is within the required distance.

Some devices can be connected to your phone via Bluetooth without the use of a cord.

After the first time you pair a Bluetooth device, your devices may pair automatically. If your phone is connected to something via Bluetooth, a Bluetooth icon will appear at the top of the screen.

Alannah can connect her lock to the internet and control it via Bluetooth while she is away from home.

Thus, the correct option is D.

For more details regarding Bluetooth connection, visit:

https://brainly.com/question/28258590

#SPJ2

Your question seems incomplete, the missing options are:

A. network cable

B. cellular connection

C. power cable

D. Bluetooth connection

Other Questions
The polynomial f(2) = 2? + 432 - 594 is a parabola. The parabola's x-intercepts are (11, 0) and (-54, 0). Give the factored form of thepolynomial. PLS HELP FIND GRADIENT PLSSS DUE TMRW GIVING BRAINLIEST FOR FIRST ANSWER hormones that are essential for normal body growth and maturation include all the following except?a. thyroid hormone b. growth hormone c. Ghrelin d. insulin state the expressed power you think is the most important and explain why you think it is the most important. which number will reach if we move 6 steps to the right -3 PLEASE HELP!!!!! What was one of the main sources of conflict between eastern Native Americans and European settlers? A. The Native Americans often refused to show the settlers how to hunt and fish. B. The Native Americans often refused to make trade agreements with settlers. C. The settlers often refused to share new agricultural methods with Native Americans. D. The settlers often refused to honor treaties and moved onto Native American land. Help me please guys hurry!!! What does it mean to say that a function is linear?Select all that apply.A. The function has a graph that includes the point (0,0).B. The function can be described by an equation of the form y = mx + b.C. The function has a constant rate of change.D. The function has a straight-line graph.| E. The function has a rate of change that increases. What substances in food provide organisms with energy? Pls help me asap pls!! Bruno's Burgers has a cook to server ratio of 2 to 5. The total number of servers and cooks is 42. How many more servers does Bruno's Burgers employ than cooks? If 1,600 divided by n = 4, what is the value of n?A 40B 400C4,000D40,000 If a sea turtle traveled 2.8 miles attop speed in 2 hours, how fardid it travel in one hour? What question would a student need to ask to form a compound with Group 16 nonmetalsA.Will group 16 elements lose electrons to bond with group 2 in an XY format?B.Will group 16 elements gain electrons to bond with group 1 in an XY2 format?C.Will group 16 elements gain electrons to bond with group 2 in an XY format?D.Will group 16 elements lose electrons to bond with group 1 in an X2Y format? What does it mean refill? What is the m2x-3=5x-12 What are Black Codes? Who did this impact? In order to join the next yoga class at the YMCA, you must pay a $50 annual fee, then $4 for each class you attend. How many classes can you attend if you budget to spend $98.00 that year on Yoga? summarize the impact of the direct election of senators Grant's income statement reveals a loss from the sale of land. In preparing the operating activities section of the statement of cash flows using the indirect format, the loss should be