Question: Can you rewrite this Java code in the Swift programming language? 1 import java.util.Scanner; 2 public class Grader 4. public static void main (String []

Can you rewrite this Java code in the Swift programming language?

Can you rewrite this Java code in the Swift programming language? 1

1 import java.util.Scanner; 2 public class Grader 4. public static void main (String [] args) 6 7 8 9 10 nt score; char grade; System.out.println ("Enter your score:"); Scanner keyboard new Scanner (System.in); score keyboard.nextInt(; if (score >= 90) 12 13 14 15 16 17 18 19 20 21 else if (score = 8 else if (score >= 70) else if (score = else grade'A' grade = 'B' grade "C. grade = 'D' grade = 'F': 60 System.out.println ("Score"score); System.out.println ("Grade"+ grade); 23 24

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!