GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 28-Jan-2005, 16:35
sdavis9 sdavis9 is offline
New Member
 
Join Date: Jan 2005
Posts: 3
sdavis9 is on a distinguished road
Post

Assembler programming question


does anybody know how to do this i really need some help if you want me to post the program of what 's in the program let me know but i seriously need some help plus i need to get this program done by monday if you want to post what i got let me know


Management has decided to adjust the salaries of all employees in the company by adding $1.00 to the Hourly Rate of Pay. This will become the Adjusted Rate of Pay. Management also wants to know the Total Hours worked by all employees.


INPUT SPECIFICATIONS:

Use the Lab Input File Layout given on a separate page.



OUTPUT SPECIFICATIONS:

The output will consist of a report listing the

Employee Name
Employee Number
Hours Worked
Rate of Pay
Shift
Adjusted Rate of Pay

At the end of the report, print the Total Hours Worked for all employees on the report.

The Adjusted Rate of Pay and Totals Hours Worked fields must be edited on the output report.

You are also to include a report title and appropriate column headings

You will need to do a Printer Spacing Chart and Flowchart prior to coding this lab problem.
  #2  
Old 28-Jan-2005, 16:46
swayp swayp is offline
New Member
 
Join Date: Jan 2005
Posts: 25
swayp is on a distinguished road
I don't understand, do you wan't someone here to right the program for you?

Have you gotten anywhere in this or are you asking how to implement this or what?

From what you explained it seems to me that your going to have to do this through classes.

Your going to want an Employee class that contains all the information for each employee(i.e. rate, hours worked, etc.).

Do you have any specific questions or can you just not get started or something?

Try explaining your brainstorming so perhaps someone here can just point you in the right direction.

Trust me noone is going to do it for you.
  #3  
Old 28-Jan-2005, 16:52
sdavis9 sdavis9 is offline
New Member
 
Join Date: Jan 2005
Posts: 3
sdavis9 is on a distinguished road
do you want me to post what i have
  #4  
Old 28-Jan-2005, 16:53
swayp swayp is offline
New Member
 
Join Date: Jan 2005
Posts: 25
swayp is on a distinguished road
Quote:
Originally Posted by sdavis9
do you want me to post what i have


Sure that will definetly help me and other people point you in the correct direction.
  #5  
Old 28-Jan-2005, 18:42
sdavis9 sdavis9 is offline
New Member
 
Join Date: Jan 2005
Posts: 3
sdavis9 is on a distinguished road
Post

The Program Im Using


I HAVE TO TYPE ALL OF THE OUT BECAUSE I DONT HAVE MAINFRAME ON MY COMPUTER

this is what i got at campus where are using micrufus mainframe to build the program THE ONLY THING IS THAT I CANT FIGURE WHAT AM I SUPPOSE TO DO WHERE AND I SUPPOSE TO PUT THE CALCULATION ALEAST I THINK THAT WHAT I AM SUPPOSE TO DO NOW BUT I DONT KNOW HOW TO DO IT

sample csect
print nogen
LR 3,15
USING SAMPLE 3
OPEN (DSKFLE,INPUT)
OPEN (PRTFLE,OUPUT)
MVC PRTOUT,SPACES
MVC PRTOUT+9(15),=C'BEGIN EXECUTION'
PUT PRTFLE,PRTOUT
MVC PRTOUT,SPACES
PUT PRTOUT,TITLE
PUT PRTOUT,COLHEAD1
PUT PRTFLE,PRTOUT

*
* MAINFLOW LOOP
*
READ GET DSKFLE,DISKIN
MVC PRTOUT,SPACES
MVC EMPNUMO,EPNUMI
MVC EMPNUMO,EMPNUMI
MVC HRO,HOURI
MVC RATEO,RATEI
MVC SHIFTO,SHIFTI
PACK PRATE,RATEI
AP PRATE,=P'100'
PACK PHOURS,HROI
AP PTOTHRS,PHRS
PUT PRTFLE,PRTOUT
B READ
*
* END OF JOB ROUTINE
*
EOJRT MVC PRTOUT,SPACES
PUT PRTFLE,PRTOUT
MVC PRTOUT+9(16),=C'END OF EXECUTION'
PUT PRTFLE,PRTOUT
CLOSE DSKFLE
CLOSE PRTFLE
EOF
*
* DECLARATIVES
TITLE DS 0CL120
DC 40C' '
DC CL40'SHERMAN REPORT'
DC 40C' '


* DECLARATIVES

COLHEAD1 DS 0CL120
DC 9C' '
DC CL15'EMPLOYEE NUM'
DC 4C' '
DC CL24'EMPLOYEE NAME'
DC 5C' '
DC CL5'HOUR'
DC 5C' '
DC CL6'RATE'
DC 5C' '
DC CL5'SHIFT'
DC 28C' '



* DECLARATIVES

SPACES DC CL120' '

*
* DISK FILE DEFINITION
*
DSKFLE DCB DSORG=PS,DDNAME=DSKFLE,MACRF=(GM),
LRECL=80,BLKSIZE=80,RECFM=FBA,EODAD=EOJRT

*
* PRINTER FILE DEFINTION
*
PRTFLE DCB DSORG=PS, DDNAME=SYSOUT,MACRF=(PM) ,
LRECL=120,BLKSIZE=120,RECFM=FM

*
* DECLARITIVES
*
SPACES DC CL120
MSG1 DC C'BEGIN EXECUTION'
MSG2 DC C'END OF EXECUTION'
*
* INPUT RECORD DEFINITION
*
DISKIN DS 0CL80
EMPNAMEI DS CL24
DS CL6
EMPNAMEO DS CL24
DS CL8
HRO DS CL3
DS CL14
RATEO DS CL4
DS CL8
SHIFTO DS CL1
DS CL34
END
 
 

Recent GIDBlogObservations of Iraq 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
non-member function question crq C++ Forum 1 03-Feb-2005 21:59
Repetition structure problem and question brookeville C++ Forum 17 29-Oct-2004 17:48
Question about Programming forgivenothing C++ Forum 4 25-Sep-2004 10:45
GUI programming crystalattice C++ Forum 5 14-Sep-2004 12:17
question of practice magiccreative C++ Forum 1 06-Feb-2004 07:17

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

All times are GMT -6. The time now is 11:37.


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