Prints the hundreds digit in two integers , Computer Engineering

Write an application that prints the hundreds digit  in two integers read from the keyboard. For example if the data values are 1456 and 255 respectably, output should include the original number followed by the digit in the hundreds position labeled your output appropriately.

Hint : Use value - returning method that requires the number passed as parameter and  return the hundreds digit.

Hints:

  • Use a value-returning method that requires the number passed in as a parameter, and will return the hundreds digit.
  • Use the operators % and /. For example, 1456 % 1000 is 456, and 456 / 100 is 4.

 

Posted Date: 3/13/2013 8:50:26 AM | Location : United States







Related Discussions:- Prints the hundreds digit in two integers , Assignment Help, Ask Question on Prints the hundreds digit in two integers , Get Answer, Expert's Help, Prints the hundreds digit in two integers Discussions

Write discussion on Prints the hundreds digit in two integers
Your posts are moderated
Related Questions
Difference between Vertical and Horizontal Organization Vertical Organizations  It is a usual approach which is typified by a functional approach to work in which departme

Define device interface. The buffer registers DATAIN and DATAOUT and the status flags SIN and SOUT are part of circuitry commonly called as a device interface.

Q. What is Command Prompt Interface? Operating System gives a text based interface called command prompt.  With the help of command prompt commands can be issued to perform fil

Communication by Message Passing You will agree that a single object alone is generally not very helpful. Objects usually emerge as components of a system or a larger program.


A very useful application of assembly is to generate delay loops. These loops are used for waiting for some time before execution of subsequent instruction. However how to find


What are the Process states? By the courses of implementation, processes change state. Status of a process is express by its present activity. Dissimilar practical states of

Explain the major consideration of laptop One of the major considerations when buying a laptop is battery life. This can rely on a number of things though one major factor is p

Net-fu is a web-based interface to a script-fu server. The work is completed at a remote site. To see Net-fu, point your web browser or one of the mirror sites, and then go to "gim