Calculate how many weeks it would take for the weight

Assignment Help Computer Engineering
Reference no: EM131899891

Problem

1. Redo the previous two questions using while loops instead of for loops.

2. The variables rat_1_weight and rat_2_weight store the weights of two rats at the beginning of an experiment. The variables rat_1_rate and rat_2_rate are the rate that the rats' weights are expected to increase each week (for example, 4 percent per week).

a) Using a while loop, calculate how many weeks it would take for the weight of the first rat to become 25 percent heavier than it was originally.

b) Assume that the two rats have the same initial weight, but rat 1 is expected to gain weight at a faster rate than rat 2. Using a while loop, calculate how many weeks it would take for rat 1 to be 10 percent heavier than rat 2.

Reference no: EM131899891

Questions Cloud

What people perceive that walmart has the lowest prices : Walmart has been the king of low-cost provider. How have they been able to be successful at that strategy? Are the really always the lowest cost.
What is meant by budget lapsing : What is meant by budget lapsing? Please explain.
Function of excel scenario manager and solver tool : What are the function of Excel's Scenario Manager and Solver tool, and how they relate to one another.
What is the difference between market risk and credit risk : The assignment rubric will be used to evaluate your answers. Answers should generally be one-two paragraphs of information and analysis per question.
Calculate how many weeks it would take for the weight : Using a while loop, calculate how many weeks it would take for the weight of the first rat to become 25 percent heavier than it was originally.
How some of the low-cost leaders achieve the cost savings : Walmart, Ikea, McDonald's and Southwest Airlines adopted the business practice of minimizing costs to pass the savings on to customers.
Define risk management as it pertains to the adversary model : Define risk management as it pertains to the adversary model (resources, capabilities, motivation, risk aversion, access), including the use of supporting.
Write a response papaer about the ethics of research : Ethical consideration is a critical part, and there is always the need for ethical approval be different bodies before research can commence.
Write an if statement that will print the population : You are given two float variables, population and land area. Write an if statement that will print the population if it is between 10,000,000 and 35,000,000.

Reviews

Write a Review

Computer Engineering Questions & Answers

  It is critical for the investigator to understand the

it is critical for the investigator to understand the possible security risks that computer and network users face

  What is the syntax of the if statement

Find BNF OR EBNF grammars for Ada(available on the web). What is the syntax of the IF statement? Write a legal Ada if statement that look at the integer variables a and b.

  What would you say to a vendor that tells you

What would you say to a vendor that tells you that his system runs 50% of the SPEC benchmark kernel programs twice as fast as the leading competitive system? Which statistical fallacy is at work here?

  What is the purpose of a generic class

What is the format of an external style sheet? What is the purpose of a generic class? What is the difference between the two selectors ol ul and ol > ul?

  Write a new queue function called move-to-rear

Write a new queue function called move_to_rear that moves the element currently at the front of the queue to the rear of the queue.

  After reading about attacks on servers similar to the ones

1.after reading about attacks on servers similar to the ones used in one of your companys departments the cio has asked

  You are the project manager for a new high rise office

1.estimating proceduresa you are the project manager for a new high rise office building. you are working on estimating

  Define properties tostring methods

Define properties, ToString( ) methods, and a minimum of one virtual method. The ToString( ) method should return the name of the sport and coach.

  Process of developing a new inventory management system

Process of developing a new inventory management system. One of the event handling processes in that system is Receive Supplier Shipments.

  Determine mean salary as well as the number of salaries

Input a list of employee salaries, and determine the mean (average) salary as well as the number of salaries above and below the mean.

  Develop algorithm for program that takes input single letter

Develop an algorithm for a Java program that takes as input a single letter and displays the corresponding digit on the telephone.

  Give a regular expression for recognizing all occurrences

Give a regular expression for recognizing all occurrences of four or fewer consecutive l's in a binary string.

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