Skip to main content

Posts

Featured

  SOLVED_PROBLEM 1. Write a program in QBASIC to input the height, base and find out the area of triangle.  INPUT "Enter a height"; H INPUT "Enter a base"; B A = 1 / 2 * (H * B) PRINT "Area of triangle"; A END 2. Write a program that convert centigrade temperature to Fahrenheit temperature. The formula is: F = (9 / 5) * C + 32. F is Fahrenheit temperature and C is the centigrade temperature.  REM "Convert a temperature from centigrade to Fahrenheit" CLS INPUT "Enter the temperature in centigrade"; C F = C * (9 / 5) + 32 PRINT "The Fahrenheit value is:"; F END 3. Write a program to find the cost of painting the four wall of a room. CLS INPUT "Enter length of the room"; L INPUT "Enter breadth of the room"; B INPUT "Enter height of the room"; H INPUT "Enter the cost of painting"; C A = (2 * (L + B)) * H T = C * A PRINT "The total cost of painting:"; T END 4. Write a program to cal...

Latest posts

QBASIC Statements

QBASIC Element

QBASIC Introduction