Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

convert to c++, lines 8 and 9 are especially challenging. import Java.util.scanner public class GradeCalculator public static void main (String[] args) [ scanner input=new Scanner

image text in transcribed

convert to c++, lines 8 and 9 are especially challenging.

import Java.util.scanner public class GradeCalculator public static void main (String[] args) [ scanner input=new Scanner (Systern. n); System.out.print ("Enter the number of students:) int numFinput.nextInt ); intl scores new int[num]; char[] grades-new char [num]; System.out.print("Enter "+num+" scores:" 13 14 15 16 int best-1; for (int #0;num ;i++){ scores [ 1 ]-input. next lnt ( ) ; if (best= best - 10) else if (scores [1] >-best - 20) else if (scores [i] >= best - 30) else if (scores[i]best - 40) else grades [i] = 'F'; // What's with (i +1)2Only programmers count from zero! grades [i] grades [i]B' grades [i] grades [i] 'D'; 24 26 System.out.println("Student "+ (i+ 1)+Score: "+scores[i]+",Letter:"+ grades [i]); 34 input.close() 36

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mastering Apache Cassandra 3 X An Expert Guide To Improving Database Scalability And Availability Without Compromising Performance

Authors: Aaron Ploetz ,Tejaswi Malepati ,Nishant Neeraj

3rd Edition

1789131499, 978-1789131499

More Books

Students also viewed these Databases questions

Question

Identify Freuds developmental stages.

Answered: 1 week ago

Question

1. Discuss the four components of language.

Answered: 1 week ago

Question

a. How many different groups were represented?

Answered: 1 week ago