473,395 Members | 1,442 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Menus for a shoes program

Hey ppl....in currently studing c programming and finding it hard, i 've been asked to create a program for a shoe shop and i dont even know where to start.

fisrt i thought i could do the main menu but i have no clue how to go about it

i want my menu to be like this

add shoes
edit shoes
display shoes
search shoe
and exit program

i would like my program to display those 5 functions

and then i would like to get those function working, like i would like to be able to add shoes to the program and so on

the type of data i would like to add is

name
stlye
department
colour
size
price

please can u help me to do this, i would be very greatfull and it would help me to understanding.
Mar 5 '07 #1
11 2669
sicarie
4,677 Expert Mod 4TB
Hey ppl....in currently studing c programming and finding it hard, i 've been asked to create a program for a shoe shop and i dont even know where to start.

fisrt i thought i could do the main menu but i have no clue how to go about it

i want my menu to be like this

add shoes
edit shoes
display shoes
search shoe
and exit program

i would like my program to display those 5 functions

and then i would like to get those function working, like i would like to be able to add shoes to the program and so on

the type of data i would like to add is

name
stlye
department
colour
size
price

please can u help me to do this, i would be very greatfull and it would help me to understanding.
I would recommend on getting core functionality working first. You need to develop an algorithm - a list of simple steps that you could do with or without a computer to solve your problem.

Such as:

Display menu
get menu choice
if (menu choice == 1)
then....
if (menu choice == 2)
then....

and so on.
Mar 5 '07 #2
willakawill
1,646 1GB
I can promise you this. There is no shame or loss of marks in going to your teacher and asking the same question. That is what a very smart programmer would do. Your task is not to fool your teacher into thinking you are an expert programmer. You gain nothing from that. Zero.
Mar 5 '07 #3
RedSon
5,000 Expert 4TB
Instead of jumping right into writing the code as suggested above, why dont you spend some time designing what your program is going to look like. Which modules are going to have what responsibilities? Can you picture what a real life version of your program would look like. Try creating a program that models the real phenomenon you are trying to simulate.
Mar 5 '07 #4
I would recommend on getting core functionality working first. You need to develop an algorithm - a list of simple steps that you could do with or without a computer to solve your problem.
That's the best bet. Psuedocode (an english translation of computer language) is the first step to programming any program.

Write it out on paper first. Jumping into the problem just by sitting down and expecting the answers to come to you at your desk is foolish and most of the time non-progressive.

----------------
Shoe Store
----------------
What will the program do? You already know.

What options are offered to the customer? You know that too.

Then construct certain conditions to be met, and break it down into parts.
----------------

You should not need any more knowledge than the use of for...loops, cin, cout, if/else. Just brainstorm, then attack.

Other than that, good luck!
Mar 5 '07 #5
RedSon
5,000 Expert 4TB
I like that..."Brainstorm, then attack!!" I'm going to use that line now!
Mar 6 '07 #6
Yeah i alrealy know what moduals i will need and how my program would look like but really need a little help with doing it
The modules which i will have are

Add
Edit
Search
Delete
Print
I would like to add, edit , search ect the shoe which are being inputted.
Mar 6 '07 #7
willakawill
1,646 1GB
Talk to your professor. It is vital that you do so.
Mar 6 '07 #8
Mack
11
Its easy buddy.

design switch case statement make do while loop until option enter is none of above exit loop.
now getting back to do while loop once u get in 1..add
2..delete
3..edit

take 6as exit
return(0);
now if u get in 1 design with case statement and write appropriate function for each.

its not that diificult.

Good luck.

Regards,
Mack.
Mar 7 '07 #9
Sounds like you need to be studying alot harder rather than searching for easy solutions on the net ....
Mar 7 '07 #10
Thansks for you reply, i'm working on the program i and done quite a bit, but got stuck on validating the price in C.
How would i validate a price, so the user can inputs the amount it like £25.00 for example.
Mar 8 '07 #11
sicarie
4,677 Expert Mod 4TB
Thansks for you reply, i'm working on the program i and done quite a bit, but got stuck on validating the price in C.
How would i validate a price, so the user can inputs the amount it like £25.00 for example.
Use the conditional operators in a while statement (to keep the user from putting in a bad value and moving on with the program, crashing it somewhere down the line), and a sentinel boolean is_done as the while condition.
Mar 8 '07 #12

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Gufus | last post by:
Hi Group... I'm using this /old/ method of pulldown menus, is there another (better) way of doing it? Something that looks better. <script language="JavaScript"> function fetch(){ var...
1
by: Doug Bell | last post by:
Hi, If I modify my Registry adding a new key HKEY_CLASSES_ROOT\*\shell\Use My App\command with a (Default) Value of C:\Program Files\Doug\DotNetApps\MyApp.exe "%1" then right clicking on files in...
6
by: Richard Walters | last post by:
Guys, Is there a way to change the icons for customised menus within access. The icons within Access itself are pretty plain and boring and I would like to spruce my application up a little with...
5
by: Steve Le Monnier | last post by:
I've just noticed that the menu items available in Visual Studio 2005 for the Debug and Build menus differ significantly when compared to the menu items in Visual Studio 2003. On my C#...
1
by: Akinyemi | last post by:
I am currently working on a Payroll Program. I want the Program to display user helps or hints for sub-menus on a Status bar or label. I have been able to write such codes for Text boxes. I also want...
2
by: Tom Costanza | last post by:
For the life of me, I can't seem to merge main menu items from child to parent with MDI forms. I can merge sub-menus, but not main menu items. So I have a parent form with: File Windows Help...
1
by: chris237 | last post by:
The following program allows a user to select a nursery rhyme from a menu. My task is to incorporate sub-menus (nursery rhyme and fairy tales) into the program. I've tried to do this but with no...
1
by: dgb09 | last post by:
Hi guys, Im trying to write a program in C++ using windows with an interface that is similar to either media centre or sony's XMB where there are 3 layers of menus, with the lower 2 layers driven...
0
by: hong.niu4 | last post by:
please look our website ,have more mode shoes clothing hat cap bags ! Air Max Air Max 87 shoes www.shoestrade.biz Air Max 90 shoes www.shoestrade.biz Air Max 91 shoes www.shoestrade.biz Air...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.