It is a trading software that asks for the articles like Refrigerator ,washing machine and you want to purchase and in return gives you a bill including discount with present date.
Here, variables and a function is declared which will return the bill amount and for time and date a pointer is declared that will take the present day,month,year.
This is a simple if else condition and a function shop() is defined over here that returns the total amount of the bill with discount.
In the above two images the bill amount is returned for respective articles.In this goto statements are used that helps the program to jump from one section of code to other.
Submitted by Muskan Chaturvedi (Muskan01)
Download packets of source code on Coders Packet
Comments