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

  Find a longest sequence of data entries to insert

COMPUTER SCIENCE 5443 - find a longest sequence of data entries to insert, so that there is not split of any bucket and find a shortest sequence of data entries to insert, so that each of the four buckets is split exactly once.

  What is an accumulator

There are some instructions where the ALU and register_AC together will act as an accumulator. What is an accumulator. There are some instructions that do not require an output from the ALU. You can choose the output of the ALU in these cases. What ..

  Design a pseudocode algorithm

design a pseudocode algorithm you would write for a simple task like making a turkey sandwich, as well as three simple control structures that could be used to create this algorithm. What do you think is the most difficult part of creating the alg..

  Write down a program that reads a person''s name

Write down a program that reads a person's name.

  Write executive summary about banking industry

Banking industry (Web and data securiyt). You have to write Executive summary, Introduction, Use of data security in banking industry, difeerent types, security framework, conclusin and power point presentation.

  Data storagecomputer processes need to be able to store

data storagecomputer processes need to be able to store data during the execution phase. the data may need to be stored

  Relationship between hardware and software

What are the relationship between hardware and software.

  Draw a message sequence diagram

Considering all the packets in the file, draw a message sequence diagram that illustrates the packets. A message sequence diagram uses vertical lines to represent events that happen at a computer over time (time is increasing as the line goes down..

  What is the maximum rate

assume an 802.11b station is configured to always reserve the channel with the RTS/CTS sequence. Suppose this station suddenly wants to transmit 1,000 bytes of data, and all other stations are idle at this time.

  List and explain three common types of spam

List and explain three common types of SPAM. Log onto your Email system (Ex: Gmail, Yahoo, etc.,) and locate SPAM filter functions. Configure SPAM filters to block known senders of SPAM

  Write r functions for forecasting future values

you will write R functions for forecasting future values of a time series, and apply them to observations on numbers of deaths and maximum temperatures in Houston, Texas.

  When you viewed the verbal and the nonverbal together

for this project use the concepts in units 5 and 6 and your own observations to identify the roles of verbal and

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