If the balance becomes negative the purchase of food items


Design a class that keeps track of a student's food purchases at the campus cafeteria. A meal card is assigned to an individual student. When a meal card is first issued, the balance is set to the number of points. If the student does not specify the number of points, then the initial balance is set to 100 points. Points assigned to each food item are a whole number. A student can purchase additional points at any time during a semester. Every time food items are bought, points are deducted from the balance. If the balance becomes negative, the purchase of food items is not allowed. There is obviously more than one way to implement theMealCard class.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: If the balance becomes negative the purchase of food items
Reference No:- TGS01669946

Expected delivery within 24 Hours