* help!
@ 2000-03-27 5:00 Lutfor Rahman
2000-03-26 5:00 ` help! Ward van Wanrooij
0 siblings, 1 reply; 5+ messages in thread
From: Lutfor Rahman @ 2000-03-27 5:00 UTC (permalink / raw)
hi there,
I need help to solve the following problem:
1
________________________________________________________________________
Write an Alpha assembly language program which behaves as below:
1. Prompts the user for an input string with a message "Please enter a
string:". It should be
assumed that the string contains at least one and at most fifteen
characters.
2. After accepting an input string from the user, prints out "The output
string is :". Then,
the program should behave as below depending on the input string :
If the input string contains exactly one letter "A", the program converts
all the letters in
the string to capital case letters and prints out the converted string.
In all other cases, the program prints out the characters with even number
index in the
string in reverse order. It should be assumed that the first character in
the string has
index 0, the second character in the string has index 1, the third character
in the string
has index 2 and so on. Therefore, for string "a-z", the index of "a" is 0,
the index of "-"
is 1 and the index of "z" is 2. Hence, the output of the program should be
"za".
3. Prints out a message "What to do next (continue/stop)?". The user should
reply with
either "continue" or "stop".
4. Checks the user's reply. When checking the user's reply, the case of the
letters should
be ignored. For example, "ContinUe" should be regarded the same as
"continue".
If the reply is "continue", the program goes to step 1.
If the reply is "stop", the program terminates.
If the reply is neither "continue" nor "stop", the program goes to step 3.
Here is a sample session (with the user's input in italics):
Please enter a string: A90fgk-)
The output string is: A90FGK-)
What to do next (continue/stop)? CONTINue
Please enter a string: ksjair908Akd
The output string is: KSJAIR908AKD
What to do next (continue/stop)? continue
Please enter a string: A8976A-The
output string is: -69A
What to do next (continue/stop)? Continu
What to do next (continue/stop)? Continue
Please enter a string: 13257+A
The output string is: 13257+A
What to do next (continue/stop)? continue
Please enter a string: !-)
The output string is: )!
What to do next (continue/stop)? Stopp
What to do next (continue/stop)? Stop
thankx
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: help!
2000-03-27 5:00 help! Lutfor Rahman
@ 2000-03-26 5:00 ` Ward van Wanrooij
0 siblings, 0 replies; 5+ messages in thread
From: Ward van Wanrooij @ 2000-03-26 5:00 UTC (permalink / raw)
It would sorta spoil the fun and educational value to provide the
answer, wouldn't it?
Lutfor Rahman wrote:
>
> hi there,
>
> I need help to solve the following problem:
>
> 1
> ________________________________________________________________________
> Write an Alpha assembly language program which behaves as below:
> 1. Prompts the user for an input string with a message "Please enter a
> string:". It should be
> assumed that the string contains at least one and at most fifteen
> characters.
> 2. After accepting an input string from the user, prints out "The output
> string is :". Then,
> the program should behave as below depending on the input string :
> If the input string contains exactly one letter "A", the program converts
> all the letters in
> the string to capital case letters and prints out the converted string.
> In all other cases, the program prints out the characters with even number
> index in the
> string in reverse order. It should be assumed that the first character in
> the string has
> index 0, the second character in the string has index 1, the third character
> in the string
> has index 2 and so on. Therefore, for string "a-z", the index of "a" is 0,
> the index of "-"
> is 1 and the index of "z" is 2. Hence, the output of the program should be
> "za".
> 3. Prints out a message "What to do next (continue/stop)?". The user should
> reply with
> either "continue" or "stop".
> 4. Checks the user's reply. When checking the user's reply, the case of the
> letters should
> be ignored. For example, "ContinUe" should be regarded the same as
> "continue".
> If the reply is "continue", the program goes to step 1.
> If the reply is "stop", the program terminates.
> If the reply is neither "continue" nor "stop", the program goes to step 3.
> Here is a sample session (with the user's input in italics):
> Please enter a string: A90fgk-)
> The output string is: A90FGK-)
> What to do next (continue/stop)? CONTINue
> Please enter a string: ksjair908Akd
> The output string is: KSJAIR908AKD
> What to do next (continue/stop)? continue
> Please enter a string: A8976A-The
> output string is: -69A
> What to do next (continue/stop)? Continu
> What to do next (continue/stop)? Continue
> Please enter a string: 13257+A
> The output string is: 13257+A
> What to do next (continue/stop)? continue
> Please enter a string: !-)
> The output string is: )!
> What to do next (continue/stop)? Stopp
> What to do next (continue/stop)? Stop
>
> thankx
^ permalink raw reply [flat|nested] 5+ messages in thread
* HELP!!
@ 1998-09-12 4:00 CNRS DeA Research
0 siblings, 0 replies; 5+ messages in thread
From: CNRS DeA Research @ 1998-09-12 4:00 UTC (permalink / raw)
Help!
I am doing a research investigation about technology like yours and free
market. I need your personal daily experience comments.
Could you take 5 mn to answer a few questions at:
www.gecko.net/survey
This is done for the CNRS which is a european research center.
My name is Patrick.Thank you in advance!
CNRS DeA. 9/98
^ permalink raw reply [flat|nested] 5+ messages in thread
* Help?
@ 1998-06-22 4:00 Joaquin Serna
1998-06-23 4:00 ` Help? His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated
0 siblings, 1 reply; 5+ messages in thread
From: Joaquin Serna @ 1998-06-22 4:00 UTC (permalink / raw)
Hi.
I�m interested to know the better hardware configuration for an ISP to
support Linux for web services. Also if is possible the advantages and
disadvantages between NT and Linux.
Thanks
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Help?
1998-06-22 4:00 Help? Joaquin Serna
@ 1998-06-23 4:00 ` His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated
0 siblings, 0 replies; 5+ messages in thread
From: His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated @ 1998-06-23 4:00 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2808 bytes --]
>>>>> "JS" == Joaquin Serna <joaquin@nauta.es> writes:
JS> Hi. I�m interested to know the better hardware
JS> configuration for an ISP to support Linux for web
JS> services. Also if is possible the advantages and disadvantages
JS> between NT and Linux.
If you're interested in Linux or NT on the Alpha (since you
cross-posted, I assume you are), Linux *seems* much faster than NT4 on
the same configuration. I own an AlphaStation 200 4/233 with 64
Mbytes of RAM and around 6.6 Gbytes of disk space. Under NT, the
system would swap a great deal, even when running singly, that is, no
other program was active other than system subprocesses, native
applications such as the C compiler (Visual C++ 5.0, RISC Edition) or
the web browser (Internet Explorer 3.01 Alpha). Linux feels a lot
more responsive, load times are lower, and it is fairly stable
(although installation was difficult, and X crashed fairly regularly
until I upgraded the X server/device driver). Unless you have special
needs, stick with a Linux distribution and a stable glibc and kernel.
From experience I can tell you that development-level code can be a
great headache---*not* something you need if you're trying to run a
business.
Linux is very good at networking---there's an ISP HOWTO listed on the
Linux Documentation Project home page---and purchasing a copy of Linux
is tons cheaper than purchasing a copy of NT Server. RedHat Software
sells a secure web server package, which you might be interested in.
Craftworks Linux also sells a Linux/Alpha distribution, although I
haven't used it. Debian GNU/Linux 2.0 is nearing release for the
Alpha platform; I'm considering switching to it (for purely political/
philosophical reasons; RedHat Linux is very good).
As far as hardware goes, you're not going to find very much that can
beat out the Alpha, performance-wise, although you should take into
consideration the kind and amount of load you're planning on (and you
should test any of your candidate systems in this fashion, to see if
they will suit your needs). Anecdotal evidence (which is a kind of
oxymoron, I think) is really all I can offer you; you're best off on
setting up an NT system and a Linux system and try to compare the two,
side by side (same goes for hardware).
<flame>And next time, RTFM before you go posting to Usenet. A simple
web search of "Linux ISP HOWTO" or "NT vs. UNIX" or "NT vs. Linux"
will probably get you a *lot* more (and higher quality)
information.</flame>
--
Rev. Dr. Xenophon Fenderson, the Carbon(d)ated, KSC, DEATH, SubGenius, mhm21x16
Pope, Patron Saint of All Things Plastic fnord, and Salted Litter of r.g.s.b
"What shall it profit a man if he should gain the world and lock his keys
in the car before he can get it home?" --Gwendoly Piper in alt.slack
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2000-03-27 5:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-03-27 5:00 help! Lutfor Rahman
2000-03-26 5:00 ` help! Ward van Wanrooij
-- strict thread matches above, loose matches on Subject: below --
1998-09-12 4:00 HELP!! CNRS DeA Research
1998-06-22 4:00 Help? Joaquin Serna
1998-06-23 4:00 ` Help? His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox