Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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?
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started