Write a program to carry out the stated task

Assignment Help Basic Computer Science
Reference no: EM131411890

write a program to carry out the stated task

The number of calories burned per hour by cycling, running, and swimming are ZOO, 475, and 275, respectively. A person loses 1 pound of weight for each 3500 calories burned. Write code to read the number of hours spent at each activity and then display the number of pounds worked off. A sample run is shown in Fig. 3.13.

255_67bb3511-7362-43d1-9a17-768796c731df.png

Reference no: EM131411890

Questions Cloud

Calculation on annual payments : You are given the following data: A bond has a coupon rate of 7.225, the latest yield reported of 6.23 and 8 years to maturity. What is the price of the bond? A bond has a coupon rate of 6.95, the latest yield reported of 8.7 and 16 years to matur..
Write code to read the name of a baseball team : A sample run is shown in Fig. 3.16. In the following exercises, write a program to carry out the task. The program should use variables for each of the quantities.
Determining the energy and restaurants : The market risk premium is 8% and the risk-free rate is 4%. Company ABC, is a 100% equity company (no debt), and consists of two divisions that each make up 50% of the company: energy and restaurants.
What is the maximum per share price : Since there is substantial uncertainty regarding the dividends to be paid, you believe that a 23% rate of return is appropriate for this investment. Based on this information, what is the maximum per share price you would pay for this stock?
Write a program to carry out the stated task : A person loses 1 pound of weight for each 3500 calories burned. Write code to read the number of hours spent at each activity and then display the number of pounds worked off. A sample run is shown in Fig. 3.13.
How does the process of factoring work : Point your browser to http://www.winfin.com, the home page of Winston Financial Group, Inc. Your assignment is to explore this Web site and to answer the question: How does the process of factoring work?
Role and responsibilities of disaster participants : You serve as a volunteer emergency manager in a small, rural community in Alaska. Your town has been adversely affected by a major winter snow storm – one that has shattered all of the prior records. Roads are impassible and you are worried about the..
Determining the returns after-tax cash flow : Your company is looking at an investment that today costs $4,152 and returns after-tax cash flow exactly one year, two years, and three years from today, respectively, equal to $1,600 , $2,100 and $2,700.
What is probability that she has one child of each sex : In given Example, we found that the probability that a woman with two children either has two girls or two boys is .5002. What is the probability that she has one child of each sex?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What is the difference between a combination

Assume that the probability of a server failing over night is p = 0.1. If you have 1000 servers, what is the probability that 100 servers will have failed over night?

  Can we vectorize the computations in get segments ()

Given that we are looping over the number of objects we see, not the 360 range values, does vectorizing significantly improve the performance? Think about how often we call get Segments () - once for each look in each log file.

  Demonstrate an ability to follow and fulfil specifications

Demonstrate technical proficiency through the successful and confident utilisation of the software techniques and tools demonstrated in the tutorial.

  What is a client and server database system

What are the advantages of the database server approach to client/server database compared to the file server approach?

  Availability by looking at component

When installing PCI Network interphase Computer System (NICS) you can check the IRQ availability by looking at which component?

  Do you want to tune up your bicycle or make your own repairs

Do you want to tune up your bicycle or make your own repairs? Come to the Campus Bicycle Resource and Repair Center.

  Simple way of detecting common mis-typings of card numbers

Credit card numbers have what is called a check digit. This is a simple way of detecting common mis-typings of card numbers. The algorithm is as follows:

  What are the four approaches to installation

What are the four approaches to installation? Which is the most expensive? What is the most risky? How does an organization decide which approach to use?

  Implement a loop that prompts a user to enter a number

Sometimes students write programs with instructions such as "Enter data, 0 to quit" and that exit the data entry loop when the user enters the number 0. Explain why that is usually a poor idea.

  Construct a signal-flow graph to represent the vector-valued

Construct a signal-flow graph to represent the vector-valued Eqs. (8.87) and (8.88)

  Is this a test of independence or homogeneity

Is this a test of independence or homogeneity?

  Decision structures and conditionals

Discuss routine decisions you make throughout your day. How might you implement them using C# decision structures and conditionals?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd