Calculate various averages in your classes

Assignment Help Other Subject
Reference no: EM131257776

Project I

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(Time/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: EM131257776

Questions Cloud

What key strategies did bezos use to grow the company : What key strategies did Bezos use to grow the company in just 17 years? Use credible sources and research to support and explain
What is the total transportation cost : How many units should owner Stephen Allen ship from each plant to each regional distribution center? - What is the total transportation cost?
Generate the first twenty prime numbers greater : Write a program in ARM assembly language to generate the first twenty prime numbers greater than 2 and save them into the memory locations called Primearray. For this part, you may use the following algorithm. You are required to optimize the code..
Where would you locate the two new plants and why : Custom Vans, Inc., specializes in converting standard vans into campers.  - Where would you locate the two new plants? Why?
Calculate various averages in your classes : 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.
How can they apply this information to their daily lives : How can the conclusions of your literature review inform the population towards whom your presentation is directed? How can they apply this information to their daily lives? What advice or ‘take home message' can you provide to your audience based..
Embedded sql to retrieve the total trip expenses : Write a program in embedded SQL to retrieve the total trip expenses of the salesman named ‘John' for the relations of SALESPERSON (SSN, Name, start_year, Dept_no) TRIP (SSN, From_city, To_city, Departure_Date, Return_Date, Trip_ID) EXPENSE(TripID,..
Name the three parts of a typical queuing system : Name the three parts of a typical queuing system. -  When designing a waiting line system, what "qualitative" concerns need to be considered?
Ms forefront threat management gateway : MS Forefront Threat Management Gateway is over 5 years old. What is a current MS product or feature (in it's Server 2012 release for instance) that might perform the equivalent features? What is an alternative to MS Forefront Threat Management..

Reviews

Write a Review

Other Subject Questions & Answers

  Learning team assignment: channel and pricing strategies

Learning Team Assignment: Channel and Pricing Strategies

  Certain thermal reactor-conversion ratio

It is found that in certain thermal reactor, fueled with partially enriched uranium, 13% of the fission neutrons are absorbed in resonances of 238U and 3% leak out of the reactor, both while these neutrons are slowing down; 5% of the neutrons that sl..

  Prepare the information gap activity

Prepare the information gap activity where over phone one student explains used car he wants to sell. Another student, having seen an ad in paper about car.

  Devote several times more space to war than to insurrection

Why does virtually every American history textbook devote several times more space to the war than to the insurrection?

  Describe the development of the frontal lobes

Describe the development of the frontal lobes. Review the executive functioning skills and tie them to frontal lobe development. How might the development of the frontal lobes explain poor judgment, erratic behaviors, and impulsive actions seen in..

  Providing a neurological explanation

If we learn what we remember and remember what we learn, provide a neurological explanation "the best you can with current findings"of why people with Alzheimer's disease forget what they have learned and may have known for decades.

  Better prepared for the current workplace than non-graduates

Are college graduates better prepared for the current workplace than non-graduates? Explain why or why not

  Analyze the ethical and deviant behaviors in policing

Define ethics. Describe the nature of ethics and their role in policing. Identify the ethical standards in policing. Identify the following deviant behaviors and their effects

  Issues and functionality associated with an edms

Identify and describe the technology options, issues, and functionality associated with an EDMS.

  Dna sequence of own choice

If the DNA sequence is TACAAAGGCGGGTGA, predict RNA and then polypeptide sequence. You may also add examples by using DNA sequence of your own choice.

  Many people shy away from careers in selling often because

many people shy away from careers in selling often because they think they are not outgoing enough or because

  What are some techniques that the writers and producers use

What are some techniques that the writers and producers use to "sell" their product? - Be specific and detailed as you describe examples from the video

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