需要显示学生、分数、平均值和更多内容

h79rfbju  于 2021-08-20  发布在  Java
关注(0)|答案(0)|浏览(234)

请帮忙;我很困惑。我需要为我正在学习的课程制作一个多维数组,但它运行得不太好。这些是方向:这些是方向
数组应该是什么样子的示例
这是我目前掌握的代码:

import java.util.Scanner;
public class Hw {
    public static void main(String args[]) {
    Scanner in = new Scanner(System.in);
    int numOfStudents;
    int assignments;
    int amtOfScores;
    int valueOfScores;
    System.out.println("Enter the number of students in the class: ");
    numOfStudents =  in.nextInt();
    System.out.println("Enter the number of assignments: ");
    assignments = in.nextInt();
    System.out.println("Enter the values of all of the exam scores:");
    valueOfScores = in.nextInt();
    amtOfScores = numOfStudents* assignments;
    }
}}

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题