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
Sholpan
22 days ago
13

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:

Computers and Technology
You might be interested in
Technological improvements have allowed people to inhabit a wider variety of places more easily. Please select the best answer f
zubka84 [1067]

True. Technological advances have simplified and accelerated life, making it easier for people to live in a broader range of locations. Purchasing land or a home from a developer is one example of how this facilitates obtaining a desired place.

9 0
3 months ago
Read 2 more answers
Java languageThe cost to ship a package is a flat fee of 75 cents plus 25 cents per pound.1. Declare a constant named CENTS_PER_
oksian1 [950]
// Below is Java code. // Package import import java.util.*; // class definition class Main { // class main method public static void main (String[] args) throws java.lang.Exception { try{ // variables final int CENTS_PER_POUND = 25; final int FLAT_FEE_CENTS = 75; // Creating Scanner object for input Scanner sr=new Scanner(System.in); System.out.print("Enter the shipping weight:"); // input reading int shipWeightPounds=sr.nextInt(); // cost calculation int shipCostCents = (shipWeightPounds * CENTS_PER_POUND) + FLAT_FEE_CENTS; // output Weight System.out.println("shipping Weight: " + shipWeightPounds); // output flat fee System.out.println("flat fee of shipping in cents: " + FLAT_FEE_CENTS); // output cents per pound System.out.println("Cents/pound for shipping: " + CENTS_PER_POUND); // output shipping cost System.out.println("total cost of shipping in cents: " + shipCostCents); catch(Exception ex){ return;} } } // Explanation: Define two constants "CENTS_PER_POUND=25" and "FLAT_FEE_CENTS=75". Use a Scanner object to capture user input for weight. Calculate the shipping cost by multiplying the weight with cents per pound and adding the flat fee. Then, display each value.
8 0
2 months ago
Read 2 more answers
Other questions:
  • Why were the practitioners of alternative software development methods not satisfied with the traditional waterfall method?
    9·1 answer
  • A company requires an Ethernet connection from the north end of its office building to the south end. The distance between conne
    8·1 answer
  • Define a public static method named f2s that takes a single String argument, the name of a file. The method returns a (concievab
    13·1 answer
  • Huan wants to enter the science fair at his school. He has a list of ideas for his project. Which questions could be answered th
    14·1 answer
  • Supervisor: You will need to consolidate your trouble tickets
    10·1 answer
  • In three to five sentences, describe whether or not files should be deleted from your computer.
    13·2 answers
  • The given SQL creates a Movie table with an auto-incrementing ID column. Write a single INSERT statement immediately after the C
    12·1 answer
  • The domains of the risk IT framework mutually inform each other, creating flexibility and agility. It is possible to uncover a p
    10·1 answer
  • Consider a single-platter disk with the following parameters: rotation speed: 7200 rpm; number of tracks on one side ofplatter:
    10·1 answer
  • [20 POINTS] Jaime has to configure the dmz network of his organization to the optimum level. Which is the best practice to do so
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!