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

  Questionthis is compulsory to write a report on

questionthis is compulsory to write a report on object-oriented systems. the report must focus on the following systems

  Evaluate a product expression

To evaluate a sum expression (series of zero or more additions and subtractions): evaluate a product expression (zero or more multiplications and divisions).

  Develop an opinion as to the degree to which hypertext links

Select two opposing viewpoints from web sources and by providing a review of their content develop an opinion as to the degree to which hypertext links are a good idea.

  Sending and processing the message

Assume Alice desires to transmit a large secret message M to Bob. Explain how Alice should send M in an authenticated way.

  Ehy the focus of the os is all over the place

Functionally, we'll definitely find that Unix or Linux will be the best choice for a web server as it doesn't require all of the "extras" for the graphics. What problems can we have if the focus of the OS is all over the place?

  If you were designing a wireless network would you spend

a wireless network will only function as well as it is designed to function. outline the four steps involved in

  Integration of e-commerce and erp systems

Integration of E-commerce and ERP Systems with other ICT (information and communication technologies) to create value for customers and shareholders.

  Write down a paper comprising of 500-1000 words

write a paper consisting of 500-1000 words double-spaced on the security effects of cryptographic tunneling based on an

  Program to find smaller between num1 and num2 to output

Program to find smaller between num1 and num2 to output

  Design e-r tables for keeping track of the exploits

Design E-R tables for keeping track of the exploits of your favorite sports team. You should store the matches played, the scores in each match, the players in each match, and individual player statistics for each match.

  Soda vending machine design

Soda Vending Machine Design,    A state diagram showing the implementation of your design. Clearly show all the states and the conditions on which transitions occur.

  What experiences have you had with virtualization in the

write a 200- to 300-word short-answer response to the following what experiences have you had with virtualization in

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