.

Wednesday, March 27, 2013

Eduaction System

|Tutorial |Chapter 4 |
|Exam Sitting |DEC 2012 |



| issuing |Control Structure 1 : Selection Programming process |

1. drop a line an application that prompts the user for a checking calculate brace and savings account relaxation.
Display the meat Checking account balance is low if checking account balance is less than RM10.
Display the message Saving account balance is low if saving account balance is less than RM10.
Display additional message , two accounts are dangerously low, if both fall beneath the specified limit.

2. Write a course of instruction that prompts the user to foreplay a number. The program should wherefore output the number and a message saying whether the number is positive, negative or zero.
3. Write a program to read an comment, x, from a GUI input misfortune. Display the result in GUI dialog box to indicate if a number is odd or even.

Ordercustompaper.com is a professional essay writing service at which you can buy essays on any topics and disciplines! All custom essays are written by professional writers!


causa output as below :


[pic]


[pic]


4. Write a program that lets the user guesswork the genius or tail of a coin. The program stochasticly generates an integer 0 or 1, which represents head or tail. The program prompts the user to enter a guess and reports whether the guess is correct or incorrect.
(Note: use Math.Random () to generate the random number)


5. Write a program that plays the popular scissorrock-paper game. (A scissor commode cut a paper, a rock can knocking a scissor, and a paper can wrap a rock.) The program randomly generates a number 0, 1, or 2 representing scissor, rock, and paper. The program prompts the user to enter a number 0, 1, or 2 and displays a message indicating whether the user or the estimator wins, loses, or draws. Here are sample runs:
[pic]

6. Use the agitate and if selection statement, write an application that prompts user for two integers and then prompts the user...If you want to get a full essay, order it on our website: Ordercustompaper.com



If you want to get a full essay, wisit our page: write my paper

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.