That means you, not anyone else.tala2005 wrote:It is intended to test your ability ...

11,806,026 members (68,719 online)

Email

Password

Sign in using

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!!

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!!

Comments

Is this a joke?

Homework.

We've never done our homework.. Lol !!

That means you, not anyone else.tala2005 wrote:It is intended to test your ability ...

Comments

Exactly what I was going to point out when reading the question. :)

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.

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

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.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject,
503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada
+1 416-849-8900 x 100