Question

Declare and initialize variables and two arrays in pseudocode

Answers

Variables:
- price: float
- quantity: integer
- name: string
- isAvailable: boolean

Arrays:
- names: array of strings
- prices: array of floats

Pseudocode:
Set price to 0.0
Set quantity to 0
Set name to ""
Set isAvailable to false

Set names to ["Tom", "Jerry", "Mickey", "Donald"]
Set prices to [5.99, 6.99, 4.99, 3.99]

Related Questions