EASy68K  
It is currently Sun Dec 16, 2018 10:44 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: help my homework
PostPosted: Thu May 27, 2010 6:52 am 
Offline

Joined: Thu May 27, 2010 6:26 am
Posts: 1
After printing the prompt “Input equation”, then on a new line allow the user
to enter a single decimal digit (0-9), a + or – and another digit (i.e. input
an equation of the form (“4+7” or “6-2”). You must wait for the user to press
[Enter] (i.e. wait for CR) before continuing.
Print a “Result is :” string, the value of this calculation, a CR, and the
prompt for the next equation.
Quit when the user enters a “q” for the equation
Your program must have at least four subroutines, which encapsulate these
four operations:
• The + operation (takes two binary numbers and adds them)
• The – operation (takes two binary numbers and subtracts them)
• Reading the input ( reads one character of input which is echoed to the
screen)
• Writing the output ( prints the result, prepending a “-“ if negative)


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 27, 2010 12:47 pm 
Offline

Joined: Mon Dec 27, 2004 11:40 pm
Posts: 318
We don't do your homework for you.

Lee.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 30, 2010 7:03 am 
Offline

Joined: Sun May 30, 2010 7:02 am
Posts: 1
Location: japan
may be a point not to ask the entire question from your rmit assignment on the forum.

_________________
ahhh jeez


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 31, 2010 8:51 am 
Offline

Joined: Mon May 31, 2010 8:46 am
Posts: 1
haha.. copied straight from the assignment sheet.... rmit it is! nice try!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group