Question: is a program that scans in dollar values of itens purchased from the keyboard unt oliar from the keyboard errors. Fix them. until the user

 is a program that scans in dollar values of itens purchased

is a program that scans in dollar values of itens purchased from the keyboard unt oliar from the keyboard errors. Fix them. until the user types in the sentinel value (-1). The program computes and displays the sum value) and the number of items. The program has approximately 12 define SNTL-1 void setup float value: int items: float total; // cost of each item 1/ number of items purchased /I total cost of all items ile (valueSNT total value; items++ Serial.print ("Input dollar value of item (or "): Serial.print("-1") Serial.println(" to quit)> ") while (Serial.available )-0) value Serial.parseFloat ): Serial.printin (total): /I wait // store serial.print ("You spent s "), Serial.print ("value"); Serial.print(" on ") Serial.println(items +1): void loop)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!