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.

Determine and plot the ratios for air, 1.Determine and plot the ratios μ tr...

1.Determine and plot the ratios μ tr /μ and μ ab /μ  from 5 keV to 100 MeV for      (a) air,              (b) water,      (c) muscle,     (d) bone, and      (d) lead

Show advantage of digital control system over analog system, Q. Show Advant...

Q. Show Advantage of digital control system over analog system? Sampled data and digital control offer several advantages over analog systems: • More compact and lightweight

Types of multiplexing techniques, (a) List three types of Multiplexing tech...

(a) List three types of Multiplexing techniques. (b) Give two advantages of "Multiplexing". (c) Given the total duration for the signal is 8 ns. What is the bit rate for

Estimate the maximum number of conversions, Q. The speed of an 8-bit A/D co...

Q. The speed of an 8-bit A/D converter is limited by the counter, which has a maximum speed of 4 × 10 7 counts per second. Estimate the maximum number of A/D conversions per secon

Describing the steady state effect , Select the response describing the ste...

Select the response describing the steady state effect of increasing the air gap for otherwise identical devices, one operating with constant DC voltage excitation and one with con

Explain bound instructions in 8086 family, Explain BOUND instructions in ...

Explain BOUND instructions in 8086 family with example and their effect on flag. BOUND: The BOUND instruction, that has two operands, compares a register along with two word

Give the significance of sim and rim instruction, Give the significance of ...

Give the significance of SIM and RIM instruction available in 8085. Instruction SIM: Set Interrupt Mask. This is a 1 byte instruction and can be used three dissimilar functio

Calculate the amplitude of the dc component, A periodic voltage consists of...

A periodic voltage consists of sinusoidal pulses having an amplitude of 150 V (SEE DIAGRAM BELOW). Use Fourier Series Expansion to calculate: 1.       the amplitude of the DC co

How is segmentation implemented in typical microprocessors, How is segmenta...

How is segmentation implemented in typical microprocessors? The first advantage is as memory segmentation has is that only 16 bit registers are needed both to store segment bas

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