codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Anyone Can Help Solving C++ Problems  mysterio at 08:19 on Sunday, August 28, 2005
 

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..

  Re: Anyone Can Help Solving C++ Problems  vector at 17:33 on Monday, August 29, 2005
 

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

  Re: Anyone Can Help Solving C++ Problems  mysterio at 19:12 on Sunday, September 11, 2005
 

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;
}

  Re: Anyone Can Help Solving C++ Problems  vector at 19:41 on Sunday, September 11, 2005
 

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

  Re: Anyone Can Help Solving C++ Problems  mysterio at 00:08 on Monday, September 12, 2005
 

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...

  Re: Anyone Can Help Solving C++ Problems  mysterio at 17:15 on Tuesday, September 13, 2005
 

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;
}










CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Why Use Method?
•  Re: Help with filesystem object & displaying in a table
•  Re: Genetic Algorithm Help
•  Re: How to make an investment calculator
•  Re: line breaks in GUI
•  Re: Graph in Gui...
•  Graph in Gui...
•  Re: Counting zero values in a string
•  Re: Help!


Recent Articles
Multiple submit buttons with form validation
Understanding Hibernate ORM for Java/J2EE
HTTP screen-scraping and caching
a javascript calculator
A simple way to JTable
Java Native Interface (JNI)
Parsing Dynamic Layouts
MagicGrid
Caching With ASP.Net
Creating CSS Buttons


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2005