need a hand please

Hello I have a homework to write 5 programs,
so I wrote them but wasn't able to run any of them :-SS could you please tell me why?


1) create a program called mainmenur.cpp. It should display the following screen:

Serendipity Booksellers
main menu
1. Cashier Module
2. Inventory Database Module
3. Report Module
4. Exit
Enter Your Choice


// Main Menu Screen
#include <iostream>
using namespace std;

int main()
{
cout << "Serendipity Booksellers";
cout << "main menu";
cout << "1. Cashier Module";
cout << "2. Inventory Database Module";
cout << "3. Report Module";
cout << "4. Exit" << endl;
cout << "Enter Your Choice:";
Cin >> "Enter Your Choice:"
return 0;
}

________________________

2) create a program called cashier.cpp. It should display the following screen:
Serendipity Booksellers(centered)

Date:

Qty ISBN Title Price Total
______________________________________________


Subtotal
Tax
Total

Thank you for shopping at Serendipity1

for this program I didn't know what to do .. any help?


_____________________

3) create a program called invmenue.cpp. It should display the following screen:
Serendipity Booksellers
Inventory Database
1. Look Up a Book
2. Add a Book
3. Edit a Book's Record
4. Delete a Book
5. Return to the main Menu

Enter your choice


// invmenue
#include <iostream>
using namespace std;

int main()
{
cout << "Serendipity Booksellers";
cout << "Inventory Database";
cout << "1. Look Up a Book ";
cout << "2. Add a Book";
cout << "3. Edit a Book's Record";
cout << "4. Delete a Book" ;
cout << "5. Return to the main Menu" ;
cout << "Enter Your Choice:";
Cin >> "Enter Your Choice:"
return 0;
}

_________________________

4) create a program called bookifo.cpp. It should be display the following screen:
Serendipity Booksellers
Book information

ISBN:
Title:
Author:
Publisher:
Date Added:
Quantity-On-Hand:
Wholesale Cost:
Retail Price:

// Main Menu Screen
#include <iostream>
using namespace std;

int main()
{
cout << "Serendipity Booksellers";
cout << "Book information";
cout << "ISBN:";
cout << "Title:";
cout << "Author:";
cout << "Publisher:";
cout << "Date Added:";
cout << "Quantity-On-Hand:";
cout << "Wholesale Cost:";
cout << "Retail Price::";
return 0;
}

_______________
5) create a program called reports.cpp It should display the following screen:

Serendipity Booksellers
Reports
1. Inventory Listing
2. Inventory Wholeasale Value
3. Inventory Retail Value
4. Listing by Qantatity
5. Listing by cost
6. Listing by Age
7. Return to the Main Menu

Enter Your Choice:

// Main Menu Screen
#include <iostream>
using namespace std;

int main()
{
cout << "Serendipity Booksellers";
cout << "Reports";

cout << "1. Inventory Listing";
cout << "2. Inventory Wholeasale Value";
cout << "3. Inventory Retail Value";
cout << "4. Listing by Qantatity ";
cout << "5. Listing by cost";
cout << "6. Listing by Age";
cout << "7. Return to the Main Menu";

cout << "Enter Your Choice:";
Cin >> "Enter Your Choice:"
return 0;
}

_______________

could you please keep it simple for me .. this is my first class in programing "Thank you"
try to use switch case.

Good luck!
Welcome to the forum of insane geeks who like this language and have no girlfriends! :D

I noticed you are using Cin, an object that does not exist. Did you mean cin?

Also, cin requires that you have a variable at hand to store your information in, like a string. #include <string.h> to use strings.

Usage of cin: cin >> the_name_of_the_variable_to_store_your_data_in;

-Albatross
hahahhahaha Albatross :-PP


oohh ok my mistake, so I will change it to small letter, but still I am not being able to run the programs. when I am pressing F5 nothing is happeening and all of my cout's are not appering on the screen... even when I am debuging them the same thing is happening and getting ( press any key to contunie)

so what is the problem??

I haven't used Visual Studio in as long as I haven't used Windows (years). However, the fixed code for all three programs that you gave us the code for should work (it works perfectly on my *nix system).

Anyway, do you know how you can force VS to build without running the programs? If so, then do it...

-Albatross
mmm, how do I force it "if u remember" ?? thanx for the help though ;-))
No... check the menus?

-Albatross
@nano90 "Run without debugging"... It's a big fat button just below the usual compile button..
Last edited on
Hello, im also beginner but try sth like this.Btw if u use cin u need install variable 1st like int choice;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include <iostream>
using namespace std;

int main()
{

int choice;

cout << "Serendipity Booksellers\n";
cout << "main menu\n";
cout << "1. Cashier Module\n";
cout << "2. Inventory Database Module\n";
cout << "3. Report Module\n";
cout << "4. Exit\n";
cout << "Enter Your Choice: ";

cin >> choice;

switch(choice){
    case 1:
    cout << "ur text";//here type text or whatever else function u have to use.
    break;
    case 2:
    cout << "ur text";
    break;
    case 3:
    cout << "ur text";
    break;
    case 4:
    return 0;
    break;
    default://it's used when any user input dosen't match, the program will run default code
    cout << "Unable choice";
}
return 0;
}

Last edited on
ahhh okk thanks u guyyyzz :-)))

for program # 2 how do I insert a line b/c it is supposed to look as a chart
Topic archived. No new replies allowed.