IA solutions


<b>
sub smaller (byval a as integer, byval b as integer)

if a < b then
console.writeline(a) - console
txt_smaller.text = a - win forms
messagebox.show(a) - win forms
end if

end sub

<c>
smaller(first_number, second_number)

<3>
if balance <= 120.50 then
console.writeline("bal insuf")
else
console.writeline("bal accept")
end if

<7>
txt_classwork
txt_exam
lbl_total
lbl_grade

dim classwork, exam, total as single/double
dim grade as string

classwork = txt_classwork.text
exam = txt_exam.text
total = classwork + exam
lbl_total.text = total

if total >= 50 then
grade = "A"
else
grade = "B"
end if

lbl_grade.text = grade

No comments:

Post a Comment