Computer Hope

Software => Computer programming => Topic started by: imherefold on March 01, 2012, 05:35:20 PM

Title: HELP!!!
Post by: imherefold on March 01, 2012, 05:35:20 PM
Okay, so I have a lab due tomorrow for class here is what we need to do in debug of the command prompt:

use the e command to enter your name major and favorite food (three lines in complete sentences, at memory locations of yoru choosing. end each line with a $ write a debug program to do the following

1. Ask the user how many times they want the information printed.
2. Print to the screen the data, as many times as the user specified, with a blank line in between each block, move 09 to ah in order to print the entire lines at once.

Can someone eplase help me on how I go about doing this???
Title: Re: HELP!!!
Post by: Rob Pomeroy on March 14, 2012, 05:56:07 AM
"e" command?  Never heard of it.

We don't do people's homework, although we're happy to give general pointers to supplement what you've learnt in class.
Title: Re: HELP!!!
Post by: BC_Programmer on March 14, 2012, 08:06:51 AM
"e" command?  Never heard of it.
Well, I first thought they might have been talking about the Editor included with PC-DOS, called "e"... but reading the rest of their posts, particularly a reference to the debug command, makes me think that they are referring to an e command in debug. I don't have access to MS-DOS debug (I'm on my linux laptop right now) and I can't recall what the e command does.

What I don't like is they've not mentioned anything they tried; this reads, to me, that they didn't try at all. And if it's due tomorrow, presumably it was assigned some time ago and this is a last minute "Maybe if I post on a forum people will be so inclined to help me I won't have to do anything at all!" thing. I could be wrong, of course.

Far more worrying to me is that anybody would try to teach using the MS-DOS Debug command, particularly when there are far better assemblers available. That would be like a modern software engineering course using the original implementation of FORTRAN.
Title: Re: HELP!!!
Post by: Rob Pomeroy on March 14, 2012, 09:54:08 AM
My company still relies on systems built in COBOL...
Title: Re: HELP!!!
Post by: BC_Programmer on March 14, 2012, 10:42:11 AM
My company still relies on systems built in COBOL...

Plenty do.

But nobody teaches programming with COBOL anymore.
Title: Re: HELP!!!
Post by: Salmon Trout on March 14, 2012, 12:01:54 PM
But nobody teaches programming with COBOL anymore.

http://www.park.edu/course/index.aspx?Class=IS216

http://hhh.gavilan.edu/dvantassel/csis20/welcome20.html

http://ww3.llcc.edu/catalog/

Title: Re: HELP!!!
Post by: BC_Programmer on March 14, 2012, 01:09:21 PM
Plenty do.

But nobody respectable teaches programming with COBOL anymore.

fixed my post ;P
Title: Re: HELP!!!
Post by: rthompson80819 on March 14, 2012, 02:09:05 PM
Actually, I read a few years ago that some companies were paying a premium for programmers that knew COBOL.  Not that the companies wanted new programs written in COBOL, but the companies had so much money invested in legacy COBOL systems they needed programmers to keep it going since most of the original COBOL programmers were retiring.