Jump to content

Help me write a program please

- - - - -

  • Please log in to reply
6 replies to this topic

#1
mougi

mougi

    Newbie

  • Members
  • Pip
  • 2 posts
I am in a business class. We are required to host an event that will be able to make money from patrons. We chose a car show. We are supposed to record the names of the patrons. I thought instead of writing it that a program can be used. Can someone please help me to do so. A computer science teacher from our school managed to give us guidelines, although he couldn't help us write the program itself. I think he said that the language pascal, if that is the correct name, should be the one to be used.

(1) Develop a program that records the names of patrons (at the door) and their e-mail addresses; data is terminated when “END” is entered for the name. Ensure your input does not contain numbers when recording a patron’s name.
(2) After recording the names, the program must allow the user to search for a patron (by name). The user is allowed to use the search as many times as he/she likes, until the word “END” is entered for a search query.
During the search, if the patron is found, the patron’s name and e-mail address is displayed. If patrons have identical names, all records (patron’s name and e-mail address) are displayed. If the patron is not found, an appropriate message is displayed (The message should read “I am sorry, but the name of the patron you entered was not found. Please try again”
(3) Lastly, after terminating the search, the program must print to the screen all the records stored. After the user has viewed this data, prompt the user to terminate the data.
Thanks in advance, I barely know anything about programming

#2
gregwarner

gregwarner

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 853 posts
  • Location:Arkansas

mougi said:

I think he said that the language pascal, if that is the correct name, should be the one to be used.
The truth is, for a program such as this, just about any language may be used, each nearly equally as effective as the others. There's nothing special about Pascal that would require its use in your particular application.

mougi said:

data is terminated when “END” is entered for the name.
Sounds like he expects you to write this program for the command line. You could just as easily design a simple GUI front-end for a database, and it might be more user friendly too.

mougi said:

(2) After recording the names, the program must allow the user to search for a patron (by name). The user is allowed to use the search as many times as he/she likes, until the word “END” is entered for a search query.
Again, if you use a database form in a GUI, the semantics regarding search commands and end commands becomes irrelevant.

This kind of application could even be easily built with a number of visual database building tools out there. You could even use Microsoft Access if you wished, since it's such a simple project and the requirements aren't complex at all. Since you're coming from a non-programming background, Access might be your best choice.
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.

– Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid


#3
logicPwn

logicPwn

    Learning Programmer

  • Members
  • PipPipPip
  • 91 posts
When it comes to school though they do expect you to follow the guidelines. If you don't have to use pascal I can throw together a Console or GUI app in C#. Then again how will you learn?

#4
gregwarner

gregwarner

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 853 posts
  • Location:Arkansas

logicPwn said:

When it comes to school though they do expect you to follow the guidelines. If you don't have to use pascal I can throw together a Console or GUI app in C#. Then again how will you learn?

It sounds to me based on the original poster's wording that it's not the software itself which is his assignment, but rather the event he's putting on. His choice of using a computer program for registration in lieu of paper forms is simply an ancillary one. The computer science professor was probably giving guidelines as he would see the project implemented, if it were his assignment. I'm guessing in the business college, they don't care how it's implemented, as long as it works.
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.

– Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid


#5
logicPwn

logicPwn

    Learning Programmer

  • Members
  • PipPipPip
  • 91 posts
Could be true. Nice logic :)

#6
Soryy708

Soryy708

    Learning Programmer

  • Banned
  • PipPipPip
  • 61 posts
Hi.

Contact me (through email), and I'll write it.

Update: Done. Attached executable!

Attached Files


Edited by Soryy708, 12 February 2012 - 12:24 PM.


#7
mougi

mougi

    Newbie

  • Members
  • Pip
  • 2 posts
Hey thanks, I appreciate it




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users