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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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