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

  Pseudocode to read in data file containing student names

Read in a data file containing student names, ID number, and gender into an array. Print the contents of each record using the array.

  Write program to list all english-math and science teachers

Suppose that input consists of a file of teachers. You are told to write a program to list all English, math, and science teachers. Each teacher can teach only one subject.

  Create a java application for employee class

Create a Java application, that support the following:- Create an Employee class, which holds following information: Employee First Name, Employee Last Name.

  Program to fill 0s and 1s into tictactoe board

Write a program which randomly fills in 0s and 1s into TicTacToe board, prints board.

  Write program to choose female student-completed more course

Suppose that input consists of a student file. You are told to write a program to select female students who have completed more than two courses.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Create logic for program to count readers by genders

Create the logic for a program that would produce a count of readers by gender within age group - that is, under 20 females, under 20 males, etc.

  Write program that uses recursive function to count number

Write a program that uses a recursive function to count the number of blobs in a square grid. Input to the program should consist of the locations of the asterisk in the grid.

  Explaining law of diminishing returns

As computer word size gets larger and larger, there is a law of diminishing returns; speed of execution of application programs doesn't increase and may, in fact, decrease.

  Pseudocode of program that will prompt user for number

Write pseudocode and flowchart for a program which will prompt user for a number, prompt the user for an operator (+,-,*,/), prompt the user for another number.

  Solve the programming problem

Solve the programming problem

  Program to create new departments to sustem

An ability to add new departments to system. The program should permit you to create new departments. Each department has a name, and a location (e.g. "Sydney" or "Tokyo").

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