1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
sergeinik [125]
3 years ago
10

Write a Qbasic program to read the value of base and height of a triangle and find its area. ​

Computers and Technology
1 answer:
Komok [63]3 years ago
5 0

Answer:

The program to this question as follows:

Program:

PRINT "Program: Area of Triangle" 'print message

INPUT "Enter base: ", base 'defining the variable base and input value from the user

INPUT "Enter height:",height 'defining variable height and input a value from user

Area=base*height/2 'formula to calculate Area

PRINT "Area of Triangle:", Area 'print Area

Output:

Program: Area of Triangle

Enter base:   2

Enter height:  3

Area of Triangle: 3

Explanation:

In the above Qbasic program, first, a print function is used to print the message. In the next line, the input function is defined, which uses the "base and height" variable for user input.

Then another variable "Area" is defined that uses user input values to calculate the area of a triangle, and also store its calculated value.  At the last, the print function is used to print Area variable value  

You might be interested in
What is an example of a primary storage
Feliz [49]
Primary storage is usually termed as the viotile storage unit directly accessible as the main device to the CPU. So the main form of primary storage is RAM. It is the main storage unit where you keep your long term memory for your computer
5 0
4 years ago
Which area located at the top of the word screen includes home , insert , and page layout ?
Misha Larkins [42]

Answer:

Whats your qeustion

Explanation:

4 0
3 years ago
Read 2 more answers
For the following graph, what is the goal state? A. state = GOAL B. state = E C. state= D D. cost >= 6
ser-zykov [4K]

Answer:

i think it A but idk but in my opinion i think it is A hope you get it correct

Explanation:

8 0
3 years ago
The basic building blocks of java is known as<br><br><br><br>Reply fast! plzzzzzzzzzzz!!!
Nadya [2.5K]

Answer:

A class is the basic building block in Java.

8 0
3 years ago
A desktop computer (named workstation22) can’t connect to the network. A network card was purchased without documentation or dri
Lelechka [254]

Answer:

<em>The first step is to download the driver file from the Internet using  another Computer system, Copy the driver to a flash or CD then run the installation file on the Desktop Computer.</em>

Explanation:

<em>Driver files can be easily gotten from software sites online or from other secure websites, most times you have to pay for these driver files in some sites for secure and authentic download.</em>

<em>it is very necessary  that the user takes note of the exact system name, model and system architecture with respect to when downloading the driver file.</em>

4 0
4 years ago
Other questions:
  • Rina has misspelled a word many times in her document. Which is the fastest way she can correct the mistake?
    11·1 answer
  • What is the purpose of an internet protocol address (ip address)?
    5·1 answer
  • A short circuit locator should be periodically run along the cords used in a shop to check for shorts and open circuits. A.)True
    12·2 answers
  • How do i get more coding programs
    14·2 answers
  • Technician A says that oil for the rod bearings comes from splash off the crankshaft. Technician B says that lubrication to the
    14·1 answer
  • Please help to question 16 and 17 please
    10·1 answer
  • Define Indentation
    8·1 answer
  • Which of the following represents a transition?
    5·1 answer
  • I need help, thank you
    7·1 answer
  • In 5-10 sentences, describe the procedure for responding to an e-mail message.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!