Does anyone know the answer for 4.2 Code Practice: Question 1 on edhesive

Answers

Answer 1

Answer:

Question 1

sum=0

count=0

while(sum<=100):

  x=int(input("Enter a nmber"))

  sum=sum+x

  count=count+1

print("Sum: "+str(sum))

print("Numbers Entered: "+str(count))

Question 2

count = 0

pet = (input("What pet do you have? "))

while(pet != "rock"):

 count = count +1

  print("You have a " + pet +" with a total of " + str(count) + " pet(s)")

  pet = (input("What pet do you have? "))

Explanation:

Answer 2

The required program written in python 3 which continues to request user to input a pet name until a rock is entered is as follows :

pet = input('What pet do you have now : ')

#request an input from the user and store in the variable pet

total = 0

#initialize the total number of pets owned to 0

while (pet != 'rock'):

#while loop ensures that program runs until a rock is inputted by the user

total +=1

#adds one to the total after each loop

print('you have a ' + str(pet) + 'with a total of ' + str(total) + ' pet(s)')

#displays the formatted string using the total and pet variables which continues to update

pet = input('What pet do you have now: ')

#requests user to input pet name again as long as rock has not been supplied.

Therefore, an output of the program written is attached below.

Learn more on python programs :https://brainly.com/question/18685986

Does Anyone Know The Answer For 4.2 Code Practice: Question 1 On Edhesive

Related Questions

who is known as the first computer programmer​

Answers

Answer:

Ada Lovelace

Explanation:

English mathematician Ada Lovelace, the daughter of poet Lord Byron, has been called "the first computer programmer" for writing an algorithm for a computing machine in the mid-1800s.

Answer:

i think its ada lovelalce

What sorts of items can be
configured when your
router has the ability to
add access rules

Answers

Answer:

A router connects multiple computers to the Internet through a single connection. The router manages the flow of data, delivering the right information to each computer on the network. Routers may also be used to connect multiple networks. A managed router is a router that is owned and managed by a third-party.

Select all that apply.

Which font types are appropriate for use in text paragraphs?

serif
sans-serif
historical
script
novelty

Answers

Answer:

sans-serif, novelty, and script.

Explanation:

Discribe a place that you have dremed about that does not exit in a real life

Answers

Candy land ??? A cotton candy land with trees filled with sweet fruits and candy ?
Game world where you play games all day in that world and it looks like a swamp

Which camera does Angelina use?
Angelina uses a
and is a lot smaller than DSLRs.
camera, which is quite popular among photographers since it offers the same photo quality as a DSLR camera

Answers

Answer:

mirrorless cameras have lot more space due to not having mirrors. and they have the same or better quality than DSLR's.

A credit given to an author for his or her work is called a(an)

Answers

Citation.

Any other related questions you want answered?

Answer:

citation

Explanation:

Just did it in my online class, and my mom said so to

Help!! Its not working at all and idk what to do!

Answers

Answer:

1st. Let the teacher know

2nd. Check your internet

3rd. Make sure all other tabs are closed

Explanation:

This always helps me I hope it helps you too !! :3

Which of the following statements are true?
A. There has been a decrease in the number of cyber attacks in the past decade.
B. Cybersecurity is the protection of computer systems, networks, and data from digital attacks.
C. Cyber attacks in the past few years have impacted individuals, governments, and organizations.

Answers

Answer:

I think the answer are two which are B and C

ASAP ε=ε=ᕕ(°□°)ᕗ
Sorry if you can't see it but please help me if you can!

Answers

Answer:
I would say C

state two functions of windows environment​

Answers

Answer:

idonoheheheheheuhiiikv

you want some points? whoever answers first gets 48 points. no cap. better be quick.
what's 2+2=?

Answers

Answer:

4

Explanation:

Answer:

4444444444444444444444444

What are orphan records?

Answers

Answer:An orphaned record is a record whose foreign key value references a non-existent primary key value. Orphaned records are a concept within database relationships. If a record in a related table references a non-existent record in the primary table, it is said to be an orphaned record

Explanation:

hope this helps:)

Constructive criticism
Brainstorming possible solutions means one person generates all the ideas.

True
False
Question 2(Multiple Choice Worth 3 points)
(03.04 MC)

Your friend has asked you to provide one tip for accepting constructive criticism. Which of the following is the best technique?

Become defensive about the criticism
Reflect upon the criticism
Resist seeking solutions to the behavior that prompted the criticism
Tune out the critic's criticism
Question 3 (True/False Worth 3 points)
(03.04 LC)

