Tutorial -Chapter 3

Tutorial -Chapter 3 - Tutorial 3-1: Completing the Sunshine...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Tutorial 3-1: Completing the Sunshine Cellular Application Download folder Tutorial 3-1 to your computer. Start Visual Studio, and open the solution “Sunshine Cellular Solution”. As you may remember, the company takes orders for cell phones. There are two types of phones: silver ones and blue ones, which are both priced at $100 each. The applications needs to both calculate and display the total number of phones ordered and the total price of the phones, including 5% sales tax. The user interface of the application is displayed in the following figure: And the TOE chart of the application: The TOE chart indicates that we need to program the event handlers for the 3 buttons: calcButton, clearButton, and exitButton. Before you begin coding an event procedure, you should have a plan in place to serve as blueprint for coding. Many programmers use planning tools such as pseudocode or flowcharts , as we introduced in chapter 0. Pseudocode uses short phrases to describe the steps a procedure must take to accomplish its goal.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
On the other hand, flowchart uses standardized symbols to show the steps a procedure must follow to reach its goal. Three symbols: Start/stop symbol (oval): indicates start and stop points Process symbol (rectangle): represents tasks Input/output symbol (parallelogram): represents input or output tasks Flowlines : connect the symbols to show the direction
Background image of page 2
Let’s determined the variables and constants that will be used
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 18

Tutorial -Chapter 3 - Tutorial 3-1: Completing the Sunshine...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online