QBASIC Programming - VERSION 9.2
Q.1) WAP to change degree Celsius into degree Fahrenheit.
=> CLS
INPUT "Enter degree celsius value" ; D
F = ( 9 * C / 5 ) + 32
PRINT "Degree Fahrenheit value = "; F
END
__________________________________________________________________________________
Q.2) WAP to change dollar into Nepali currency.
=> CLS
INPUT "Enter Dollar value"; USD
NRS = USD * 100
PRINT "Nepali currency value = "; NRS
END
___________________________________________________________________________________
Q.3) WAP to change Indian currency into Nepali currency.
=> CLS
INPUT "Enter Indian currency value"; IC
NRS = IC * 1.6
PRINT "Nepali currency value = "; NRS
END
__________________________________________________________________________________
Q.4) WAP to change paisa into rupeese.
=>CLS
INPUT "Enter paisa "; P
RS = P / 100
PRINT "Rupeese value = "; RS
END
___________________________________________________________________________________
Q.5) WAP to change minutes into hours and minutes.
=> CLS
INPUT "Enter total minutes"; M
H = M \ 60
MIN = M MOD 60
PRINT "Total hours = " ; H
PRINT "Remaining minutes = "; M
END
__________________________________________________________________________________
=> CLS
INPUT "Enter degree celsius value" ; D
F = ( 9 * C / 5 ) + 32
PRINT "Degree Fahrenheit value = "; F
END
__________________________________________________________________________________
Q.2) WAP to change dollar into Nepali currency.
=> CLS
INPUT "Enter Dollar value"; USD
NRS = USD * 100
PRINT "Nepali currency value = "; NRS
END
___________________________________________________________________________________
Q.3) WAP to change Indian currency into Nepali currency.
=> CLS
INPUT "Enter Indian currency value"; IC
NRS = IC * 1.6
PRINT "Nepali currency value = "; NRS
END
__________________________________________________________________________________
Q.4) WAP to change paisa into rupeese.
=>CLS
INPUT "Enter paisa "; P
RS = P / 100
PRINT "Rupeese value = "; RS
END
___________________________________________________________________________________
Q.5) WAP to change minutes into hours and minutes.
=> CLS
INPUT "Enter total minutes"; M
H = M \ 60
MIN = M MOD 60
PRINT "Total hours = " ; H
PRINT "Remaining minutes = "; M
END
__________________________________________________________________________________
Comments
Post a Comment