RECHERCHER :
COMMUNAUTE MP
Identifiez vous ...
Devenir Membre
J'ai oublié mon MDP
DOMAINE MP
Bavardages
Langages Généraux
Langages Web
Langages DotNet
Autres langages
Dev. Jeux Video
Sécurité
Sys. Exploitation
Graphismes
Logiciels
Réseaux
Bases de données
Méthodologies
Emplois High-tech
Aide juridique
Articles juridiques
FORUM
Index des forums
Ajouter un sujet
Rechercher sujet
Contact Responsable
Devenir modérateur
CHAT MP IRC
Votre pseudo ...
Serv: irc.irc-land.org
Chan: #MoteurProg
PARTICIPER
Plus de 3500 emplois.
Rechercher un job
Déposez votre CV
Emplois High-tech

Visiteur MP

 Anyone Can Help Solving C++ Problems?

Forum : IDE C++ - BORLAND C++
Sous Catégorie : Borland C++
Type du sujet : Sujet Normale
FAQ : FAQ IDE C++ - BORLAND C++

SUIVI DES SUJETS PAR MAIL

SUIVI PAR MAIL INACTIF

RESOLUTION DU SUJET SUJET NON RESOLU
BLOQUAGE DU SUJET SUJET ACTIF
APPARTENANCE A LA FAQ N'APPARTIENT PAS A LA FAQ


PAGE : [1]

POSTER UN NOUVEAU SUJET REPONDRE A CE SUJET

FORUM IDE C++ - BORLAND C++

PREMIERE PAGE

PAGE PRECEDENTE

Page précedente

Page suivante

PAGE SUIVANTE

DERNIERE PAGE
mysterio
Nouveau membre
Inscrit : 28/08/2005
Messages : 10
Message
#73702
Posté le 28/08/05 à 09:24
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..

HAUT DE PAGE

PROFIL MEMBRE LUI ECRIRE 

Publicité
Inscrit : X
Messages : X
Message
#Aucun

HAUT DE PAGE

  

Raish
Membre du club
Avatar de Raish
Inscrit : 29/11/2004
Messages : 536
Message
#73719
Posté le 28/08/05 à 13:39
Hi,
sorry but this is a french programming forum, so only a few people might help you. And my english is to bad to help you.
Bye.

PS: me suis dépassé, y'a au moins quatre fautes! C'est mieux qu'avant je trouve!

HAUT DE PAGE

PROFIL MEMBRE LUI ECRIRE 

Alp
Superviseur :
- Système d'ex.
- Méthodologie.
- C & C++
Modérateur :
- Bavardages
Chef de projet(s) :
- My SDL Lib

Avatar de Alp
Inscrit : 24/06/2004
Messages : 2547
Message
#73729
Posté le 28/08/05 à 15:17
Hi,
We can't program all your c++ utility, but we can probably help you solving problems encountered during the programming of your program...
So, what problems do you have while programming your utility?
Alp
__________________________
Be C++
Mon Blog (C++, Intelligence Artificielle, Prolog)

HAUT DE PAGE

PROFIL MEMBRE LUI ECRIRE 

eVias
Membre du club
Avatar de eVias
Inscrit : 25/01/2004
Messages : 1008
Message
#73738
Posté le 28/08/05 à 16:05
Hi,
we are not here to solve your homework, you have to do it from yourself if you want to learn something from it... The only thing that we can do is to help you if you have some problems to program this utility.

In which language do you program it ? C or C++ ?

If you use the C i would advice you to use some structures to order your code, you should do a struct for the books, which contains the informations like the price and then you just have to program some function to calculate the bill, etc.

If you do it with C++ you should use some classes, for the books because it is very helpful, you can have some functions for every book that is bought :)

Good Luck to program it and ask if you have some problems :)

Peace Smiley
__________________________
Grégory S.

eVias Web & Software Solutions.

Développement Web et logiciel en tout genre et Open Source.

FOSDEM 2008. Venez -y nombreux !

HAUT DE PAGE

PROFIL MEMBRE LUI ECRIRE 

mysterio
Nouveau membre
Inscrit : 28/08/2005
Messages : 10
Message
#73822
Posté le 29/08/05 à 12:16
raish
Hi, sorry but this is a french programming forum, so only a few people might help you. And my english is to bad to help you. Bye. PS: me suis dépassé, y'a au moins quatre fautes! C'est mieux qu'avant je trouve!

reply:
Smiley i know is france..i just droping by see who know to solve the problems here...ur gnlish not bad wat..the way i see u wrote the english...
RAish...can help me solve the problem using C++??

HAUT DE PAGE

PROFIL MEMBRE LUI ECRIRE 

Woufeil
Membre du club
Chef de projet(s) :
- AdminServ

Avatar de Woufeil
Inscrit : 21/09/2004
Messages : 826
Message
#73827
Posté le 29/08/05 à 12:47
Hi,

Do you have to connect to a database wich contains all ISBN, or a simple class like :

class book { public: int ISBN; int number_in_stock; float price; };

will be sufficiant ?
Good luck !

PS : raish : on fait un concours de celui qui fait le plus de fautes ? Smiley
__________________________
[col]Woufeil[/col]
Image
Image et respectez la charte.

HAUT DE PAGE

PROFIL MEMBRE LUI ECRIRE 

mysterio
Nouveau membre
Inscrit : 28/08/2005
Messages : 10
Message
#75028
Posté le 11/09/05 à 20:06
Help...i'm stuck...

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

HAUT DE PAGE

PROFIL MEMBRE LUI ECRIRE 

Raish
Membre du club
Avatar de Raish
Inscrit : 29/11/2004
Messages : 536
Message
#75152
Posté le 13/09/05 à 07:37
Hi,
first, thank you for my english.
But, like the other programmers who are here, I can't do your homework, I only can help you in specific problems.

If you need help to type your code, such as your class because you have errors in compilation, we will be able to help you Smiley .

Bye.

HAUT DE PAGE

PROFIL MEMBRE LUI ECRIRE 

mysterio
Nouveau membre
Inscrit : 28/08/2005
Messages : 10
Message
#75162
Posté le 13/09/05 à 10:35
1. 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.
2. Allow a customer to buy more than one item from the bookshop.
3. 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!!!



can anyone complete this??
i have do some of the coding....

#include <iostream>
#include <fstream>
#include <iomanip>

using namespace std;

int main()
{
double ISDN ;
char title;
float price;

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

help help help..... Smiley Smiley Smiley

HAUT DE PAGE

PROFIL MEMBRE LUI ECRIRE 
POSTER UN NOUVEAU SUJET REPONDRE A CE SUJET

PREMIERE PAGE

PAGE PRECEDENTE Page précédente

Page suivante

PAGE SUIVANTE DERNIERE PAGE

FORUM IDE C++ - BORLAND C++



    PAGE : [1]



.: Site Web développé par Julien Pichot et l'équipe MPWG avec www.evolvia-web.com :.