GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 13-Aug-2006, 09:52
star22 star22 is offline
New Member
 
Join Date: Aug 2006
Posts: 1
star22 is on a distinguished road

plz friends help me


how are u my friends plz help me to solve this proplem:




Question (Check Protection and word interpretation)

Problem Concept - Computers are frequently used in check-writing systems, such as pay-roll and accounts payable applications. Many strange stories circulate regarding weekly paychecks being printed (by mistake) for amounts in excess of RM 1 million. Weird amounts are printed by computerized check writing systems because of human error and/or machine failure. Systems designers, make every effort to build controls into their systems to prevent erroneous checks from being issued.

Another serious problem is the international alteration of a check amount by someone who intends to cash a check fraudulently. To prevent a dollar amount from being altered, most computerized check-writing systems employ a technique called as check protection.

Problem statement: Write a program that inputs a numeric 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 the amount. Extend the program segment to write the word equivalent of the amount in the following line.

Sample Data: Checks designed for imprinting by computer contain a fixed 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 the nine of those spaces will be filled. 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 wouald be ordinarily left blank. For example:

99 .87 = check amount
---------------------------------------
123456789 = position numbers.

contains 3 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 = check amount
----------------------------------------
123456789 = position numbers.

The program should also print the output of the value of dollars in words in the next line. For example:

112.43 is printed as

RM ***112 .43
ONE HUNDRED TWELVE AND 43/100.


Program Output: The program should read a numeric dollar value, and determine the number of spaces before printing its output with proper check-protection. It should also print the value of the dollar in words in the next line aligning it to the right.
 
 

Recent GIDBlogMeeting the populace by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hello friends Paramesh New Member Introductions 7 29-Nov-2005 09:33
My friend's Geforce FX 5700 Problems SaberClash1337 Computer Hardware Forum 2 01-Aug-2004 20:16
My Friends Can't Download Anything From My Server!!! photonicman Apache Web Server Forum 0 02-Jun-2004 09:45
hi everybody. I need more friends in my life! average_joe New Member Introductions 6 04-May-2004 20:25

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 15:25.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.