Constructive criticism deals with a person, not his or her behavior.

True
False
Question 4 (True/False Worth 3 points)
(03.04 LC)

Project managers have the overall responsibility for planning, executing, and completing a project.

True
False
Question 5(Multiple Choice Worth 3 points)
(03.04 MC)

Read the following scenario:

A project will require more people than originally estimated.

Identify the possible risks to the project.

Ideas and creativity
Money and resources
Policies and procedures
Time and work ethic is intended as a possible solution. True False

Answers

Answer:

1. False

2. Reflect upon the criticism

3. True

4. False

5. True?

Answer:

1. True

2.Reflect upon the criticism

3.True

4.False

5.Time and work ethic is intended as the possible solution

Why did LISD had to block the game “among us”?

Answers

Lewisville Independent School District blocked the following program: Among Us because the game was a distraction to online education. Normally, school districts disable/block games that students play to make sure they are not just playing games and that they are paying attention during class.
To cut off anything I that might not be school related like for example distractions

How does multimedia content enhance a user’s Web browsing experience

Answers

Explanation:

The inclusion of multimedia content such as videos, photographs and flash will help you increase your website's graphic feature, but it will also provide your visitors more value from certain pages and provide them a more positive experience, maintaining them mostly on site for something like a prolonged period of time.

Which technology is most often used to update parts of a web page without reloading the whole page

Answers

i believe it would be AJAX :’)

Answer:

It's AJAX I think

Explanation:

Summarize these two up-and-coming leadership positions in digital media: digital media supervisor and chief digital officer (CDO). What does each job entail? What is one way they are different? What is one way they are similar? Which one sounds more appealing to you, and why?

Answers

Answer:

The big differences in the CIO and the Chief Digital Officer is this responsibility for turning IT into a value creator, being a business to the extent of actually having a P&L, which is something that the CIO typically doesn’t have in most organizations.

And so we also see the CDO as something that is really leading digital business from the front in a way that most CIOs aren’t. Most CIOs are not trying to think of new markets, new channels, new business models that the organisation should be getting and making that a top priority. And that’s pretty much all the Chief Digital Officer thinks about is how to take existing assets, existing information, existing knowledge and making a business out of that creating products and services and entering new markets.

I think that the CIO, however, is used to operating much larger operations, so I think what remains to be seen we’re not seeing Chief Digital Officers have as much operational experience, or even necessarily seem to require it. Although I think the really successful digital businesses will be able to scale up their organizations really well, they’re going to have Chief Digital Officers that are good at that, we’re not seeing operational jobs as job number one, quite the same way as we’re seeing it in traditional CIOs.

In terms of really any other big differences, we see that Chief Digital Officers are very multidisciplinary, so they have a lot of different experiences, and there’re very comfortable in talking with marketing and sales in their language. They’re very good at talking to the product teams in their language and operations in their language, and executives and so on. And not to the same degree that we see the CIOs that don’t really talk the language of business, and they talk the language of the IT department but that tends to be it.

Explanation:

Digital Media Supervisor ( CIO )

Chief Digital Officer ( CDO )

What is Boolean algebra

Answers

Answer:

Boolean algebra is a division of mathematics that deals with operations on logical values and incorporates binary variables.

Explanation:

what are the component s of computer ❓

Answers

Answer:

Depends which one are looking to build like gaming, work etc?

Explanation:

gaming there's the Motherboard, Cpu, Ram, Gpu, Power supply, ssd, memery and other stuff I can't remember

Answer:

Monitor, pc, box thing, keyboard, souls, and fbi codes so they can hack ur computer.

Explanation:

My life is a lie, reality is an illusion, have a fan-fudgeing-tastic day.

Which symbol is used to indicate that a formula may contain an error?
A. green triangle in upper-left corner of cell
B. an orange circle below the formula result
C. green triangle with question mark inside
D. a wavy purple arrow above the formula result

Answers

Answer:A.

Explanation:

Just had this question if is A

Answer:

its A they right

Explanation:

what is the definition of a virus?​

Answers

An infective agent that typically consists of a nucleus acid molecule in a protein coat

Answer:

Any of a large group of submicroscopic infectious agents that are usually regarded as nonliving extremely complex molecules, that typically contain a protein coat surrounding an RNA or DNA core of genetic material but no semipermeable membrane, that are capable of growth and multiplication only in living cells, and that cause various important diseases in humans, animals, and plants.

Explanation:

uses computer resources from multiple locations to solve a common problem ​

Answers

Distributed memory systems
I think is the answer

Answer:grid computing

Explanation:

