Question: Please help me with this assignment. LAB 6: Comparalive Cost of Living in US cities The purpose of this lab is to compare cost of

 Please help me with this assignment. LAB 6: Comparalive Cost of

Living in US cities The purpose of this lab is to compare

cost of living in cities throughout the United States. The data file

Please help me with this assignment.

LAB 6: Comparalive Cost of Living in US cities The purpose of this lab is to compare cost of living in cities throughout the United States. The data file contains city names along with respective percentages that indicate relative price levels for consumer goods and services. The average composite index for the nation is 100s, and each city's index is read as a percentage of the overall average. The groceries, housing, utilities, transportation. health and miscellaneous. Miscellaneous goods and services are readily available across the U.S., including fast food, haircut. toiletries, denim jeans, newspaper subscription. movie ticket Sowee. C2ER, Arlington, VA, ACCRA Cost of Living Index, Annual Average 2010. Input: All input is to be performed in main0 Wrile a program put the name and slate of a city Then input six values: of incom of income spent on housing of income spent on utilities of income spent on transportation of income on heal of income spent on miscellaneous goods and services Repeat until end of file. Use getlinelfile, string name) to input names. You will find a very mischievous a character or even two characters for some Mac users) to deal wi the end of the six values. You will enjoy knowing about file.get(ch) where ch has been declared as a char or, you might find string temp; getlinelinFile, temp): works better for you. Computations: Compute the composites index computed as follows: 13% of groceries% t 29% of housing% t 10% of utilities 12% transportation 12% of health +24 of misc This computation should be complete in a separate function. N.B. No reference pointer is Find the city with the lowest composite index. Find the city with the highest composite index

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!