User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Pascal and Delphi section within the Software Development category of DaniWeb, a massive community of 391,709 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,403 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Pascal and Delphi advertiser:

Turbo pascal homework

Join Date: Jan 2005
Posts: 43
Reputation: Siersan is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 2
Siersan's Avatar
Siersan Siersan is offline Offline
Speaker of Truth

Re: Turbo pascal homework

  #2  
Feb 22nd, 2005
How you print the table depends on how you set up your table of records. If it's actually an array of records then you're looking at a loop like this:
writeln('Summary of Student Course Scores:')
writeln('ID  NAME  CLASSICAL  REGGAE  ROCK  TOTAL  AVERAGE');
for i := 1 to N do
  writeln(s[i].id, s[i].name, s[i].classical, s[i].rock, s[i].total, s[i].average);
I'll let you work out the formatting issues as that tends to be more trial and error than anything.

I would imagine that the certificate itself is something simple along these lines:
writeln('*GOLD*\nCERTIFICATE OF OUTSTANDING\nACHIEVEMENT');
writeln('\n\n', highest.name, '\n\nIn Music Studies\n');
Once again, the formatting itself so that everything is centered I will leave to you.
Reply With Quote  
All times are GMT -4. The time now is 3:03 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC