|
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..
|
|
|
Hey we can't write whole code for you..u have to do your assignments yourself
if you have any specific problem regarding your code
you can ask for help
|
|
|
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>
#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;
}
|
|
|
hey...this is a basic structures problem...u need to study the chapter of structures....trust me it is very simple code....just read the chapter you'll figure out yourself
|
|
|
pls help me some at least...half also enough...
<Added>
pls help me some at least...half also enough...
if i know then..y i post here...
<Added>
pls help me some at least...half also enough...
if i know then..y i post here...
|
|
|
help me add n modify if coding wrong as the question output..
pls pls pls..
thanks a million...
here the coding
#include <iostream>
#include <fstream>
#include <iomanip>
using namespace std;
int main()
{
double ISDN ;
char title;
float price;
int continues;
char ans;
cout<<"---Welcome To Billy's Bookshop---\n";
cout<<"Please enter the ISDN: ";
cin>>ISDN;
if (ISDN==12)
{
cout<<"The Title is C++ How to Program"<<endl<<"The Price is RM 108.90"<<endl;
}
if (ISDN==98)
{
cout<<"The Title is Introduction to Java Programming"<<endl<<"The Price is RM 89.60"<<endl;
}
else
{
cout<<"Not Valid"<<endl;
}
do
{
cout<< "Do you want to continue (Y/N)?\n";
cout<< "You must type a 'Y' or an 'N'.\n";
cin >> ans;
}
while((ans !='Y')&&(ans !='N')&&(ans !='y')&&(ans !='n'));
return 0;
}
|
|
|