1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
zlopas [31]
3 years ago
6

Silas develops this algorithm to compute the calories burned for an activity for a given number of minutes and body weight: If t

he activity is running, compute caloriesPerMin by dividing weight by 10.5 If the activity is walking, compute caloriesPerMin by dividing weight by 15.5 Compute numCalories by multiplying caloriesPerMin by numMinutes He implements the algorithm in an app, and users soon ask for the ability to compute the total calories for multiple sessions of walking or running. What structure must be added to the original algorithm so that it can compute the total across multiple sessions
Computers and Technology
1 answer:
NNADVOKAT [17]3 years ago
7 0

Answer:

Explanation:

This change can be accomplished in one of two ways. The first being creating a global variable that adds to it and saves the total calories burned at the end of every session. This global variable can then be called at any time to show the total number of calories burned in all previous sessions combined. The other option would be to create a list of Session objects. Each object would hold all the information regarding each session including calories burned. Then create a function that loops through this list, adding the total calories burned in each session and outputting the total.

You might be interested in
write a function named get majority last name that accepts as its parameter a dictionary from strings to strings the keys of the
wariber [46]

A function named get majority last name that accepts as its parameter a dictionary from strings to strings the keys of the dictionary represent first names and the values represent last names is python.

Python is a general-purpose, high-level programming language. Its design philosophy prioritizes code readability and heavily employs indentation. Python has dynamic typing and garbage collection. It supports a number of programming paradigms, including structured programming, object-oriented programming, procedural programming, and functional programming (especially this). It is frequently referred to as a "batteries included" language because of its large standard library.

In order to replace the ABC programming language, Guido van Rossum developed Python in the late 1980s. Python 0.9.0 was released in 1991.

Python 2.0, which was released in 2000, included brand-new features like list comprehensions, cycle-detecting garbage collection, reference counting, and support for Unicode.

To know more about python click here:

brainly.com/question/13437928

#SPJ4

5 0
1 year ago
How to convert binary to decimal <br> Please it’s so hard and what is digital and analogue
geniusboy [140]

Answer:

How to convert binary to decimal ?

It consists of digits from 0 to 9. Binary to decimal conversion can be done in the simplest way by adding the products of each binary digit with its weight (which is of the form - binary digit × 2 raised to a power of the position of the digit) starting from the right-most digit which has a weight of 20.

what is digital and analogue?

In analog technology, a wave is recorded or used in its original form. So, for example, in an analog tape recorder, a signal is taken straight from the microphone and laid onto tape.In digital technology, the analog wave is sampled at some interval, and then turned into numbers that are stored in the digital device.

8 0
3 years ago
Explain why the receptionist responded as indicated in the following scenario.
slavikrds [6]
The receptionist is aware of the every day attire as he works there. Jim and Roger are undressed, since they were wearing blue jeans. The receptionist lets them know of what’s expected.

Hope this helps!
4 0
2 years ago
I created a brainly account and forgot everything I mean everything so I cannot log back on and my debit Card is currently about
Alla [95]

Answer:

look up the number (phone number) to call them and ask is they can cancel the account the debit card is abt to pay for :)

7 0
3 years ago
Read 2 more answers
Uuhdcnkhbbbbhbnbbbbnnnnnnnnnfddjkjfs
Anna35 [415]

Answer:

The answer is "Option c"

Explanation:

In PHP to remove all the session variables, we use the session_destroy() function. It doesn't take any argument is required and then all sessions variables could be destroyed by a single call. If a particular clinical variable is now to be destroyed, the unset() function can be applied to unset a session variable. Its session doesn't unset or unset the session cookie by either of the local variables associated with it.

6 0
3 years ago
Other questions:
  • Achieving a degree in computer forensics, information technology, or even information systems can provide a strong foundation in
    11·1 answer
  • To move to the most extreme right cell containing data in your worksheet, what basic key combination can you use?
    7·1 answer
  • Your friend sends you a photograph of his son. you want to enlarge the photograph. which program type will you use to make this
    15·1 answer
  • At the beginning of this month, the balance of Reed's checking account was $692.35. So far this month, he has received a paychec
    13·2 answers
  • Troubleshooting a printer that does not work includes a. connecting the printer to your computer b. checking to see if there is
    13·1 answer
  • What is the name of the most expensive car and how much is it and what are its features
    15·1 answer
  • Select one type of mobile phone connectivity you can use to stream videos on a smartphone
    10·2 answers
  • Why is it a good idea not to change the subject line when replying to a message?
    8·2 answers
  • ¿por que hay peligros en internet?
    11·1 answer
  • rue or false: The first web browser was introduced to the public in the 1970s and started the explosive growth of the Internet i
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!