Computers and Technology, 12.06.2021 14:00 raylynnreece5052
PYTHON PROGRAMMING
The manager of the Super Supermarket would like to be able to compare the unit price for products sold there. To do this, the program should input the name and price of an item per pound and its weights in pounds and ounces. Then it should determine and display the unit price (the price per ounce) of that item and the total cost of the amount purchased. You will need the following variables:
ItemName PoundPrice Pounds
TotalPrice Ounces UnitPrice
You will need the following formulas:
UnitPrice = PoundPrice/16
TotalPrice = PoundPrice * (Pounds + Ounces/16)
Answers: 2
Computers and Technology, 23.06.2019 16:00
Kenny works with an it company. his company is about to launch new software in the market. he has to ensure that this new software is functional and meets all of the quality standards set up at the planning stage. which job profile is kenny likely to have? kenny is likely to have the job profile of a blank .
Answers: 2
Computers and Technology, 24.06.2019 18:50
Write a program that reads in a series of lines of input character by character (using the library function the first line of the input contains an integer which specifies the number of remaining lines of input, each of which contains a floating point number. the integer value on the first line can be read with (the library function) but all of the following lines can only be read with each line, after the first, contains a single floating point value, with up to four digits before the decimal point, and up to four digits following the decimal point, but there is not necessarily a decimal point in each number; i.e., it may appear to be an integer, but the digits should be read by your program, and the number should be converted to a corresponding floating point number. for instance, suppose the following input: 5 3.1255 20.25 0.875 1921.50 31 the required output is: β each of the input floating point values, printed on a separate line with four digits of precision, using printf(); β on the last line of the output, the string βtotal: β followed by the sum of the input values, printed with printf() to 4 digits of precision. for example, the total of the sample input given above is 1976.7505, so the required output for this input would be: 3.1255 20.2500 0.8750 1921.5000 31.0000 total: 1976.7505 do not concern yourself with small differences in the total due to rounding, as the grader will not deduct points for this. constraints: β you are not allowed to use arrays on this portion of the lab assignment. β there is no maximum number of lines allowable. it all depends upon the first value of input. since you arenβt saving anything, it doesnβt matter. β you can assume that input will not contain more than 4 digits before or after the decimal point. you do not need to error check for this condition. -you must use getchar() to read in the floating point values one character at a time (i.e. do not use -you must declare and use your floating point values as a double to minimize rounding errors. -only use printf() to output the floating point numbers and the total (do not use β be sure your directions to the user are clear so they are sure to enter the input data correctly.
Answers: 1
Computers and Technology, 24.06.2019 23:40
Which slide should you change so it reflects om all sides of your presentation
Answers: 1
Computers and Technology, 25.06.2019 09:30
Is it possible to build a portal in real life?
Answers: 2
PYTHON PROGRAMMING
The manager of the Super Supermarket would like to be able to compare the unit p...
Mathematics, 18.10.2019 04:30
Health, 18.10.2019 04:30
Chemistry, 18.10.2019 04:30
Social Studies, 18.10.2019 04:30
Mathematics, 18.10.2019 04:30
World Languages, 18.10.2019 04:30
Mathematics, 18.10.2019 04:30
Social Studies, 18.10.2019 04:30
Health, 18.10.2019 04:30
Mathematics, 18.10.2019 04:30
History, 18.10.2019 04:30
History, 18.10.2019 04:30
Mathematics, 18.10.2019 04:30