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
31. With interactive marketing,
stepan [7]

Answer:

D.

Explanation:

Interactive marketing is a technique in which marketers focus on one-to-one interactions with individual customers as opposed to focusing on the entire population. This shapes the marketing decisions based on the behaviors and preferences of the customers. Therefore with interactive marketing, the buyer controls the kind and amount of information received from the seller.

6 0
3 years ago
The value of the expression 20.0 * (9/5) + 32.0 is
Rama09 [41]

Answer:

68

Explanation:

9/5 = 1.8

20 * 1.8 + 32

20 * 1.8 = 36

36 + 32 = 68

7 0
3 years ago
Given:
777dan777 [17]

Answer:

Python Code:-

#creating a list  

current_members = [4, 6, 9]

#defining the variable  

#assigning the value

member_id = 9

#defining variable count

count = 0

#defining the variable and setting initial value to true

is_a_member = False

#for loop is used to iterate over the list  

for x in current_members:

  #if statement will check whether the element is found

  if x == member_id:

      #set the value to true if the value is matched  

      is_a_member = True

      #set the value to 1

      count = 1

#if count == 0

#set the value of is_a_member variable to false

if count == 0:

  is_a_member = False

#print the current value stored in is_a_member variable

print(is_a_member)

Explanation:

In the above python program, a list is created that is "current_members"  and some values are inserted. In the next line, a three-variable is defined that are member_id, count, and is_a_member.

  • In both variable member_id, count assigns some value. and in is_a_member variable assign a False value.
  • Using a for loop to iterate over the list.
  • Inside the loop, If the statement will check whether the element is found. Then set the value of is_a_member variable to True and count to 1.
  • Another if the statement is used which checks the value of the count variable. If the value of count is 0 then set the value of is_a_member to False.
  • print() function is used to display the current value of is_a_member variable.
6 0
4 years ago
When a network mask is applied to any ip address on the network, the result is the ip address' network part followed by zeros?
joja [24]
Yes.








-----------------------------------------------------------------------------------
4 0
4 years ago
A (blank) is a special row in an Excel table that provides a selection of
Colt1911 [192]

A Data series is a special row in an Excel table that provides a selection of  aggregate functions useful for working with numerical data.

Data series

<u>Explanation:</u>

As MS-excel worksheet is used to huge or series of calculation. Through MS-excel people use for calculation and do series of analysis and do graph output.

Even in software development reports are generated and export to MS-excel and further analysis, calculation are made.

MS-excel is wonderful tools is used in computer technology. in MS-excel has many inbuilt function where can be used with single cell or range of cells.

In MS-excel aggregate function such as sum, count, max or min is inbuilt function readily available to user it.

3 0
3 years ago
Other questions:
  • Describe a situation where it would be appropriate to use each of the six leadership styles described by Daniel Goleman
    7·1 answer
  • Write a program that reads a floating-point number from the user and prints "zero", "positive" or "negative"
    13·1 answer
  • 50) Universal Containers has an integration that runs nightly to update the Product (Product2) object in Salesforce with updated
    9·1 answer
  • Which console was the first to use CD-ROM storage
    5·1 answer
  • Factors to consider when selecting an operating system to install in a computer ​
    7·1 answer
  • Here you guys go im back didnt die or any thing gg for who ever gets this
    11·2 answers
  • Write an algorithm to multiply two numbers​
    10·2 answers
  • You have two identical print devices that are set up in a work room. Currently, the Windows print server has two printers config
    13·1 answer
  • When determining how much money to borrow in loans to pay for your higher education, which of the following items should not be
    5·1 answer
  • Which terms would be found in search for "Mo*”? Check all that apply.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!