java - java中的多维数组-需要显示学生、分数、平均值等
问题描述
请帮忙; 我很困惑。我需要为我参加的课程制作一个多维数组,但进展并不顺利。这些是方向: 这些是方向
这是我到目前为止的代码:
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;
}
}}
解决方案
推荐阅读
- r - ggplot:用离散变量绘制瓷砖/矩形
- python - 自动 Gmail 登录
- c# - C#中的才艺表演程序
- ios - 关闭模式 ViewController 时,向 UITabBar 添加按钮编程会移动
- pandas - 在新列中过滤结果
- javascript - 如何使用 ChartJS 从标签中过滤数据集
- android - Firestore returning a positive hit when there isn't one
- android - 我能够填充微调器但无法访问它
- python - AttributeError:“str”对象没有属性“getAverageScore”
- swift - CoreData 是否可以在另一个上下文/后台任务中从一个上下文/线程安全地使用 NSManagedObject