Calculating the Cost of Milk

Jun 17th, 2015
Studypool Tutor
Northern Arizona University
Price: $25 USD

Tutor description

This program is for a user to calculate the price of regular milk and ultimate milk when the user inputs the number of litres of milk they wish to purchase.

Word Count: 318
Showing Page: 1/2
// Calculating the Cost of Milk// This program is for a user to calculate the price of regular milk and ultimate milk when the user inputs the number of litres of milk they wish to purchase.Main// Declare variablesDeclare Litters, MenuSelect, Results as float// Set Litters to positive value to start loopSet Litters < 0;// Loop while Litters is a positive numberWhile Litters > 0Print Enter the number of litters you wish to purchase:Input Litters// Only perform menu and function calls if the value entered for Litters is positiveIf Litters > 0 ThenPrint Enter 1 to cal

Review from student

Studypool Student
" Excellent work as always thanks so much "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1824 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors