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
ella [17]
3 years ago
13

Write a program. in QBAsSIC

Computers and Technology
1 answer:
goblinko [34]3 years ago
5 0

Answer:

The program is as follows:

<em>5 INPUT A,B</em>

<em>6 PROD = A * B</em>

<em>7 PRINT PROD</em>

<em>8 TOTAL = A + B</em>

<em>9 PRINT TOTAL</em>

<em>10 DIFF = A - B</em>

<em>11 PRINT DIFF</em>

<em>12 END</em>

Explanation:

This gets input for the two numbers

<em>5 INPUT A,B</em>

This calculates the product

<em>6 PROD = A * B</em>

This prints the calculated product

<em>7 PRINT PROD</em>

This calculates the sum

<em>8 TOTAL = A + B</em>

This prints the calculated sum

<em>9 PRINT TOTAL</em>

This calculates the difference

<em>10 DIFF = A - B</em>

This prints the calculated difference

<em>11 PRINT DIFF</em>

This ends the program

<em>12 END</em>

You might be interested in
How can I use images from the World Wide Web in my coursework without breaking the law?
DaniilM [7]

you can't. but you can just cite the websites the pictures are from so you won't be committing plagiarism.

5 0
3 years ago
Read 2 more answers
Converting Denary to Binary
Dmitrij [34]

Answer:

Converting the numbers provided to decimal:

128: 10000000

64: 01000000

32: 00100000

16: 00010000

1: 00000001

56: 00111000

121: 01111001

45: 00101101

132: 10000010

245: 11111001

4 0
3 years ago
Write a function swaparrayends() that swaps the first and last elements of the function's array parameter. ex: sortarray
Katena32 [7]
Def swapArrayEnds( array ):
    tmp = array[ len( array ) - 1 ]
    array[ len( array ) - 1 ] = array[ 0 ]
    array[ 0 ] = tmp


3 0
3 years ago
Question 1 of 10
grin007 [14]

Answer:

D

Explanation:

The other answer choices make no sense so it's D.

7 0
3 years ago
Read 2 more answers
What information does the Media Access Control (MAC) on a network card provide?
kiruha [24]

What information does the Media Access Control (MAC) on a network card provide?

A. the computer in a network where data started out

B. the speed at which data can be sent to another node in the network

C. the company that installed the network card into the computer’s motherboard

D. the device in the network where data will be displayed

<u>Answer:</u>

C. the company that installed the network card into the computer's motherboard

<u>Explanation:</u>

When we connect computer to network we need network card, in other way round we called it as NIC (Network interface card), and each network card is accessed with tcpip address. Tcpip address is (provided) normally fetched by local area network or wireless network or access point.

Each NIC has mac address. This mac (media access control) address we can easily find location of pc or computer or laptop. Media access control which contains following information, Access media, what are things is been surfed through network.

3 0
3 years ago
Other questions:
  • The pseudo-class selectors for links let you use CSS to change the formatting for all but one of the following. Which one is it?
    12·1 answer
  • Which of the following is the ribbon path to the cell styles button? (home tab | styles group) (styles tab | home group) (home t
    6·1 answer
  • How many bytes of information can be stored on a hard drive?
    7·1 answer
  • Arrange these steps of creating a presentation in the correct order.
    15·2 answers
  • Why transport layer is usingconnectionless services if network layer is providing connection oriented services?
    10·1 answer
  • Explain what a lookup table is (assembly). Write pseudo code
    13·1 answer
  • The __________ is a center of Internet security expertise and is located at the Software Engineering Institute, a federally fund
    5·2 answers
  • What is a computer? ​
    13·2 answers
  • Examples of ________, which is hosted on a web site, include e-mail, word processing, tax preparation, and game programs.
    9·1 answer
  • Write the working principle of a computer and explain it. ​
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!