Answer to Question #134650 in C++ for Kartik Kabra

Question #134650
Royal Orchid is a florist. They want to be alerted when stock of a flower goes below a particular level.
The flowers are identified using name, price per kg and stock available (in kgs).
Write a C++ program to implement the above requirement.
class name: Flower
Data member(private): flower_name,price_per_kg,stock_available.
Member functions(public): Flower()-> Create and initialize all instance variables.
validate_flower()-> Return true, if flower name is valid. Else, return false(Refer table for valid flower names) .
validate_stock(required_quantity)-> Accept the quantity required. Return true, if stock is available Else return false.
sell_flower(required_quantity))-> Accept the quantity required. Validate flower name and stock. If both are valid, update stock available based on the quantity required.
check_level()-> Check if available stock is below the order level. If so, return true. Else, return false (Refer table for order level of each flower)
1
Expert's answer
2020-09-23T00:08:40-0400
Dear Kartik Kabra, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS