Guest_imported
New member
- Jan 1, 1970
- 0
I have an assigment to do which is in Pscedo code and it has to be converted into java usin ann.easyio.Keyboard class for input and ann.easyio.Screen for output.
for i from 0 to 2
do
output "Enter the name of the employee"
set empName to input
output "Please enter details for " + empName
set runningTotal to 0
for j from 0 to 11
do
set tempTotal to 0
set numJobs to 0
Set amtCable to 0
output "Enter the number of Jobs"
set numJobs to input
output "Enter the amount of cable laid"
set amtCable to input
set tempTotal to (numJob * 100) + (amtCable * 2)
set runningTotal to runningTotal + tempTotal
output "In month " + empName + "earned " + tempTotal
endfor
output "Employee " + empName + "earned " + running Total
endfor
Cheers in advanced
for i from 0 to 2
do
output "Enter the name of the employee"
set empName to input
output "Please enter details for " + empName
set runningTotal to 0
for j from 0 to 11
do
set tempTotal to 0
set numJobs to 0
Set amtCable to 0
output "Enter the number of Jobs"
set numJobs to input
output "Enter the amount of cable laid"
set amtCable to input
set tempTotal to (numJob * 100) + (amtCable * 2)
set runningTotal to runningTotal + tempTotal
output "In month " + empName + "earned " + tempTotal
endfor
output "Employee " + empName + "earned " + running Total
endfor
Cheers in advanced