Ask Question
21 February, 22:01

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.

+3
Answers (1)
  1. 22 February, 01:48
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers