c programming., Electrical Engineering

Assignment Help:
#queComputers are frequently used in check-writing systems, such as payroll
and accounts payable applications. Many stories circulate regarding weekly pay-
checks being printed (by mistake) for amounts in excess of $1 million. Weird
amounts are printed by computerized check-writing systems because of human
error and/or machine failure. Systems designers, of course, make every e?ort to
build controls into their systems to prevent erroneous checks from being issued.
Another serious problem is the intentional alteration of a check amount by some-
one who intends to cash it fraudulently. To prevent a dollar amount from being
altered, most computerized check-writing systems employ a technique called check
protection.
Checks designed for imprinting by computer contain a xed number of spaces in
which the computer may print an amount. Suppose a paycheck contains nine
blank spaces in which the computer is supposed to print the amount of a weekly
paycheck. If the amount is large, then all nine of those spaces will be lled|for
example:
11,230.60 (check amount)
---------
123456789 (position numbers)
On the other hand, if the amount is less than $1000, then several of the spaces will
ordinarily be left blank|for example,
99.87
---------
123456789
contains four blank spaces. If a check is printed with blank spaces, it is easier
for someone to alter the amount of the check. To prevent a check from being
altered, many check-writing systems insert leading asterisks to protect the amount
as follows:****99.87
---------
123456789
Write a program that inputs a dollar amount to be printed on a check and then
prints the amount in check-protected format with leading asterisks if necessary.
Assume that nine spaces are available for printing an amount.stion..

Related Discussions:- c programming.

Force between current carrying conductors, If a second current carrying con...

If a second current carrying conductor is placed near to the first and the corresponding magnetic fields drawn, we can begin to visualise why a force is created between them. If

Calculate the instantaneous and rms values, Q. The flux-density distributio...

Q. The flux-density distribution in the air gap of a 60-Hz, two-pole, salient-pole machine is sinusoidal, having an amplitude of 0.6 T. Calculate the instantaneous and rms value

Principals applied in product design, What are the broad principals that wi...

What are the broad principals that will be applied in product design to facilitate automated assembly ?

Evaluate parameters of a bjt, Q. The parameters of a BJT are given by α = 0...

Q. The parameters of a BJT are given by α = 0.98, I CBO = 90 nA, and i C = 7.5 mA. Find β, iB, and iE.

Show the properties of a good heat sink, Properties of a good heat sink ...

Properties of a good heat sink For maximum efficiency, a heat sink should be 1)Be in good thermal contact with the transistor case 2)Have the largest surface area 3)Be

Compute the minimum line current for the motor, A three-phase, wye-connecte...

A three-phase, wye-connected, four-pole, 400- V, 60-Hz, 15-hp synchronous motor has a synchronous reactance of 3  per phase and negligible armature resistance. The data for its no

Interpoles, These are small poles fixed to the yoke and spaced in b/w the m...

These are small poles fixed to the yoke and spaced in b/w the main poles. They are wound with comparatively few heavy gauge Cu wire turns and are connected in series with the armat

Express the waveform of the staircase type, Q. Express the waveform of the ...

Q. Express the waveform of the staircase type shown in Figure as a sum of step functions.

Find the force between the wires, Q. A magnetic force exists between two ad...

Q. A magnetic force exists between two adjacent, parallel current-carryingwires. Let I 1 and I 2 be the currents carried by the wires, and r the separation between them. Making u

Write Your Message!

Captcha
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