Write the pseudocode for below problem
Compute the area of a triangle given the length of its altitude and base.
```
INPUT altitude
INPUT base
LET area = (altitude * base) / 2
OUTPUT area
```
You might also like to view...
Which type of instruction will cause a set of instructions to execute as long as a specified Boolean expression is true?
a. If/Else b. Loop c. Repeat d. While e. None of these
In the accompanying figure, the yellow blend has not been expanded.
Answer the following statement true (T) or false (F)
When this process is complete, the list elements that are still set to 1 indicate that the subscript is a prime number. These subscripts can then be printed. Write a program that uses a list of 1000 ele- ments to determine and print the prime numbers between 2 and 999. Ignore element 0 of the list.
A prime integer is any integer greater than 1 that is evenly divis- ible only by itself and 1. The Sieve of Eratosthenes is a method of finding prime numbers. It operates as follows: a) Create a list with all elements initialized to 1 (true). List elements with prime subscripts will remain 1. All other list elements will eventually be set to zero. b) Starting with list element 2, every time a list element is found whose value is 1, loop through the remainder of the list and set to zero every element whose subscript is a multiple of the subscript for the element with value 1. For list subscript 2, all elements beyond 2 in the list that are multiples of 2 will be set to zero (subscripts 4, 6, 8, 10, etc.); for list subscript 3, all elements beyond 3 in the list that are multiples of 3 will be set to zero (subscripts 6, 9, 12, 15, etc.); and so on.
In a crosstab query, what data is found at the intersection of the rows and columns?
A) Row heading B) Column heading C) Aggregating D) Query title