Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

TurboPascal homework


  • Please log in to reply
3 replies to this topic

#1 surgirl

surgirl

  • Members
  • 76 posts
  • OFFLINE
  •  
  • Local time:08:39 PM

Posted 22 February 2005 - 03:08 PM

Hi,
I just got this assignment for Turbo Pascal:


Posted Image


I don't have a problem with the first parts, as in writing a program which takes in all the info. That I can do. I just don't know how I can reproduce the data into the tables (figure 1 and 2) or how to create the certificate.
You don't have to tell me what exactly I should do (since this is my homework), all I want is to be pointed to the right direction.
Anyone?

BC AdBot (Login to Remove)

 


#2 Bobbi Flekman

Bobbi Flekman

    The computer whisperer


  • Malware Response Team
  • 4,422 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:03:39 AM

Posted 23 February 2005 - 04:40 AM

You could use a file to make data persistent. And with record structures you should be able to walk through them.

It's been about 10 years since I've done Pascal, but I'm quite up to date with Delphi (Object Pascal), but as far as I know it's something like this.

TSummary = record
ID: Integer;
Name: string;
Jazz: Integer;
Classical: Integer;
Reggae: Integer;
Rock: Integer;
Total: Integer;
Average: Integer;
end;

X: file of TSummary;
Posted Image

#3 surgirl

surgirl
  • Topic Starter

  • Members
  • 76 posts
  • OFFLINE
  •  
  • Local time:08:39 PM

Posted 07 March 2005 - 10:37 AM

Thanks for trying :thumbsup:
I found another way of doing it, but I won't bore you with the details.

#4 Bobbi Flekman

Bobbi Flekman

    The computer whisperer


  • Malware Response Team
  • 4,422 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:03:39 AM

Posted 08 March 2005 - 08:30 AM

Thanks for trying  :thumbsup: 
I found another way of doing it, but I won't bore you with the details.

I work with Delphi/C++ and Assembly for a living wo you won't bore me with it. Mabe others, but not me :flowers:
Posted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users