I want it in C Language not C++
----------------------------------------------------
The beverages are:
Pepsi , Sprite, Shani, Fanta
--------------------------------------------------
[The next example doesn’t show how the program handles the error caused by the user so
as mentioned above be creative in handling the errors caused by the user]
-------------------------------------------------------------
Example out put of the program:
Please enter how much money you have in KD:
.2
Please choose your beverage:
For Pepsi press 1
For Sprite press 2
For Shani press 3
For Fanta press 4
1
You have chosen Pepsi
You have 0.100 KD left in your account
Would you like to buy another beverage?
Yes =Press 1, No =press 2
1
Please choose your beverage:
For Pepsi press 1
For Sprite press 2
For Shani press 3
For Fanta press 4
2
You have chosen Sprite
You have 0.000 KD left in your account
You do no have enough money to buy a single beverage bottle
GOOD BYE
----------------------------------------------------
The beverages are:
Pepsi , Sprite, Shani, Fanta
--------------------------------------------------
[The next example doesn’t show how the program handles the error caused by the user so
as mentioned above be creative in handling the errors caused by the user]
-------------------------------------------------------------
Example out put of the program:
Please enter how much money you have in KD:
.2
Please choose your beverage:
For Pepsi press 1
For Sprite press 2
For Shani press 3
For Fanta press 4
1
You have chosen Pepsi
You have 0.100 KD left in your account
Would you like to buy another beverage?
Yes =Press 1, No =press 2
1
Please choose your beverage:
For Pepsi press 1
For Sprite press 2
For Shani press 3
For Fanta press 4
2
You have chosen Sprite
You have 0.000 KD left in your account
You do no have enough money to buy a single beverage bottle
GOOD BYE
Comment