

NOTE
#######
As the programming language is not specified,it is assumed that language is python as int() function is to be used .
####################### PGM START ##############################
#function to calculate bacterial growth
def grow_bacteria(gen_t,start_c,reprd_t):
#finding number of generations
n=int(reprd_t/gen_t)
sum=0
#for each generation calculate bacterial count
and print
for i in range(n):
sum=start_c*pow(2,(i+1))
print("After
generation-"+str((i+1))+", b = "+str(sum))
#return the final count
return sum
#main method
if __name__=="__main__":
#requesitng generation time
generation_time=int(input("Enter generation
time: "))
#requesting starting count
starting_count=int(input("Enter starting count
of bacteria: "))
#requesting reproduction period
reprod_time=int(input("Enter total time to
reproduce: "))
#finding the bacterial count in each
generation
result=grow_bacteria(generation_time,starting_count,reprod_time)
#prinitng final bacterial count
print("\n\tTOTAL BACTERIA: "+str(result))
####################### PGM END #################################
OUTPUT
########

Assignment 4 2018 Simple Functions and Looping Task or estimated I. The progam will ask the rr Th...
Simple python assignment Write a menu-driven program for Food Court. (You need to use functions!) Display the food menu to a user (Just show the 5 options' names and prices - No need to show the Combos or the details!) Ask the user what he/she wants and how many of it. (Check the user inputs) AND Use strip() function to strip your inputs. Keep asking the user until he/she chooses the end order option. (You can pass quantity1, quantity2, quantity3,...
Your task in this programming assignment is to write a Python program that implements a simple vehicle class. The class models a vehicle that has a year, a make, and a model (e.g., 2016 Dodge Ram, 2007 Honda Civic, etc). For a 2016 Dodge Ram, for example, the year is 2016, the make is Dodge, and the model is Ram. You will be provided a template that includes code (that you cannot change) in the main part of the program...
SOLVE USING C!!!
Project objective: Conditional statements,
loops, reading from file, user defined functions.
**Submit source code (LargeProg1.c) through
Canvas
One source code file(unformatted text) will be submitted
Here is INCOMPLETE code to get started: LargeProg1.c
The file name must match the assignment
The code should be tested and run on a Microsoft compiler
before it is uploaded onto Canvas
The code must be submitted on time in order to receive credit
(11:59PM on the due date)
Late submissions will...
I need help with this assignment in C++,
please!
*** The instructions and programming style details
are crucial for this assignment!
Goal: Your assignment is to write a C+ program to read in a list of phone call records from a file, and output them in a more user-friendly format to the standard output (cout). In so doing, you will practice using the ifstream class, I'O manipulators, and the string class. File format: Here is an example of a file...
Instructions ASSIGNMENT 2 is at bottom of the question. Very simple program and these intructions are only to modify it slightly, should only take about 10 minutes says my proffessor. Your file should be named “Main.java”. Ask the user how many year inputs he wants to check - an integer. Assume that the user always gives an input which is between 1 and 5 (inclusive). Next, ask the user for K number of year inputs where K = the number...
Assignment 5 will be way different. It will be more like what
you will receive in a programming shop. By that I mean that some
things are built for you and others you will need to create or
finish. P.S. part of your grade will include: Did you add in the
required files? Did you rename your project? does your linear
searches work? Did you put your code in the correct modules? did
you change modules that you weren't supposed...
Assignment 4 Real Deal: Crier On Us Some word games, like Scrabble, require rearranging a combination of letters to make a word. This type of arrangement is generally referred to as an anagram, it's known as a permutation in mathematics. This assignment will give you some experience thinking about and writing recursive functions. Write a C++ program that searches for ``anagrams'' in a dictionary. An anagram is a word obtained by scrambling the letters of some string. For example, the...
C++ For this assignment you will be building on the Original Fraction class you began last week. You'll be making four major changes to the class. [15 points] Delete your set() function. Add two constructors, a default constructor that assigns the value 0 to the Fraction, and a constructor that takes two parameters. The first parameter will represent the initial numerator of the Fraction, and the second parameter will represent the initial denominator of the Fraction. Since Fractions cannot have...
The homework assignment is to write a fee invoice using C. It
must follow the guidelines posted in the question and run as the
sample run given. Here is the question and sample run below
Please read the sample runs carefully as this is quite different
from the previous projects. In this project, the student can take
as many courses as permitted. The list of courses to take are
listed below. This time there is no restriction on the total...
C++ assignment help! The instructions are below, i included the main driver, i just need help with calling the functions in the main function This assignment will access your skills using C++ strings and dynamic arrays. After completing this assignment you will be able to do the following: (1) allocate memory dynamically, (2) implement a default constructor, (3) insert and remove an item from an unsorted dynamic array of strings, (4) use the string class member functions, (5) implement a...