Find Jobs
Hire Freelancers

Convert some old basic code to swift 3.0 in playground

$10-30 USD

Cancelled
Posted over 7 years ago

$10-30 USD

Paid on delivery
I have a short section of old basic code I'd like to get working in swift to see what the printed output looks like. See swift code I have started and original basic code below. func getStringFromCode(_ code: Int) -> Character { return Character( UnicodeScalar(code)!) } let data = [-93,0,-6,255,-19,0,255,255,-90,0,255,255,-19,0,-6,255,-101,0,1,2,4,8,16,32,64,128,1,2,4,8,16,32,64,128,-60,0,1,2,4,8,16,32,64,128,1,2,4,8,16,32,64,128,-20,0] var next = 0 print("\(getStringFromCode(27))A\(getStringFromCode(8))") for N0 in 1..<7 { print("\(getStringFromCode(27))K\(getStringFromCode(194))") for G0 in 1..<450 { var X0 = data[next] next = next + 1 if X0 >= 0 { print("\(getStringFromCode(X0))") } else { G0 = G0 - X0 - 1 R0 = data[next] next = next + 1 } print("\(getStringFromCode(Y0))") } } /* 61855 LPRINT CHR$(27)"A"CHR$(8); 61920 FOR N0 = 1 TO 6 61925 LPRINT CHR$(27)"K"CHR$(194)CHR$(1); 61930 FOR G0 = 1 TO 450 61940 READ X0 62010 IF X0 >=0 THEN LPRINT CHR$(X0);:GOTO 62100 62050 G0 = G0 - X0 - 1 62060 READ Y0 62070 FOR I0 = 1 TO ABS(X0) 62080 LPRINT CHR$(Y0); 62090 NEXT I0 62100 NEXT G0 62110 LPRINT 62150 NEXT N0 62165 REM 62170 REM 62465 DATA -93,0,-6,255,-19,0,255,255,-90,0,255,255,-19,0,-6,255,-101,0,1,2,4,8,16,32,64,128,1,2,4,8,16,32,64,128,-60,0,1,2,4,8,16,32,64,128,1,2,4,8,16,32,64,128,-20,0 62470 DATA -93,0,-6,255,-19,0,255,255,-90,0,255,255,-19,0,-6,255,-93,0,1,2,4,8,16,32,64,128,1,2,4,8,16,32,64,128,-60,0,1,2,4,8,16,32,64,128,1,2,4,8,16,32,64,128,-28,0 62475 DATA -93,0,-6,255,-19,0,255,255,-90,0,255,255,-19,0,-6,255,-85,0,1,2,4,8,16,32,64,128,1,2,4,8,16,32,64,128,-60,0,1,2,4,8,16,32,64,128,1,2,4,8,16,32,64,128,-36,0 62480 DATA -93,0,-6,255,7,-18,0,255,255,-90,8,255,255,-18,0,7,-6,255,-80,0,1,3,7,15,255,-7,0,255,15,7,3,1,-59,0,1,3,7,15,255,-7,0,255,15,7,3,1,-40,0 62485 DATA -93,0,-8,255,31,7,1,-14,0,255,255,-90,128,255,255,-14,0,1,7,31,-8,255,-79,0,-6,255,-7,0,-6,255,-57,0,-6,255,-7,0,-6,255,-39,0 62490 DATA -92,0,1,-11,255,127,31,15,7,3,1,1,-7,0,255,255,-90,0,255,255,-7,0,1,1,3,7,15,31,127,-11,255,1,-77,0,1,-6,255,-7,1,-6,255,1,-55,0,1,-6,255,-7,1,-6,255,1,-38,0 */
Project ID: 12293596

About the project

1 proposal
Remote project
Active 7 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hello, Client! I have read your description carefully I have interest in your job I have many experience in swift If I award me, then I can finish it in a few hours I hope you send me message thanks Best regards
$30 USD in 1 day
5.0 (1 review)
0.5
0.5

About the client

Flag of UNITED STATES
Bonita Springs, United States
5.0
131
Payment method verified
Member since Oct 25, 2004

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.