السلام عليكــم ورحمـة الله وبركاتــه
اريد فكره هذا البرنامج
Write a C++ program for a supermarket. The program should contain for each product: its name, its code, its price, and its type. The type may be one of the following types: food, electronic device, and others. The program must ask the user to input product's name, price, and type. And it must generate for each product a random code. The supermarket wants to discount the price of products which its type is electronic device and its price is more than 200 SR with 15%. If the entered product satisfies the conditions of discounting, the program must discount, other wise it must display the following message : " product does not satisfy discounting condition. Your program must display the following menu:
1. Insert a new data for a product
2. Check for discounting
3. Display information of a product
4. Exit
Notes:
· Use a class
· Random Code must contain six digits.
· Return value of a function that check for discounting is Boolean.