Write the program that asks the user for 3 integers and disorder their outputs. Let the first number be the second, the second be the third and the third be the first number.
sample vb.net algorithm
1.)
--------
asks the user for 3 integers
assuming there are textboxes (GUI) or streamreader / bufferedreader (java)
textbox1 - txtfirst_input
textbox2 - txtsecond_input
textbox3 - txtthird_input
BUTTON - cmdOutput
---------------and disorder their outputs. Let the first number be the second, the second be the third and the third be the first number.
'declare a variable to hold the values of each textbox
dim first_input as integer = txtsecond_input.text
dim second_input as integer= txtthird_input.text
dim third_input as integer= txtfirst_input.text
LABEL (LABELS FOR THE OUTPUT)
lbl_first.text = first_input
lbl_second.text = second_input
lbl_third_input = third_input
2) Create a program that converts the inputted amount in dollar into its php equivalency. Assume that 1 dollar = 46.53 peso
-Suppose you already have a textbox, (txtamount.text )
add a BUTTON (cmdCompute)
Declare a variable again.
dim curr_equivalent as double = 46.53
dim curr_value as double = txtamount.text ---eto yung dollar na na input
dim conv_amount as double = curr_equivalent *curr_value
then put a Label or msgbox (lblamount.text) to display the final answer
lblamount.text = conv_amount ---final answer
hope this helps. confused? text me.