Write a re-usable program to calculate various averages

Assignment Help Computer Engineering
Reference no: EM131252201

Project

Project: Using a program environment (i. e. Raptor, Basic, C, Python). Choose one of the problems below and using the topic covered in Chapter 3 of the text (Robot Programming: A Guide to Programming Autonomous Robots), do the following:

i. Draw the flowchart (pseudocode)
ii. Write the program
iii. Submit a report.

1. A biologist determines that the approximate number, Number, or bacteria present in a culture after Time (in days) is given by the following formula:

Number = BacteriaPresent * 2(Timen/10)

Where BacteriaPresent is the number present at the beginning of the observation period. Let the user input BacteriaPresent, the number of bacteria present at the beginning. Then compute the number of bacteria in the culture after each day for the first 10 days. Do this in a loop so the user can see the results in a table. The output table should have headings for day and Number of Bacteria Present (on that day).

2. Suppose a pair of dice is rolled and its sum is recorded. For example, if the first die comes up 4 and the second comes up 8, we record the value 12. Write a program to generate what outcomes are most likely. Identify if it is more likely that the sum of a roll of a pair of dice will be 7 or 11.

This can be answered by simulating an experiment with a program that uses random numbers. For each roll of the dice, we need to generate two random numbers - one for each die - in the range from 1 to 6. Then we add these numbers and keep track of the number of times the sum is 7 or 11. If we roll the dice (generate a pair of random numbers) thousands of times, the sum (7 or 11) with the larger count is presumably the one that is more likely to occur.

3. Write a re-usable program to calculate various averages in your classes. It doesn't matter if you have 3 exams or 33 exams. The program should compute the computer the average as such:

ExamAverage = SumGrades/CountGrades

The output should show the number of grades entered and the average of the grades.

Reference no: EM131252201

Questions Cloud

Find the symmetric nash equilibrium : Find the symmetric Nash equilibrium of this n-player normal-form game. - Compute the probability that at least one person calls for help in equilibrium.
Quantity in thousands and is in thousands : where is the quantity in thousands and is in thousands. Although Arizona is farther away from Ohio than Michigan is from Ohio, assume the transportation costs (for delivery) is the same and, for simplicity, equal to zero.
Prove that every game has a nash equilibrium : Prove that every 2 × 2 game has a Nash equilibrium. -  Do this by considering the following general game and breaking the analysis:
Relationship between health education and health promotion : In what ways are they connected, and in what ways do they differ? What social, environmental, political, economic, and organizational factors are involved in these processes? How do Health Educators operationalize health education and health promo..
Write a re-usable program to calculate various averages : Write a re-usable program to calculate various averages in your classes. It doesn't matter if you have 3 exams or 33 exams. The program should compute the computer the average as such.
Extra banana would increase utility : Inez reports that an extra banana would increase her utility by two units and an extra pear would increase her utility by two units and an extra pear would increase her utility by two units and an extra pear would increase her utility by six units..
How are hybrid composites classified : Do all properties of composites always improve over their individual constituents? Give examples.
Describe conditions that reduce aircraft utilization factors : What are the qualifications, certifications, and responsibilities of a commercial pilot? What are the qualifications, certifications, and responsibilities of an Airframe and Powerplant mechanic? What are the qualifications, certifications, and respon..
How many nash equilibria does this game have : Determine whether this game has a symmetric mixed-strategy Nash equilibrium in which each player selects X with probability p. If you can find such an equilibrium, what is p?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Evaluate the benefits of cloud computing for legacy and

cloud computing please respond to the followingbullevaluate the benefits of cloud computing for modern and legacy

  Make a math tutor program in vb.net

make a math tutor program in VB.Net.

  Cloud computing security policy

Cloud Computing Security Policy

  What to do with existing personnel retain and retrain

What to do with existing personnel retain and retrain, hire a IT administrator or not, etc ), and of course costs and benefits as broken down as shown in questions 1 through 3 above.

  Question 1 explain the terms technique and tool and then

question 1 explain the terms technique and tool and then describe some of the techniques and tools that you used in

  Examine the importance and purpose of of n-tier systems

Examine the importance and purpose of of n-tier systems

  Explain the formal change management system

The project could fail because the cost of a key component has increased and we could build a product that does not achieve its production cost target.

  The ajax extensions tab of the toolbox

Inside the ContentTemplate element of the UpdatePanel server control add the standard RadioButtonList server control, Label server control and Button server control.

  Data mining and olap compared with oltp systems

Explain the key advantages and benefits of that technology

  Make the get/set methods for each of your variables

select a product that lends itself to an inventory (for example, products at your workplace, office supplies, music CDs, DVD movies, or software).

  There should be a way of giving the clients some idea about

preparing a spreadsheet that helps one to plan custom vacation packages for families. the final outcome would be a nice

  Write down a for loop which will display all numbers that

write a for loop that will display all numbers that are multiples of 10 from 0 to 100 and then display the average of

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