Question: Can you convert this java file to C++ using the files main.cpp, Functions.h, and fuunctions.cpp please? import java.util. Scanner; public class GradeCalculatort public static void

Can you convert this java file to C++ using the files main.cpp, Functions.h, and fuunctions.cpp please?

Can you convert this java file to C++ using the files main.cpp,

import java.util. Scanner; public class GradeCalculatort public static void main(String[ args) Scanner input-new Scanner (System.in); System.out.print ("Enter the number of students: " int num-input.nextInt); int[] scores-new int[num]; char[] grades-new char [num] System.out.print("Enter "+num+" scores: "; int best-1; for(int i-0;i- best - 20) else if (scores [1] >= best - 30) else if (scores [1] >= best - 40) else grades [i] 'F // What's with (i + 1)?Only programmers count from zero! grades [i]-'A' grades [i] = 'B'; grades [i]'C grades[i]'D Systen!out.RrintIn( "Student .. + ( + 1) + " -Score : .. + scores [i] + ", Letter: " + grades [1] ); input.close)

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!