4 or 9 – Coffee Shop. Ask each customer for a member code (one digit and four letters, e.g. "2ABCD";
0 if not a member). If the customer enters 1, this indicates the end of the day. For each customer,
keep asking for the type of drink (Coffee, Tea, Cocoa, Ovaltine, Smoothie), the size (Small or Large) and
whether they want it Hot or Cold. However, if they they have ordered a smoothie do not ask the
temperature since a smoothie is always cold. The basic prices for a small, cold drink are 40,40, 50, 50,
and 60 baht for coffee, tea, cocoa, ovaltine and smoothie respectively. The price for any hot drink is
half the price the cold version (but remember there are no hot smoothies). The price for a large drink
is 20% more than price of the corresponding small drink. Members get a 10% discount on all orders.
When the customer enters the word “NONE” for drink type, print a bill showing each drink with its
type, size and temperature (in the same order as they were selected) and the price of that drink. The
bill should also show the grand total without discount, the discount amount, and the final total
owed by this customer. At the end of the day, print a summary showing the number of customers
served, the total charges for drinks without discount, the total discount and the grand total amount
of money for the day.
4 หรือ 9 - คอฟฟี่ช็อป ขอให้ลูกค้าแต่ละรหัสสมาชิก (หนึ่งหลักและสี่ตัวอักษรเช่น "2ABCD";
0 ถ้าไม่ได้เป็นสมาชิก) หากลูกค้าเข้ามา 1 ซึ่งบ่งชี้ในตอนท้ายของวัน สำหรับลูกค้าแต่ละราย,
ขอให้สำหรับประเภทของเครื่องดื่ม (กาแฟ, ชา, โกโก้, โอวัลติ, สมูทตี้) ขนาด (ขนาดเล็กหรือใหญ่) และ
ว่าพวกเขาต้องการมันร้อนหรือเย็น แต่ถ้าพวกเขาพวกเขาได้รับคำสั่งปั่นไม่ถาม
อุณหภูมิตั้งแต่ปั่นเย็นอยู่เสมอ ราคาพื้นฐานสำหรับขนาดเล็กเครื่องดื่มเย็น 40,40, 50, 50,
และ 60 บาทสำหรับกาแฟ, ชา, โกโก้โอวัลติและปั่นตามลำดับ ราคาสำหรับเครื่องดื่มร้อนใด ๆ ที่เป็น
ครึ่งหนึ่งของราคารุ่นเย็น ( แต่จำไว้ว่าไม่มีสมูทตี้ร้อน) ราคาสำหรับเครื่องดื่มที่มีขนาดใหญ่
มากขึ้น 20% กว่าราคาของเครื่องดื่มเล็ก ๆ ที่สอดคล้องกัน สมาชิกจะได้รับส่วนลด 10% เมื่อสั่งซื้อทั้งหมด.
เมื่อลูกค้าเข้าสู่คำว่า "ไม่มี" สำหรับประเภทเครื่องดื่ม, พิมพ์บิลแสดงแต่ละเครื่องดื่มกับ
ชนิดขนาดและอุณหภูมิ (ในลำดับเดียวกับที่พวกเขาได้รับการคัดเลือก) และราคาของ เครื่องดื่มที่
บิลก็ควรจะแสดงผลรวมทั้งหมดโดยไม่มีส่วนลดจำนวนส่วนลดและรวมสุดท้าย
หนี้ที่ค้างชำระโดยลูกค้ารายนี้ ในตอนท้ายของวันที่พิมพ์สรุปแสดงจำนวนของลูกค้า
เสิร์ฟค่าใช้จ่ายทั้งหมดสำหรับเครื่องดื่มโดยไม่มีส่วนลดส่วนลดรวมและจำนวนที่ยิ่งใหญ่
ของเงินสำหรับวันที่
การแปล กรุณารอสักครู่..