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

  Various milestones from conception to death

Human development is a process in which there are various milestones from conception to death, all of which require mastery. In terms of an individual's healthy physical functioning, is the period of prenatal developmental more critical than any othe..

  Evolution of the prison system

In the US criminal justice system, we make a distinction between prisons and jails. Our jail system is used to house those awaiting trial or those sentenced to less than one year.

  What some positive and negative implications for juveniles

What are some favorable and unfavorable implications for juveniles if their cases are heard in juvenile courts instead of criminal courts? What are some positive and negative implications for juveniles if they have their cases heard in criminal c..

  Develop a summary statement concerning antecedents

Develop a summary statement concerning antecedents, disruptive behaviors, and consequences. Then develop a summary statement concerning antecedents, cooperative behavior, and consequences.

  Research and data analysis methodology

Many students settle for reading second- or thirdhand accounts of research studies instead of reading the primary source. Why is it important to read the primary source?

  Prepare a plan to implement changes in the nursing home

Prepare a plan to implement changes in the nursing home and reduce injuries to the nurses that work in the facility.

  Smoother as fat is deposited under the skin

In what trimester does the baby?s skin become smoother as fat is deposited under the skin?

  Consequences mentioned in the readings

List and briefly explain three factors of subordinate group creation as defined by schaefer(2006) along with three consequences mentioned in the readings

  Coherent health communication program plan

Assume the role of Project Director in a national-level organization concerned with the problem and compose a coherent health communication program plan guided by planning principles.

  Concept of ethnocentrism- research can be limited by culture

Describe the concept of ethnocentrism, and how research can be limited by the culture, gender, or time period that we live in. Discuss how Kohlberg’s theory of moral development illustrates this point, and what researcher’s can do to prevent this pro..

  Identify also describe underlying principles

Identify also describe underlying principles also principal proponents (theorists) for following perspectives: psychodynamic, behaviourism, humanism, cognitive, socio cultural, bio psychological also evolutionary approach.

  Karen horney and erich fromm departed from freudian theory

Karen Horney and Erich Fromm departed from Freudian theory because they both

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