没有让程序读出最低数字? [英] Not getting the program to read out lowest number?

查看:39
本文介绍了没有让程序读出最低数字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

展开 | 选择 | Wrap | 行号

解决方案

在调用calcAverage之前,看起来没有显示最低值。


有一个你显然从不打电话的findLowest功能。看起来这个函数的内部现在是 if 语句的内联系列。


展开 | 选择 | Wrap | 行号

我认为你的逻辑有点缺陷。首先,最低SHOULD = 100开始(因为它是可能的最高分)

展开 | 选择 | Wrap | 行号


Expand|Select|Wrap|Line Numbers

解决方案

It doesn''t appear you are displaying the lowest value before you call calcAverage.

There is a findLowest function that you apparently never call. It seems like the insides of this function is now an inline series of if statements.


Expand|Select|Wrap|Line Numbers


I think your logic is a little flawed. First, lowest SHOULD = 100 to begin with (since it''s the highest score possible)

Expand|Select|Wrap|Line Numbers


这篇关于没有让程序读出最低数字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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