plz帮助到期日12月5日 [英] plz help the due date 5th Dec

查看:106
本文介绍了plz帮助到期日12月5日的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题2(45分)

这个问题基于Block III - Unit 1(图形用户界面)和Block III - Unit 2(设计接口)。它旨在测试您使用Boralnd IDE开发简单应用程序并使用IDE帮助系统的能力。

编写C ++代码以实现以下应用程序。确保定义您将使用的所有变量:

我们有三个编辑框,三个按钮和两个组合框。分别在开始和结束编辑框中输入两个整数。输入的两个值分别代表一系列的起始值和结束值。不允许使用负值,起始值必须大于或等于结束值,否则计算将不会发生,结果将始终为零。

3

组合框应该如何工作?

1.第一个组合框包含两个选项:添加数字的总数和查找数字平均值的平均值。组合框的初始值为Total。

2.第二个组合框包含三个选项:AllExcept3,它考虑除了所有多个3个数字之外的所有序列号(不包括3,6, 9,...),First5考虑到系列中的前五个数字,而Last5考虑了系列中的最后一个数字。组合框的初始值是AllExcept3。

如果您从第一个组合框中选择Total,而从第二个编辑框中选择AllExcept3,那么您的决定是添加除3的所有倍数之外的所有序列号系列中的数字。

如果您从第一个组合框中选择Total,从第二个编辑框中选择First5,那么您的决定是仅添加系列中的前5个数字。

如果您从第一个组合框中选择Total,从第二个编辑框中选择Last5,那么您的决定是仅添加系列中的最后5个数字。

如果相同的话,将应用前一个场景选择是平均值而不是总计。
$ b $b如果按执行按钮或按Alt键+ x使用快捷键,结果将打印在第三个编辑框中(输出)并将焦点放在开始编辑框上。
$ b $b如果按清除按钮或按下Alt键+ C使用快捷方式,则所有编辑框均为将被清除,焦点将在开始编辑框上。
$ b $b如果按退出按钮或按Alt键+ E使用快捷方式,应用程序将关闭。

初始设计如下所示,你应该确保遵循给你的相同设计。



plzzzzzzzz仅用于帮助组合框的一部分和与之相关的计算!!

Question 2 (45 Marks)
This question is based on Block III – Unit 1 (Graphical User Interfaces) and Block III – Unit 2 (Designing Interfaces). It is intended to test your ability to work with Boralnd’s IDE to develop a simple application and make use of the IDE’s help system.
Write a C++ code to implement the following application. Make sure to define all variables that you will use:
We have three edit boxes, three buttons, and two combo boxes. Enter two integer numbers in the start and end edit boxes respectively. The two entered values represent the starting and ending values of a series respectively. Negative values are not allowed and the starting value must be greater or equal to the end value, otherwise the calculation will not take place and the result will always be zero.
3
How combo boxes should work?
1. The first combo box consists of two options: Total for adding numbers and Average for finding the average of numbers. The initial value for the combo box is Total.
2. The second combo box consists of three options: AllExcept3 which taking into account all the series numbers except all of multiple 3 numbers (exclude 3,6,9,…), the First5 which taking into account the first five numbers in the series, and the Last5 which taking into account the last numbers in the series. The initial value for the combo box is AllExcept3.
If you choose Total from the first combo box and AllExcept3 from the second edit box then your decision is to add all the series numbers except all of multiple of 3 numbers in the series.
If you choose Total from the first combo box and First5 from the second edit box then your decision is to add only the first 5 numbers in the series.
If you choose Total from the first combo box and Last5 from the second edit box then your decision is to add only the last 5 numbers in the series.
The same previous scenario will be applied if the choice was for Average instead of Total.
 If you press on "Execute" button or if you use the short cut by pressing Alt key + x, the result will be printed in the third edit box (Output) and the focus will be on the start edit box.
 If you press on "Clear" button or if you use the short cut by pressing Alt key + C, all edit boxes will be cleared and the focus will be on the start edit box.
 If you press on "Exit" button or if you use the short cut by pressing Alt key + E, the application will be closed.
The initial design is shown as below and you should make sure to follow the same design given to you.

plzzzzzzzz help only with the part of combo boxes and the calculation related to it!!

推荐答案

tala2005写道:
tala2005 wrote:

它旨在测试你的能力...

It is intended to test your ability ...

这意味着你,而不是其他任何人。

That means you, not anyone else.


我们没有参加课程,我们不是可以访问此作业所指的材料。我们也看不到显然提供作业的插图。



最重要的是,我们无法看到你的头脑:作业的重点是为你提供通过练习,您可以训练和理解您所采用的原则。我们无法帮助您在不知道您做什么或不理解的情况下进行训练。帮助你的唯一方法要求一步一步地开始尝试完成这项功课,直到你遇到困难为止。在那时 - 而不是更早 - 告诉我们你做了什么,以及你被困在哪里。然后,只有这样,我们才能帮助你。



这并不难:按照一步一句一句一句地按照说明操作。他们很清楚。如果您对这些信息感到不知所措,请不要尝试一次阅读和理解所有内容。当你打算吃一头大象时,试图吞下它,整个都不行。一次只吃一口。
We didn''t attend the lessons and we don''t have access to the material that this homework refers to. Nor do we see the illustrations that apparently were provided with the homework.

Most importantly, we can not look into your head: the point of the homework is to provide you with an exercise that lets you train and understand the principles you have been tought. We cannot help you train without knowing what you do or do not understand. The only way to help you requires that you start out, step by step, to try and complete this homework, until you get stuck. At that point - and no earlier - tell us what you''ve done, and where you''re stuck. Then, and only then, will we be able to help you.

It isn''t really hard: just follow the instructions sentence by sentence, step by step. They''re quite clear. Don''t try to read and understand all at once if you feel overwhelmed by that much information. When you plan to eat an elephant, trying to swallow it whole won''t work. Take just one bite at a time.


这是我在Slashdot上看到的一个解决方案,我认为你应该上交。它非常适合你试图解决的问题的迷宫解决。



Here''s a solution I saw on Slashdot that I think you should turn in. It is very optimized for this maze of a problem you are trying to solve.

10 PRINT CHR


这篇关于plz帮助到期日12月5日的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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