Program to read an integer number

Assignment Help Mathematics
Reference no: EM13924079

Write a program to read an integer number and find its number of digits ( for example, 3459 has 4 digits and 125860 has 6 digits). The program should be designed in a way that the user could test as many numbers as desired without leaving the program. Use only long integer ( int or long int ) data type in this program; however make sure that the program rejects any input outside the long integer data range ( about -2000000000 to +2000000000). The output of the program should be written to an output file having a format exactly like the following table. VALUE ENTERED NUMBER OF DIGITS 1241 4 19 2 5684900 7 0 1 -153 3 4000000000 Invalid Test the program for at least seven integer values between 2,000,000,000 and a number outside the long int data range. Maximum value for long int is 2147483647.

Reference no: EM13924079

Questions Cloud

Are you in support of the current electoral college : Upon reading the two articles, write a response essay of at least 500 words. Your essay should address the Electoral College as it currently functions, as well as the proposed changes discussed in the two articles. Are you in support of the curren..
Evaluate the maximum tax benefit : Prepare the 2012 Form 1040 and all other required Federal forms and schedules for Brett Simons. The returns should be prepared taking the maximum tax benefit allowable into consideration. Round all amounts to whole dollars.
Term paper-the human element : Human nature is the single greatest vulnerability in any control system and cannot be ignored. Organizations should always take human behavior into account when designing access plans and strategies. Human beings can pose unintentional threats whe..
Write an essay on - gun control : Make sure to include the following sections in your essay: introduction and claim, background, body, and conclusion. Within the body of your Toumin essay, make sure to include the following in any order: support for your claim, opposing or alterna..
Program to read an integer number : Write a program to read an integer number and find its number of digits ( for example, 3459 has 4 digits and 125860 has 6 digits). The program should be designed in a way that the user could test as many numbers as desired without leaving the prog..
Functional dependencies present in the table : 1. What errors prevent the table displayed above from being first normal form compliant? 2. List all the functional dependencies present in the table.
Paper - corruption of public officials : SUGGESTED TOPIC: Corruption of Public Officials (any matter related to ethics in public administration is acceptable), Begin by selecting a topic to research. The research paper requires a public administration topic selection that focuses on an eth..
Why disparity in ratios may not indicate that newsofts share : Identify and briefly discuss three reasons why the disparity in ratios may not indicate that NewSoft's shares are overvalued relative to the shares of Capital Corp.
Physical presence of an out-of-state party : If company A finds minerals below company B's surface property, it may mine and use the minerals for its own use because it has not gone onto or disturbed company B's property.

Reviews

Write a Review

Mathematics Questions & Answers

  To determine the dimensions of a rectangular containera

to determine the dimensions of a rectangular container.a rectangular storage container with an open top is to have a

  Solve the following by factoring x26x80solve the following

solve the following by factoring x26x80.solve the following by using the quadratic equation 5w2-30present your final

  Explain the process used to obtain the interval

A company's CEO wanted to estimate the percentage of defective product per shipment. In a sample containing 400 products, he found 25 defective products.

  Understanding sequencing-fraction differences

It would normally follow on from work on sequences and fractions-Ruth was investigating fraction differences. She wrote down this sequence of fractions:

  Find the crews rowing rate in still water

A boat's crew rowed 12 miles downstream, with the current, in 1.5 hours. The return trip upstream, against the current, covered the same distance, but took 4 hours. Find the crew's rowing rate in still water and the rate of the current.

  Estimate true proportion with 5% with 95% confidence level

John davis, a manager at a supermarket, wants to estimate the proportion of the customers that will be using food stamps at his store. How large a sample is requested to estimate the true proportion with 5% with 95% confidence level?

  Consider the autonomous first order ode

Consider the autonomous first order ODE y' = 4 + 3y - y^2. Find the critical points and classify each as asymptotically stable, unstable, or semistable. For the initial value problem y(0) = 1, what is lim(x→inf) y(x)?

  Construct a from-to matrix

Determine the space requirements - Develop an initial schematic diagram and determine the cost of this layout and

  Two angles whose sides are opposite rays are called _angle

Two angles whose sides are opposite rays are called _____ angles

  Discrete random variable with probability mass function

Discrete random variable with probability mass function, 1) Let X be a discrete random variable with probability mass function Pr{X=k}= c/(1+(k^2)) for k= -2,-1, 0, 1, 2.

  What dimensions will give the largest printed area

A poster is to have an area of 170 in2 with 3 inch margins at the bottom and sides and a 3 inch margin at the top. What dimensions will give the largest printed area? (Give your answers correct to one decimal place.)

  Calculate the total sales impact for period 5

If the sales effect for period 5 is $125 million and the carryover effect is 0.25, calculate the total sales impact for period 5.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd