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
A set of techniques that allow executing a program which is not entirely in memory is called ? Ans. virtual memory which allows executing a program that is not entirely in me

Trunks are the lines that run between? Trunks are the lines which run in between switching stations.

Q. Instruction per cycle in RISC? One instruction per cycle: A machine cycle is total time taken to fetch two operands from registers perform ALU operation on them and store re

What does the swapping system do if it identifies the illegal page for swapping? If the disk block descriptor does not have any record of the faulted page, then this causes the

What is serialization, how it works in .NET? Serialization is when you persist the state of an object to a storage medium so an exact copy can be re-created at a later stage. S

What are the steps comprised in authentication? Steps in Authentication: The control over the access of the resources within the repository is exercised in two steps tha

? Activities: An activity shows an action that performed in the system. ? Transitions: Transitions are shown by open arrow heads. Transitions are used to specify the flow among


Q. Define Immediate Addressing Mode with example? Immediate Addressing Mode An immediate operand can be a constant expression like a character, a number or an arithmetic e

Q. What are the Logic Micro-operations? Logic operations are fundamentally binary operations that are performed on string of bits stored in the registers. For a logic micro-ope