70.1k views
3 votes
Click to Launch

Publique la respuesta para uno de los siguientes ejercicios.
1. The programmer intends for this pseudocode to display three random numbers in
the range of 1 through 7. According to the way we've been generating random
numbers in this book, however, there appears to be an error. Can you find it?
// This program displays three random numbers
// in the range of l through 7.
Declare Integer count
// Display three random numberg.
Por count 1 TO 3
Display random( 7, 1)
End For
2. Can you find the reason that the following pseudocode function does not return
the value indicated in the comments?
// The calcdiscount Price function accepts an item's price and
// the discount percentage as arguments. It uses those
// values to calculate and return the discounted price.
Function Real calcDiscountPrice (Real price, Real percentage)
// calculate the discount.
Declare Real discount price • percentage
// Subtract the discount from the price.
Declare Roal discount Price price dincount
// Return the discount price,
Return discount
End Funclion

1 Answer

7 votes

Answer:

bts bayot☺️

Step-by-step explanation:

HAHAHAHAHHAHAHAHAHAHAHAHAHAHAHAHAHAHHAAHAHHAHAHAHAHAHHAHAHAHA

User Tne
by
3.2k points