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

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

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.

five types of conflict in the school​

Answers

Answer:

Conflicts can be classified into five different types: structural, value, relationship, interest, and data [

Explanation:

Answer:

Conflicts can be classified into five different types: structural, value, relationship, interest, and data

Explanation:

follow me please

Amelie is planning a gingerbread house making workshop for the neighborhood, and is writing a program to plan the supplies. She's buying enough supplies for 15 houses, with each house being made out of 5 graham crackers. Her favorite graham cracker brand has 20 crackers per box. Her initial code:

Answers

The line of code that successfully calculates and stores the number of leftover crackers in the final box is extras ← crackersPerBox - (neededCrackers MOD crackersPerBox).

From the complete information, her initial code is given as:

numHouses ← 15

crackersPerHouse ← 5

crackersPerBox ← 20

neededCrackers ← crackersPerHouse * numHouses

It was depicted that Amelie realizes that she'll need to buy more crackers since the crackers come in boxes of 20.  Therefore, to calculate how many graham crackers will be leftover in the final box, the line of code from the options will be extras ← crackersPerBox - (neededCrackers MOD crackersPerBox).

Read related link on:

https://brainly.com/question/25663035

A user is troubleshooting a mobile device app that is displaying errors and has contacted the app manufacturer’s technical support team for assistance. The support technician needs specific information from the device about how the app is responding and what is happening to cause the errors.

Answers

Answer:

D. The method for retrieval is dependent on the specific app or device’s operating system.

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

________ 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

Pedestrians, bicyclists, and skateboarders _____ the rules of right-of-way when they use the road.

Answers

Pedestrians, bicyclists, and skateboarders must follow the rules of right-of-way when they use the road.

You are the administrator for a network with a single Active Directory domain called westsim. All computer accounts reside in organizational units (OUs) that correspond to departments. You have previously deployed a WSUS server in your location to specify the approved list of updates. All client computers are configured to download updates from your local WSUS server. You decide that you need to configure a separate update approval list for all computers in the Marketing department. You want the update list to be automatically identified based on the department membership for the computer. What should you do

Answers

Link a GPO to the Marketing OU. In the GPO, edit the Enable client-side targeting policy and specify the Marketing Computers group.

In the WSUS console, edit the options for Computers and specify Use Group Policy or registry settings on computers.

In the WSUS console, create a Marketing Computers group.

? Question Select the correct answer from each drop-down menu. Which terms complete the sentence given below? In a presentation, A. master slides b. animations c. themes can be used to an object or text on a slide. ​

Answers

Answer:

B

Explanation:

Animations are used for cool transitions!

In a presentation, master slides are an essential feature that allows users to maintain consistency and apply themes to objects or text on each slide.

What do they serve as?

They serve as a template for the entire presentation, enabling a unified look and feel throughout. By incorporating master slides, presenters can easily make global changes to fonts, colors, backgrounds, and other design elements, ensuring a cohesive and professional appearance.

This saves time and effort by eliminating the need to individually modify each slide. Additionally, master slides facilitate efficient management of animations and transitions, ensuring a smooth and engaging presentation experience for the audience

Read more about presentation here:

https://brainly.com/question/24653274

#SPJ2

1. What is the value of the digit 2 in the number below?

1,243 (a) 2) (b) 200) (c) 2000) (d) 20

Answers

Answer:

200

Explanation:

Let's split the number 1,243 into its values.

1,000 + 200 + 40 + 3.

To check your answer, add all the numbers together.

_2_ _.

Notice that there are "2" spaces after the 2.

This is why there are 2 zeros in 200.

Therefore, 200 is the answer.

-kiniwih426

What permissions are needed in order to use a work online that is in the public domain?

A.
Written permission from the creator

B.
A legal agreement attached to the work

C.
A justification through fair use

D.
None

Answers

[tex]⇒Written \: permission \: from \\ the \: creator[/tex]

The term “public domain” refers to creative materials that are not protected by intellectual property laws such as copyright, trademark, or patent laws. ... Anyone can use a public domain work without obtaining permission, but no one can ever own it.

Can I get help with making this code and no importing please

Answers

Use code #cam2! For more reassurance o your code

what is a common indicator of a phishing attempt cyber awareness 2022

Answers

There are several types of malicious document. A common indicator of a phishing attempt cyber awareness 2022 is that It includes a threat of dire circumstances.

