伪代码问题。 Java的 [英] Pseudocode question. Java

查看:300
本文介绍了伪代码问题。 Java的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我必须用Java中的10个问题进行测验,它需要对每个问题进行评分..而且我还需要在最后重置它。但是,我首先坚持如何为它做伪代码,比如在我的论文上写什么......有什么输入?



我试过的:



到目前为止我有...问题1 ---一个答案为1,另一个答案为2 ---正确1分,错误没有意义(说你的权利如果正确)。 (说错了如果不正确)

Hello, i have to make a quiz with 10 questions in Java, it needs to score each question..and also i need to make it reset at the end. But, i am first stuck on how to do the pseudocode for it, like what to write on my paper..any input?

What I have tried:

So far i have.. Question 1 --- 1 for one answer, 2 for the other answer --- correct 1 point, wrong no point (Say your right "if correct" ) . (say your wrong " if not correct" )

推荐答案

想想测验的要求是什么:

- 它需要一个清单包含10个问题及其相关答案;或者两个清单。

- 它需要以某种顺序显示问题,1到10,或随机。

- 它需要接受用户和检查是对还是错的答案。

- 它需要跟踪分数,并在结尾打印结果。
Think about what are the requirements of the quiz:
- it needs a list containing 10 questions and their associated answers; or maybe two lists.
- it needs to display the questions in some order, 1 to 10, or random.
- it needs to accept the answer form the user and check for right or wrong answer.
- it needs to keep track of the score, and print the result at the end.


这篇关于伪代码问题。 Java的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