Computers and Technology, 19.07.2019 05:30, arlettg
Write assignment statements that perform thefollowing operations with the variables a, b, and c.
a) adds 2 to a and stores theresult in b.
b) multiples b times 4 andstores the result in a.
c) divides a by 3.14 and storesthe result in b.
d) subtracts 8 from b andstores the result in a.
Answers: 1
Computers and Technology, 23.06.2019 03:10, nxusasmangaliso8780
Fill in the following program so that it will correctly calculate the price of the orange juice the user is buying based on the buy one get one sale.#include //main functionint main() { int cartons; float price, total; //prompt user for input information printf("what is the cost of one container of oj in dollars? \n"); scanf(" [ select ] ["%d", "%c", "%f", "%lf"] ", & price); printf("how many containers are you buying? \n"); scanf(" [ select ] ["%d", "%c", "%f", "%lf"] ", & cartons); if ( [ select ] ["cartons / 2", "cartons % 1", "cartons % 2", "cartons % price", "cartons / price", "cartons / total"] [ select ] ["=", "==", "! =", "< =", "> =", "< "] 0) total = [ select ] ["price * cartons", "cartons * price / 2 + price", "(cartons / 2) * price", "cartons / (2.0 * price)", "(cartons / 2.0) * price + price", "((cartons / 2) * price) + price"] ; else total = ((cartons / 2) * price) + price; printf("the total cost is $%.2f.\n", total); return 0; }
Answers: 2
Computers and Technology, 23.06.2019 17:00, kyleemarie2003
Companies that implement and apply an information system effectively can create
Answers: 1
Write assignment statements that perform thefollowing operations with the variables a, b, and c.
History, 18.11.2020 07:50
Mathematics, 18.11.2020 07:50
Social Studies, 18.11.2020 07:50
Biology, 18.11.2020 07:50
English, 18.11.2020 07:50
Geography, 18.11.2020 07:50