Phishing attacks often makes use of email or malicious websites to infect the machine with malware and viruses so as to collect personal and financial information.

Cybercriminals often uses different means to lure users to click on a link or open an attachment that infects their computers thereby producing vulnerabilities for criminals to use to attack.

Learn more from

https://brainly.com/question/24069038

Please HELP

Which of the following is not a method of data management?
A- sorting
b- filtering
c- formula's
d- graphing

Answers

formula's, Data management does not involve formulas.

What is formula?

A formula is a statement that instructs the computer what mathematical operation to carry out on a given value. Formulas are most frequently used in spreadsheet software, like Microsoft Excel, when referring to computer programs.

What is Data Management?

Data management is the process of gathering, storing, and using data in a cost-effective, efficient, and secure manner. In order to make decisions and take actions that will benefit the organization as much as possible, data management aims to assist individuals, organizations, and connected things in optimizing the use of data within the constraints of policy and regulation. An effective data management strategy is more crucial than ever as businesses depend more on intangible assets to generate value.

To know more about Data Management, check out:

https://brainly.com/question/29310787

#SPJ1

Until 2016, the popular song _____ was covered by copyright law, unusually long after it was written in 1893.

A.
Happy Birthday

B.
Merry Christmas, Everyone

C.
Hava Nagila

D.
Auld Lang Syne

Answers

Answer: Happy Birthday

Explanation:

Answer is A. Happy Birthday

Animals living in burrows under the ground is an interaction between the biosphere and the

Answers

Answer:

Geosphere

Explanation:

The geosphere is made up of the rocks and minerals of the earth found in the ground.

what is the kybert satellite

Answers

Answer:

i dont know....there is nothing on that piece of technology

Explanation:

true or false windows 98 and windows xp are examples of an operating system?

Answers

Answer:

true

Explanation:

computer science is a blank process

Answers

i agree... its a interesting thing to learn, just like learning an actual new language.

Answer:

yeah and it requires hard work

"code is broken down by the computer until it is in _____and is a very long series of ons and offs

binary
code
decode
logic

Answers

Answer:

Binary

Explanation:

Binary is 0 and 1, true and false, on and off. It is the only language machines can understand.

Answer:

I'd say that the answer is Binary because it wouldn't be code, decode, or logic and Binary is the only one that makes sense and i got it correct when i did the exam.

Explanation:

____ refers to protecting against unauthorized data disclosure and ensuring the authenticity of the data source.

Answers

Answer:

Secrecy

Explanation:

Options:

A) Necessity.

B) Secrecy.

C) Integrity.

D) Encryption.

B) Secrecy Is correct answer

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

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

In the context of object-oriented programming a(n) is a template for a group of objects with similar characteristics.

Answers

A class is a template for a group of objects with similar characteristics.

An object-oriented programming uses objects, instead of functions and logic to model software designs.

In an object-oriented programming, there are:

ObjectsClassesMethodsEtc

Objects are what make up the object-oriented programming.

Similar objects are grouped together into classes

Hence, the text that completes the blank is class

Read more about object-oriented programming at:

https://brainly.com/question/22530356

The ____ design is the process of selecting the data storage and data access characteristics of the database.

Answers

Answer:

The Physical database design is the process of selecting the data storage and data access characteristics of the database.

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

The data _____ component of a database management system (DBMS) is used to create and maintain the data dictionary.

Answers

Answer:

IDggK

Explanation:

Which tcp/ip utility gives you the following output?.

Answers

Answer:

Nbstat -c is the correct answer.

The TCP/IP utility gives you the following output is nbtstat -c. The correct option is b.

What is TCP/IP utility?

TCP/IP provides end-to-end communications that specify how data should be divided into packets, addressed, transmitted, routed, and received at the destination. This defines how data is exchanged over the internet.

The TCP/IP model has four layers: application, network access, internet, and transport. These layers function as a set of protocols when combined.

When a user sends data through these layers, the TCP/IP model does so in a specific order and then does so again in the opposite order when the data is received.

Therefore, the correct option is b, nbtstat -c.

To learn more about TCP/IP utility, refer to the below link:

https://brainly.com/question/29912510

#SPJ12

The question is incomplete. Your most probably complete question is given below:

netstat -r

nbtstat -c

netstat -a.

Arp -a.

