CT243 lab7
http://geminga.it.nuigalway.ie/~gettrick/courses/CT243/labs/l7.html
-
For this lab you must submit
-
Handwritten development notes, including statement of the problem, analysis of the problem, algorithm design (which may include flow charts).
-
A printout of form, image and code of your program, and any numerical answers requested.
-
The above material should be given to David or left in the cardboard box marked CT243 in the mail room (room IT415) on the 4th floor of the IT Building
before
the deadline of 5pm
Monday 17th March 2008. You will lose 20% for each day
(or part of day) the lab is late.
Open up VB .NET (visual studio) and select under New Project
"Console Application"
- Write a Console Application which reads command line parameters, and
writes them back to the screen in reverse order. So if my input
command line parameters are "bionn gach tosu lag", the program should
output (use
Console.WriteLine())
"lag tosu gach bionn".
-
Write a Console Application which reads command line parameters, and
writes them back letter by letter to the screen in reverse order.
So if my input
command line parameters are "bionn gach tosu lag", the program should
output (use
Console.WriteLine())
"gal usot hcag nnoib".
-
Write a Console Application which takes in two numbers as
command line parameters (say x and y) and calculates
xy.
You may re-use some of the code you wrote in a previous lab
to calculate
pow(x,y)
.
If the user does not type in exactly two (2) command-line parameters
(e.g. if they only type in one, or they type in 3 or more), then the
program should print an error message, and a hint to the user that they
must give 2 command-line parameters, and then the program should terminate.
©
NUI, Galway