Basic Programming Task
Basic Programming Task
Lab Assignment 1
My name is TurboByte (nick actually). My real name is difficult to pronounce so leave it. Here is my
Display Pic
(Hmm not photogenic so leave it too). Born and raised somewhere in Pakistan.
And after many years I became the most expensive developer of my company. What happened in between
well well talk someday later.
Cool nah...
We will have more fun on the way. Let check the emails for todays tasks. By the way my boss is too
grumpy :P
Ok this informal email is from the CSA (Chief Software Architect) about task.
It reads:
This software is confidential and required by one of military Station. Its not the actual thing we
are developing, its just a mockup of which type of things we will do in this project on full scale. Please
check the attached files for complete info. These are informal files typed by me so try not to be surprised
if you are unable to find your favorite jargons. And also the info is purely fictional but based on the actual
requirements.
Regards
Hmm ok let check whats in the files.
g. As we have 500 soldiers (10 sections with 50 soldiers each). So our Tally of
Soldiers in all Check Posts and Sections should sum up to 500.
7) We should be able to view the following info:
a. Status of Ammunition: A table where we could see the quantity of
Ammunition in each box.
b. Airplane Status: A table where we could see which plane is in air and which is
on ground.
c. Status of Check Post: Show the number of soldiers in each check posts.
d. Status of Sections: Show the number of soldiers in each Sections.
e. Search Low ammunition: System should ask the type of ammo and the
quantity now it should search and display all the boxes from the give type
which are less than the given quantity. E.g type: 2 quantity: 100. Now output
all boxes from type 2 which are having quantity less than 100.
8) We have three types of users 1) Dispatcher: He can only encrypt the message and
view the encrypted one. 2) Receiver: He can only get the Decrypted message and
enter that in the system. 3) Admin: He can view all the above reports.
Hmm
Ok
that
was
lot
of
info
to
digest
lets
have
cup
of
tea.
So
the
flow
of
program
should
be
like:
Login by using
the username
and password
Dispatcher:
Enter the
message
Reciever: Enter
the Encrypted
Message
Firstly Program should ask the username and password. Usernames are given above i.e. Dispatcher,
receiver and admin. Upon login users should see only those options for which they are authorized like the
dispatcher should only be able to enter the message and see the encrypted string. Receiver could only
enter the encrypted message and see the results (refer to point 6 in Major Dauds file). Admin Should be
able to view all the require reports (refer to point 7 in Major Dauds File).
The actual system would be on different Computers communicating through secure network. For now to
simulate the program do this:
a) Login from the Dispatcher account Enter the message and note down the encrypted string.
b) Login from the Reciver account and add the encrypted message into the system.
c) Login from the Admin account to see the reports.
Finally over with is brief. Hmm wait there is another email from Senior White Box tester.
It reads :
Please make sure that your code is according to the following guidelines:
http://geosoft.no/development/cppstyle.html
Code Should be properly Indented and well Commented.
Regards
Now we are over with this brief and honestly that was bit hard to digest all this. Let have a
hot pizza :