Ask Question

Write a program that can compare the unit (per lb) cost of sugar sold in packages with different weights and prices. the program prompts the user to enter the weight and price of package 1, then does the same for package 2, and displays the results to indicate sugar in which package has a worst unit price. it is assumed that the weight of all packages is measured in lb. all pieces of the data should be saved in one single-dimensional array.

+5
Answers (1)
  1. 15 October, 12:18
    0
    I really hope you are not expecting anyone to write an entire program for you.

    Assuming that this is Introduction to Programming, you need to focus on the basics of C programming.

    The project specifically asks for user to deal with numerical data. Is the data entered going to be in whole numbers (integers) or will it contain decimals (float) ?

    Tutors can give feedback, guide your thinking, or explain answer, But to have someone write an entire program for you is equivalent to asking someone to write an entire essay on a topic.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write a program that can compare the unit (per lb) cost of sugar sold in packages with different weights and prices. the program prompts ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers