Edit #2


Show leading zeros and leading spaces when appropriate. Note that negative signs are actually stored with the units position, I am showing them in front of the input data on this assignment.

Input/WS Data        

Input/WS Picture        

Output Picture        

Output Data        

0005714

9(5)V99

$$$,$$$.99

 

00512367

9(6)V99

$$$$,$$$.99

 

-0000017

S9(5)V99

$$$,$$$.99-

 

000072

9999V99

$*,**9.99

 

00845678

9(5)V999

$**,***.99

 

000234

999V999

$$$$.99

 

-0065324

S9(7)

$$,$$$,$$$.99+

 

00154982

9(7)V9

$$,$$$,$$$.99

 

00342178

S999999V99

++++,+++.99

 

0056487

9(5)V99

**,***.9

 

70340349

9(5)V99

$**,***.99

 

562359

9999V99

***.9

 

0000054

S9(5)V99

***,***.99+

 

-456543

S9(4)V99

-$*,***.99

 

00524352

9(7)V9

$$,$$$,$$$.99

 

00000552

9(6)V99

***,*99.99-

 

000000

999999

***,***

 

40043

9(4)

$*,***.99

 

0000328

9999V999

****.99

 

000345324

9(7)V99

$Z,ZZZ,ZZZ.99

 

000345324

9(7)V99

$*,***,***.99

 

000345324

9(7)V99

$$,$$$,$$$.99

 

-03456

999V99

ZZZ.99-

 

-0045343

S9(5)V99

---,---.99

 

-0312456

S9(5)V99

+++,+++.99