CSC 126 Quiz III

Wed Feb 23rd 9:10 AM—9:40 AM

Last Name, First Name ,
ID
Score / 5 points
 
Engel Coefficient

Engel coefficient is an observation in economics stating that as income rises, the proportion of income spent on food falls, even if actual expenditure on food rises. In other words, the income elasticity of demand of food is between 0 and 1.

Engel coefficient shows living standards as follows:

  • above 60% represents poverty;
  • 45%—60% indicates barely meeting daily needs;
  • 30%—45% shows a well-to-do standard of living;
  • below 30% represents a wealthy life.

Write a complete program asking the user how much money is spent on food and the total income per week, then showing his/her living standard classification. You can design your own user-friendly prompts and outputs.

Ernst Engel

Born:  March 26th, 1821
Died:  December 8th, 1896
Nationality:  German
    -- Example --

    Please input how much money you spend on food (per week): $200
    What is your total income (per week): $500

    Your Engel coefficient is 40%.
    You have a well-to-do standard of living.

Choose your language: