• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

1.4 (Say)

 
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Marilyn,
I've made all the changes you requested. However, the only way I could see to implement the change implied by this comment ("Deja vu! I saw this recently. There it is! Two lines up ") AND still do this one ("Rather than tracking strings, how about just writing it out to the console?") makes my output add a blank line only if the number entered is not a multiple of ten. When it is a multiple of ten, the next command prompt appears directly on the next line after my output. In other words, when ( num % 10 == 0 ) output is a print...but when ( num % 10 != 0 ) output is a println. Is that ok? I could add another IF clause to print just a blank line in the case of ( num % 10 == 0 ), but that seems like alot of extra code just to get a blank line. The other solution would be to implement my string reference, like I originally had it.
(Translation: Is it required to have the same number of lines output for any given input?)
You will see what I mean when you check over my re-submission.
~Ryan
[This message has been edited by ryan burgdorfer (edited February 09, 2001).]
 
Ranch Hand
Posts: 424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For me, reading this, I can only guess what you are asking.
Question: Is this ubb meant too for 'private' communication
with Marilyn?
I just sent her an assignment with questions to her too, what should we poor greenhorns do?
Possibilities:
Private questions in /* .... */ comments in a reply of an assignment?
Or like the start of this topic?
Or like in this topic, but revised so, that others can understand the relevant question too?
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
>Private questions in /* .... */ comments in a reply of an assignment?

This is good for questions which are specific to the detail of your code.
>Or like in this topic, but revised so, that others can understand the relevant question too?

A little more generalization for the benefit of the other students is better.


 
Marilyn de Queiroz
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by ryan burgdorfer:
... the next command prompt appears directly on the next line after my output.


This is not a problem. You don't need to print any blank lines for this assignment.
 
I wasn't selected to go to mars. This tiny ad got in ahead of me:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic