Go Back   Forums > Community Chatterbox > Tech Corner > Programming
Memberlist Forum Rules Search Today's Posts Mark Forums Read
Search Forums:
Click here to use Advanced Search

Closed Thread
 
Thread Tools Display Modes
Old 12-04-2005, 09:40 PM   #1
Unknown Hero
Home Sweet Abandonia

 
Join Date: Aug 2004
Location: Split, Croatia
Posts: 1,028
Default

The exams exist out of five categories, the lowest ones for those just starting out with programming or lacking the essential experience, the higher ones for those who're used to it. They're made for any language, not one in specific, and there're usually different ways to solve a question. The solutions we give in the Solutions-thread are only examples. If you're stuck, you can ask questions or discuss the exams here or look for the solutions here. Anyways, here're the questions:

Master:
Q: Make a program that keeps track of several persons. Each person has a first and last name, age, a range of talents, a range of skills, a gender and an intelligence. The program starts out with asking with how many people you want to start out, and allow you to either create random people or have the user create each of these people.

When the program runs, these people'll age and learn new skills (according to their intelligence and talents). When they reach a certain age, they will become interested in the other gender and eventually get together with one person of the other gender (no promiscuity in here). They can have kids then, which first names can't be the same as the names of the parents, while their last names have to be that of their father. Also, siblings or parent and kid/grandparent and grandchild aren't allowed to get together. These kids will gain some characteristics and talents from their parents (but not all from either parent, nor none from the other). When a person reaches a certain age, they won't be able to get any kids anymore.

These people can die in two ways: By a random event (car crash, knife fight, overdose, piano on the head, etc), mostly depending on their skills which ones stand a chance. If they didn't die of such a thing, they should die when they're within a certain age range.

Another thing that's needed in here, is the possibility to check for all the persons that're currently alive, all the persons that've ever been alive, checking each person's stats, and saving/loading a world with people.

------------------------------------------------------------------------------------------------

Q: A bookstore wants to have a utility that helps them catalogue their books. They have diskettes with files containing information per book. Each book contains this as information: Book title, subtitle if it's available, a list of authors (most of the time one, but can be more), number of pages, price - with the option of seeing it without 21% tax, ISDN-number, category it belongs to and whether it's hard-cover or not.

Their utility has to be able to read in the diskette containing this information, along with listing the books alphabetically on main title, on first author (if the name's the same, on second author too. Name there the same, third author, etc), list from cheapest to most expensive, from most expensive to cheapest, per category and just all books in total.

They also should be able to change the information 'bout a book if they see it needed, or add a book to the file.

Create this utility. It's not required to have a fancy interface. Text-based's just fine.
Unknown Hero is offline                         Send a private message to Unknown Hero
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Discussion Of Exams Kon-Tiki Programming 8 30-03-2007 08:27 PM
How Often Do You Cheat On Exams / Tests nace Blah, blah, blah... 40 16-10-2006 08:57 PM
Solution To Exams Kon-Tiki Programming 0 08-08-2005 06:37 PM
Preparation of Exams Unknown Hero Programming 37 03-05-2005 04:18 PM

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump
 


The current time is 09:52 PM (GMT)

 
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.