Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
second simple program
#1
All variables should be declared at the start of the program. Variable names should reflect their function. Proper indentation conventions for source code should be followed.


Write a program that reads account information from the user and stores that information in a sequential access file. When the user is finished entering the input, your program should then display the contents of the file using a neat report format as shown below. Use the sample input and output listings to guide you.

Enter account number (1 to 100, -999 to end): ? 27
Enter client's last name: ? Blank
Enter account number (1 to 100, -999 to end): ? 10
Enter client's last name: ? Til
Enter account number (1 to 100, -999 to end): ? 98
Enter client's last name: ? Ort
Enter account number (1 to 100, -999 to end): ? 36
Enter client's last name: ? Fass
Enter account number (1 to 100, -999 to end): ? 52
Enter client's last name: ? Mil
Enter account number (1 to 100, -999 to end): ? -999

Here are the records you entered:

Rec# Account Name
1 27 Blank
2 10 Til
3 98 Ort
4 36 Fass
5 52 Mil

End of Report



Press any key to continue
#2
This looks like homework. Please read the forum rules regarding this.
#3
the problem is i don't even know how to plan the logic
didn't want neone to actually write it out for me, just explain it thoroughly for me on all three counts
#4
See my comments on your other post. Commands I'd look up for this one are similar, except GET and PUT will not be needed.
#5
LOL...
#6
Mad-Nigerian,

Meg has advised you about the homework policy on all three of your similar posts. Plus she has offered you some additional suggestions.

Why do you keep hounding us with your stuff on these three posts?

Keep this up, and you may get banned.

Take a hint. :o
*****
#7
I'm locking the thread due to it being a duplicate/very similar one to http://forum.qbasicnews.com/viewtopic.php?t=9135.


Forum Jump:


Users browsing this thread: 1 Guest(s)