Information Systmes HW
MODIFY THIS
INTRODUCTORY
INTRODUCTORY
INTERMEDIATE
INTERMEDIATE
Do lt, Then Ask Permission (Posttest Loops)
in this exercise, you modify the Bouncing Robot application coded in the cha:-.: Use Windows to make a copy of the Robot solution folder. Save the copy in :- . ClearlyVB2012\Chap13 folder. Rename the copy Modified Robot Solution. O:= '-' Robot Solution (Robot Solution.sln) file contained in the Modified Robot Sol':.. folder. Open the designer and Code Editor windows. Currently, the pretest lo: - -- btnPretest-Click procedure starts counting at 0 and stops when it reaches the . -
*
of bounces entered by the user. Modify the code so that it starts counting u'::. -- - number of bounces entered by the user and stops when it reaches 0. Save the . - and then start the application. Test the Pretest Loop button's code. Close th. .- :. Editor window and then close the solution.
Open the Average Score Solution (Average Score Solution.sln) file contained -:. ,-, ClearlyVB2012\Chap13\Average Score Solution folder. The Calculate button. . event procedure should use a posttest loop to allow the user to enter five tesi : - : , then should both calculate and display the average test score. If the average tes: . - greater than 80, the procedure should use a posttest loop to blink the lblAveras= -.
-
six times. Code the procedure. Save the solution and then start and test the ap:- -.', Close the Code Editor window and then close the solution.
Open the Temperature Solution (Temperature Solution.sln) file contained in :- - ClearlyVB2012\Chap13\Temperature Solution folder. The Calculate button's '.- - event procedure should use a posttest loop to allow the user to enter zero oI -- : temperatures. It then should display the number of temperatures entered ?oC --,-:
average temperature. Include one decimal place in the average temperature. C:-. procedure. Save the solution and then start and test the application. Close th.- - - Editor window and then close the solution.
Effective )anuary 1st of each year, Gabriela receives a 5o/o raise on her previous . - salary. She wants a program that both calculates and displays the amount oi = for the next 3 years. Display the raise amounts in message boxes. Display her tc.' * - for the 3 years in a label control.
a. List the output, processing (if any), and input items, and then create an a::-- - algorithm using a flowchart and a posttest loop.
b. Create a Visual Basic W.indows application. Use the following names for th.. .. - and project, respectively: Raise Solution and Raise Project. Save the appllc.-,.- the c1earlyvB2012\Chap13 folder. change the name of the form file on Yo *: - . frmMain.vb. If necessary, change the form's name to frmMain.
c. Create a suitable interface. Include a text box for entering the initial salar- ' Also include an Exit button. Code the Exit button's Click event procedur. .- - problem's algorithm.
d. Save the solution and then start and test the application. (Hint: Eor an an:--- of 10000, the raise amounts are $500.00, $525.00, and $551.25. The total s' .:-
$33,101.25.) Close the Code Editor window and then close the solution.
7. open the sum Even solution (sum Even solution.sln) file contained in the ClearlyVB2012\Chap13\Sum Even Soiution folder. The interface provides ter. -- - . the user to enter two numbers, which should be integers. Code the applicatic.. .
text box accepts only numbers and the Backspace key. The Display button's C--:, -
procedure should display the sum of the even numbers between the two ln:;=.:, entered by the user. lf the user's entry is even, it should be included in the s-.- For example, if the user enters the integers 2 and7, the procedure should c-.: . 72 (2 + 4 + 6). If the user enters the integers 2 and 8, the procedure shoulc :-. - ' 20(2+ 4+6 + 8). CodetheDisplaybutton'sClickeventprocedureusinq a - ,- loop. Save the solution and then start and test the application. Ciose the Cc:. :- window and then close the solution.
4.