Help me the following C++ question:
Write a program to help a local bookshop automate its billing system. The program should do the following:
(a)Let the user enter the ISBN, the system will trace the title and price of the book automatically. The system should check whether the book is in the stock or not. If it is not, please let the user to enter again.
(b)Allow a customer to buy more than one item from the bookshop.
(c)Calculate and print the bill. The billing amount should include 5% tax.
Sample Output:
Welcome to Billy’BookShop
Please enter the ISBN: 0128
The title is C++ How to Program
The Price is RM 108.90
Do you wish to continue? y/n
y
Please enter the ISBN: 0992
The title is Introduction to Java Programming
The Price is RM 89.60
Do you wish to continue? y/n
n
Your Receipt:
0128 RM 108.90
0992 RM 89.60
Total RM 198.50
Tax RM 9.92
Total RM 208.42
THANK YOU!!!
p/s: I would thanks for who solve this problems..i appreciate ur help..
Below...r some coding i hv done..not completed
hope some 1 will help me complete
Source Code<not Complete>
Code:
#include <iostream.h>
#include<stdlib.h>
struct bookshop
{
int ISDN;
char title;
int price;
}book[];
void printbook (bookshop book);
int main()
{
float amount, rate;
int year;
cout <<"Please enter the amount: ";
cin >> amount;
cout <<"Please enter the number of years to invest: ";
cin >> year;
cout <<"Please enter the interest rate per year: ";
cin >> rate;
for (int y=0;y<year;y++)
amount = amount + (amount*rate/100);
cout <<"The amount you have "<<year<< "year is:"
<< amount<<endl;
return 0;
}