answer.
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
yaroslaw
2 days ago
10

Write a program that calculates an adult's fat-burning heart rate, which is 70% of 220 minus the person's age. Complete fat_burn

ing_heart_rate() to calculate the fat burning heart rate. The adult's age must be between the ages of 18 and 75 inclusive. If the age entered is not in this range, raise a ValueError exception in get_age() with the message "Invalid age." Handle the exception in __main__ and print the ValueError message along with "Could not calculate heart rate info." Ex: If the input is: 35 the output is: Fat burning heart rate for a 35 year-old: 129.5 bpm If the input is: 17 the output is: Invalid age. Could not calculate heart rate info.
Computers and Technology
1 answer:
Harlamova29_29 [926]2 days ago
8 0

Answer:

#include <iostream>

#include <conio.h>

using namespace std;

float fat_burning_heart_rate(float age);

int main()

{

float age,bpm;

cout<<"Enter the age of the individual:"<<endl;

cin>>age;

if (age>=18 && age<=75)

{

bpm=fat_burning_heart_rate(age);

cout<<"Fat-burning heart rate for a "<<age<<" year-old: "<<bpm;

}

else

cout<<"Invalid age";

getch();

}

float fat_burning_heart_rate(float age)

{

 

float a;

 

a= (220-age)*0.7;

return a;

}

Explanation:

In this program, the variable denoting age captures the individual’s age, which is essential for the fat-burning heart rate calculation. Each variable is defined in float, as age and the fat-burning heart rate are expected to include decimal values.

The formula utilized is as mentioned in the question:

a= (220-age)*0.7;

You might be interested in
A company requires an Ethernet connection from the north end of its office building to the south end. The distance between conne
maria [879]

Answer:

A business needs an Ethernet connection that spans from the northern part of their office to the southern part. The distance of this connection is 161 meters and should support speeds up to 10 Gbps in full duplex mode. Which cable types would be suitable for these specifications?

ANSWER: Multi-mode fiber optic cable should be used

Explanation:

MULTI-MODE FIBER OPTIC CABLE

For distances extending to 100 meters, Copper CATX cable is adequate. However, since the distance here is 161 meters, an Ethernet extension is necessary. Using fiber optic cable along with a media converter allows for the transition from copper Ethernet lines to fiber. Multi-mode fiber supports distances up to 550 meters for 10/100/1000 Ethernet links.

Typically, multi-mode fiber is used for short-distance communication like inside buildings or across campuses. It can achieve data rates of up to 100 Gbps, well above the requirements here. Furthermore, this option is cost-effective compared to single-mode fiber optic cables. Fiber optic technology is also advantageous due to its immunity to electromagnetic interference, voltage spikes, ground loops, and surges, making it a better choice for this application.

7 0
26 days ago
The Online Shopping system facilitates the customer to view the products, inquire about the product details, and product availab
amid [800]
Refer to the explanation provided. In the online shopping software system, five actors can be identified: A Customer can perform actions such as exploring products and seeking product information. The interface allows for the creation of customer accounts facilitating purchases. Additionally, customers can browse items by using search categories or keywords, and they are able to order and make payments for their selected products. The payment system accepts two primary methods: credit card and PayPal. A Seller can list products in appropriate categories and create accounts to gain membership. An Administrator manages product listings and can modify existing categories or introduce new ones. Finally, the Site Manager has the capability to view different reports regarding customer orders, seller-added products, and user-created accounts.
3 0
13 days ago
Here is a super challenge for you if you feel up for it. (You will need to work this out in Excel.) In 2017 the Islamic month of
8_murik_8 [887]

Response:

7/73

Clarification:

May consists of 31 days. By calculating 31 - 26, we find 5 days remaining until June. Therefore, Muslims fasted for a total of 35 days. In 2017, there were 365 days, leading to 365 - 35 = 330 days without fasting. Consequently, the fraction representing the fasting period is 35/365, which simplifies to 7/73.

4 0
29 days ago
What happened if the offshore team members are not able to participate in the iterations demo due to timezone/infrastructure iss
zubka84 [936]

What if the offshore team members are unable to join the iterations demonstration because of timezone or infrastructure issues? (c) Not a significant problem. The offshore lead and the onsite team members will attend the demo with the product owner and can relay the feedback to the offshore team afterwards.

Explanation:

Not a significant problem. The offshore lead and the onsite team members will attend the demo with the product owner and can relay the feedback to the offshore team afterwards.

From the previous statement, it is evident that if offshore team members cannot attend the demo alongside the product owner due to issues with time zones or infrastructure, it won't pose a major concern because the onsite team will be present and can share all relevant insights and feedback with the offshore team. They all belong to the same team.

Therefore, the answer (3) is correct

4 0
1 month ago
A company that allows you to license software monthly to use online is an example of
oksian1 [789]

A business that offers monthly software licensing for online use exemplifies a Subscription model.

Explanation:

Software license agreements authorize individuals or organizations to utilize software applications, with various licensing methods tailored to different financial situations. The main licensing types include Stand-alone, Networked, Site, Cloud, and Subscription.

Subscription:

This approach involves temporarily renting software rather than purchasing it outright. Instead of a one-time full payment, users pay periodically—monthly, quarterly, or yearly.

Subscription licenses are ideal for short-term assignments, temporary employees, or scenarios requiring limited software use.

Currently, subscription licensing is popular because it offers software updates and flexible payment plans. Permanent licenses often have high upfront costs, making subscriptions a more accessible option.

4 0
1 month ago
Read 2 more answers
Other questions:
  • Write a function solution that returns an arbitrary integer which is greater than n.
    13·1 answer
  • Knowledge flows from the information that has been generated. Which of the following does not necessarily flow from information
    15·1 answer
  • When a CPU executes instructions as it converts input into output, it does so with
    12·1 answer
  • Any software or program that comes in many forms and is designed to disrupt the normal operation of a computer by allowing an un
    13·1 answer
  • Write a method printShampooInstructions(), with int parameter numCycles, and void return type. If numCycles is less than 1, prin
    14·1 answer
  • A client has macular degeneration resulting in moderate visual impairment. The client works as a data entry clerk and wants to c
    15·1 answer
  • More Loops: All versions of foods.py in this section have avoided using for loops when printing to save space. Choose a version
    13·1 answer
  • When adopting and implementing a Software as a Service (SaaS) platform such as Salesforce for your business, which responsibilit
    7·1 answer
  • The piston engine uses the ________ to convert the reciprocating motion of the piston into rotary motion.
    13·1 answer
  • Explain what might happen if two stations are accidentally assigned the same hardware address?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!