![tatumleigh04](/avatars/8919.jpg)
tatumleigh04
24.01.2021 •
Mathematics
Please help
Generally speaking, on average it takes you 3500 calories each day to maintain your weight, while 3500 extra calories generally equals 1 pound of weight gain (So, 7000 calories in one day would mean that you gained 1 pound that day).
Prompt for 7 days of calories consumed by day, starting with Sunday and going through Saturday and put the calories into an array. Print the array along with a nicely formatted header (printf is a requirement for this part of the program).
Write a method to calculate the total amount of calories consumed for the week and print the information in a nice format.
Write a method to calculate the average number of calories consumed in the week to the nearest tenth and print the information in a nice format.
Write a method to find if you gained or lost weight this week. Subtract your ideal calories to maintain your weight (7 * 3500) from the calories you consumed for the week. Did you gain or lose weight this week and by how many pounds to the nearest tenth of a pound? Print the information in a nice format.
Use the following test input to ensure your program is running properly:
Sunday - 4700 calories
Monday - 2500 calories
Tuesday - 2000 calories
Wednesday - 1800 calories
Thursday - 3000 calories
Friday - 1500 calories
Saturday - 3500 calories
This is in java..
Solved
Show answers
More tips
- F Family and Home How to Teach Your Child to Speak: Tips and Recommendations...
- P Philosophy Agnosticism: Opinion or Belief?...
- S Style and Beauty How to choose the best mascara for your eyelashes...
- F Food and Cooking Discover Delicious Recipes You Can Make with Ground Meat...
- C Computers and Internet Google Search Tips and Tricks: Everything You Need to Know...
- S Science and Technology Why is there no gravity on other planets?...
- L Leisure and Entertainment How to Properly Wind Fishing Line onto a Reel?...
- L Leisure and Entertainment How to Make a Paper Boat in Simple Steps...
- T Travel and tourism Maldives Adventures: What is the Best Season to Visit the Luxurious Beaches?...
- H Health and Medicine Kinesiology: What is it and How Does it Work?...
Answers on questions: Mathematics
- M Mathematics Find the surface area of a rectangular prism with dimensions of 6 m by 4 m by 15 m....
- M Mathematics X-cubed+3x-squared+5x+8/x+1...
- M Mathematics What would be the difference between the graph of y=x2+3 and the graph of y=(x−2)2+3?...
- H History Why was the selective service act an important step toward winning world war i?...
- B Biology Write a sentence using the word chemical formula. Write a sentence using the word mixtures Write a sentence using the the word pure substances Write a sentence using...
Ответ:
The graph has an initial value of 60, and each successive term is determined by multiplying by One-third.
Step-by-step explanation:
Which is the best description of the graph of the function f(x) = 60(One-third)x?
A. The graph has an initial value of 20, and each successive term is determined by subtracting One-third.
B. The graph has an initial value of 20, and each successive term is determined by multiplying by One-third.
C. The graph has an initial value of 60, and each successive term is determined by subtracting One-third.
D. The graph has an initial value of 60, and each successive term is determined by multiplying by One-third.
Given:
f(x) = 60 (1/3)^x see graph attached.
Examining the graph, we notice that
1. The graph has an initial value of 60, at point (0,60)
2. The graph decreases as x increases. Each successive term is determined by multiplying by 1/3, namely in the sequence
{(0,60), (1,20), (2, 20/3), (3, 20/9), ...}
This means the choice is D (or the fourth one).