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
For each of the three datasets (data1.txt, data2.txt, and data3.txt in bnhw2q2.zip), cluster the data using k-means in Matlab, with k=2, 3, 4 and 5 using the provided Matlab script

The devices on the I2C bus are either masters or slaves. The master is the device that is responsible for driving the SCL clock line, while the slaves are the devices that respond

Difference between the testing and verification. Verification proves conformance with a specification. Testing tries to find cases where the system does not meet its specifi

Q. Initialize new PVM processes? pvm_spawn( char *task, char **argv, int flag, char *where, int ntask, int *tids ) Initialize new PVM processes. Task a character st

Explain briefly, why dynamic RAMs require refreshing? Ans: Due to the charge's natural tendency to distribute itself in a lower energy-state configuration that is, the charg


A script kept information on potential subjects for an experiment in a vector of structures known as "subjects".  The following show an example of what the contents may be: >> subj

What is smoke testing? Smoke testing is a combined approach that is generally used when "shrinkwrapped" software products are being developed.

(a)  Explain in a few sentences the difference between a natural frequency and a resonant frequency.  Also clarify why for a specific system or component these frequencies may diff

java program for implementation of telnet services