A program is written to prompt the user and accept input until a negative value is entered. What is the common term for this special value?

Answers

I’m pretty sure it’s while loop

Select the appropriate things to try if you are unable to connect to the Internet.

A) Check the correct IP address.

B) Switch to a different router.

C) Turn the power off and on repeatedly.

D) Run net start.

F) Switch cable types.

G) Check the browser configuration.

H) Check

Answers

Answer:

the correct answer is C and G.

Explanation:

Usually when a home router isnt working properly the first thing you should do is restart the router. Then, check your browser config to see if theres any issues.

What are the different kinds of program control structures?

Answers

Answer:

Flow of Control:

Flow of control through any given function is implemented with three basic types of control structures:

Sequential: default mode. Sequential execution of code statements (one line after another) -- like following a recipe

Selection: used for decisions, branching -- choosing between 2 or more alternative paths. In C++, these are the types of selection statements:

if

if/else

switch

Repetition: used for looping, i.e. repeating a piece of code multiple times in a row. In C++, there are three types of loops:

while

do/while

for

Dave is a recruiter for a large video and animation firm. He is looking for an employee who is willing to give productive hours to activities related to the job. Which quality is he looking for? A. responsibility B. flexibility C. trust D. reliability E. integrity

Answers

Answer:

reliabitlity

Explanation:

what are your favorite and least favorite things to do with microsoft powerpoint presentation​

Answers

Answer:

Animations , Motion Paths , Text and Image Emphasis are my favorite .

I like every about it

Select the correct answer.
What is the postcondition of an expression or variable?
a. the condition of the expression before you execute a control structure
B. the value of the expression when you increment a variable
c. the value of the expression when you decrement a variable
d. the condition of the expression once you exit a control structure
e. the condition of the expression while running a control structure

Answers

A. the condition of the expression before you execute a control structure

Answer:

D.

Explanation:

You're Welcome

why is sequencing important in coding

Answers

It allows us to carry out task with multiple steps.

Answer:

To make sure you get the pattern correct.

Explanation:

Each code has a different detail that makes it do what it needs to do

Where can I watch yarichin b club lol

Answers

i know an app but hwne i try to write it it says inapooripirate...

hhbbbdjwkwbfiefbwjfbejdb
Other Questions
The word "spunk can also mean courage, bravery, or determination. Which character do you think has the most spunk? Why True or False: every place on earth has a location on theplanet's surface A square patio has an area of 180 square feet. How long is each side of the patio to the nearest tenth?Each side of the patio is approximatelyfeet long I have a picture I really need help with math please someone What is a political party, how many are there,and how do they communicate their beliefs? Which details in the exposition of the story indicate why mr.sasaki hires teruo page 462 ?????????????????????? Help???plzz What do the sensors in our bodies monitor ? How does and adolescent's thinking differ from that of a child? According to historian Pauline Maier in Liberty, the great paradox that needs to be explained is:A.) That despite the warnings from Parliament, colonists did not understand that their actions would lead to a revolution and this was owing to the difficulty in communication.B.) How in a mere thirteen years, colonists went from being proudly and optimistically British to declaring their independence and that they did was unexpected to all who lived during that time. C.) That abolitionists in the northern colonies would united with slave holders in the southern colonies to fight for independence and the natural rights of man.D.) That the elites were in charge of seeking independence and forced the working classes to join in the effort against their will and interests ........... is the fields of ice that have built up over millions of years. Which ordered pair best represents the location of the y-intercept?A)(2.5, 0)B)(0, 2.5)C)(-5, 0)D)(0, -5) 3. A stuntman jumps off a building (into a safety mat). If he falls for 5 seconds, whatwill his velocity be right before he hits the mat? (please include direction)Givens (include all variables and units. Ex. vi=5m/s, d=60miles) The diagram below shows some of the roles medieval monasteries and convents filled intheir communities. Use the diagram to answer the following question:Which of the following correctly completes the chart? A) Started a local tax collection systemB)Gave refuge to single womenC)Worked to free serfsD)Organized campaigns for political freedoms Write the equation of a line that is parallel to y = 5x 42. I need this ASAP pls!What are two ways that the adoption of the U.S. Constitution affected the nation's economy? What charges attract and what charges repel?? PLZ PL PLZ HELP ME 1!!!!! Which rule represents the translation of hexagon DEFGHI to hexagon D'E'F'G'H'I'? (x, y)(x + 2, x 4)(x, y)(x + 4, x 2)(x, y)(x 7, y + 7)(x, y)(x + 7, y 7) Does anyone know this to help me out