You are an IT administrator troubleshooting a Windows-based computer. After a while, you determine that you need to refresh the group policy on that computer. Rather than rebooting the computer, you open a command prompt from which the refresh can manually be completed. Which of the following is the BEST command line tool to run to accomplish this task?a. popdb. fsutilc. gpresultd. gpupdate

Answers

Answer:

gpupdate

Explanation:

My explanation was previously removed.

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

Other Questions
Te Presento A Ghandhi, Jackie, Shirley fill in the blank worksheet If you found a white sheep and wanted to determine its genotype, with what kind of animal would you cross it Which equation is correct?792 5 = 700 5 + 90 5 + 2792 5 = 700 + 90 5 + 2 5792 5 = 700 5 + 90 5 + 2 5792 5 = 7,000 5 + 900 5 + 20 5 PLEASE SOMEONE HELP ME PLZ!!!!!Photosynthesis is/ is not an example of the Law of Conversation of MassEvidence and Reasoning Suppose that hiring a third worker at the campus coffee shop increases output from $135 per hour to $190 per hour. What is the marginal product of labor per hour from adding that third worker Fill out the material order form with the Quantity (number of each item) and total cost forthat item (Cost Quantity). Add the totals to ensure you do not exceed $100.YOU HAVE $100 TO SPEND. NO BONUS POINTS FOR SAVING S.Use the materials carefully, as they will not be replaced if you damagethem.MaterialCost ($) QuantityCost x QuantityStraw2Paperclip (large)2.String (12")3Tooth pick3Cup5Rubber band57Tape (0.5 m)7Paper (8.5" x 11")Tissue Paper10Duct Tape(.25m)).10Cotton ball12Balloon15Paper plate15Total Cost = Rachel will rent a car for the weekend. She can choose one of two plans. The first plan has an initial fee of $55.96 and costs an additional $0.15 per mile driven. The second plan has an initial fee of $67.96 and costs an additional $0.11 per mile driven. How many miles would Rachel need to drive for the two plans to cost the same? if the output number y is -52 (y=5x-2) what is the input number? SHOW WORK Use your completed Reading Guide for this lesson to answer the following questionIn #2, in the fourth bullet: Consumers could buy now and do what? (Enter two words.) For my presentationany calm soothing g..oogle slides backgrounds?I need atleast 3 Rinaldo is an expat working in Singapore. As part of his compensation package, a chauffeur drives him to and from work each day. The chauffer is an example of a(n) Multiple Choice wage. allowance. bonus. perk. A grower packs 4,568 peaches. He packs the most peaches possible, dividing them equally into 9 boxes, and then gives away the remaining peaches.How many peaches are in each box.How many peaches does he give away.If he sells 7 boxes, how many peaches does he have left. On a coordinate plane, parallelogram P Q R S is shown. Point P is at (negative 2, 5), point Q is at (2, 1), point R is at (1, negative 2), and point S is at (negative 3, 2). In the diagram, SR = 4 StartRoot 2 EndRoot and QR = StartRoot 10 EndRoot. What is the perimeter of parallelogram PQRS? In 1860 Abraham Lincoln was elected president on a Republican platform that advocated all of the following EXCEPT higher protective tariffs Answer A: higher protective tariffs A government subsidies for a transcontinental railroad Answer B: government subsidies for a transcontinental railroad B free western land for settlers who would live and work on it Answer C: free western land for settlers who would live and work on it C the exclusion of slavery from United States territorial possessions Answer D: the exclusion of slavery from United States territorial possessions D the abolition of slavery throughout the United States 6-3b-6= -15i need help asappl My mother goes to work in ______morning.A. the B. a C. an D. no article Una turbina de vaporrecibe vapor con un flujo msico de 30 kg/s a 6205 kPa, 811 K, con una velocidad a laentrara de 10 m/s. El vapor a la entrada tiene una energa interna especfica de 3150.3kJ/kg y un volumen especfico de 0.05789 m3/kg. El vapor sale de la turbina a 9.859 kPa,318.8 K. El vapor sale a 200 m/s con una energa interna especfica de 2211.8 kJ/kg yun volumen especfico de 13.36 m3/kg. Encuentre la potencia producida por la turbinasi sta pierde calor a una tasa de 30 kW. What does a plant need to create a glucose molecule in photosynthesis?Choose all correct answers.carbon dioxidesunlightwateroxygenmultiple choice HELPPPPPPPPPPPPPPPPPP MEEEEEEEE These are already solved but can someone explain how we got them, steps please! I really need it..