Define function that takes year as it-s input argument

Assignment Help Programming Languages
Reference no: EM1360317

United states consumers put $51 billion in fast food charges on their credit and debit cards in2006, up from $33.2 billion in 2005. Based on this model of the billions of fast food charges, F(t)=33.2+16.8t Where t is years since 2005, write a program that repeatedly prompts the user to enter a year after 2005 and then predicts the billions of dollars of fast food charges US consumers will make in that year. Define and call a function fast_food_billions that takes the year as it's input argument and returns the prediction as it's result. Tell the user that entry of a year before 2005 will cause the program to stop.

Reference no: EM1360317

Questions Cloud

Calculate original issue price : Stock was issued several years agao and carried a fixed dividend of $6 per share. Over time, the yields have gone from 6 percent to 14 percent
How much time does it take to lift the container with motor : How much time does it take to lift container with the motor.
David rosenhans experiment : Summarize, briefly, David Rosenhan's experiment after reading his summary of his article. Then, discuss the impact of being diagnosed with a psychological disorder.
Capacity planning and forecasting : What role does customer demand play in capacity planning? Why is it necessary to do both short term and long term planning
Define function that takes year as it-s input argument : Define and call a function fast_food_billions that takes the year as it's input argument and returns the prediction as it's result. Tell the user that entry of a year before 2005 will cause the program to stop.
Potential effects of test misuse on individuals : What are potential effects of test misuse on individuals being tested and on the population at large. Reference APA Code of Ethics and other relevant standards.
Compute the current value of the stock : Sam's Corporation expects to pay a dividend of $6 per share at the end of year one, $9 per share at the end of year two, and then be sold for $136 per share at the end of year two.
Strategic management - premium price : Explain what attributes are needed to obtain and sustain a premium and Strategic Management: Premium Price
Explain and create a draft of the power point presentation : Explain and Create a draft of the Power Point presentation on the topic of Motocross including visual aids and proper citations.

Reviews

Write a Review

Programming Languages Questions & Answers

  Creating main function that opens the input file

Create a main function that opens the input file, reads each line, and based on first character in input line, calls the [A]dd function or [M]ultiply function.

  Design program to asks for number of fat grams

Design a program that asks for the number of fat grams and calories in a food item. Validate the input as follows: Make sure the number of fat grams and calories are not less than 0.

  Program to compute person-s body mass index

Write a program to compute person's body mass index? Create a modular program which calculates and display person's body mass index (BMI).

  Sql statements coded as transaction

Write a set of 3 SQL statements coded as transaction to reflect following change: United Parcel Service has been purchased by federal Express Corporation.

  Solve the programming problem

Solve the programming problem

  Program to display the bonus

product receives a 5% bonus, otherwise, he receives a 4% bonus. Display the bonus, formatted with a dollar sign and two decimal places, in the bonusLabel.

  Explaining object hierarchy in object-oriented programming

Study the concept of inheritance and the object hierarchy in object-oriented programming, and write a paper comparing these concepts with the concept of inheritence.

  Write a vhdl code for soda vending machine

Write a VHDL code that implements the above soda machine. You have to turn in the following: A state diagram showing the implementation of your design. Clearly show all the states and the conditions on which transitions occur.

  Find number values that are between given range

Suppose the values from aaa.txt have been loaded into array Bob: find out the number values in Bob that are between 0 and 4 (not inclusive).

  Write a shell script to read students first names

Write a shell script that reads 5 students' first names, last names and grades and then it calculates the average, maximum and minimum grade.

  Write program to merge two files that contain polynomials

Write a program that merges two files that contain polynomials. To merge two files, the input files must be in sorted order.

  Create a dtd for a small xml data set

Create a DTD for a small XML data set drawn from the Stanford course catalog. There are multiple departments, each with a department chair.

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