728x90 AdSpace

Latest Article



Visual Basic Practice Problem IF Else String Function and String Formatting





Visual Basic Practice Problem IF Else  Condition ,using String Function  in VB and String Formatting in VB Try to solve this question for full commend on these topics 
Visual Basic
Problem No 1

 Write a program that read a Name, Roll No, date, midterm marks and total midterm marks from text box and store data in file when user click on “save to file” button and then a message box show “your data is save successfully in file !!!“.When you save the data in file then read data from file when user click on “Read from file” button and display data at picture box in following format.





Hint: Use File Read/Write, Format function with @, Tab (n) function.


Problem No 2

  Write a program that read a number check the number is positive, negative or zero.
Hints: Using if else and Sgn (n) function


Problem No 3

  Write a program that read a word from Input box check the word is palindrome or not palindrome and print the result in Msgbox.

Hints: Using if else and StrReverse$(S) function
A palindrome is a word or sentence that reads the same forward or backword.
Example  : civic, level, madam etc


Problem No 4

  Write a program that read a three number from textbox and display the smallest number in picture in following format:

Suppose
1st number is 55
2nd number is 33
3rd number is 12
OUTPUT: 3rd number 12 is smallest value.

Hints: Using if else and pseudo code practice  homework question 1

Visual Basic Practice Problem IF Else String Function and String Formatting
  • Title : Visual Basic Practice Problem IF Else String Function and String Formatting
  • Posted by :
  • Date : 11:12
  • Labels :






  • Blogger Comments
  • Facebook Comments

0 comments:

Post a Comment