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]
- 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
I was wondering if anyone would be able to help me with the following pseudocode so that it looks go...
Video Game Player Program
Write a program to do the following. In main declare a Player Name Ar...
Write a program to do the following: In main, declare a Player Name Array and a Score Array. Decla...
Write the pseudocode that will produce a receipt in the format specified above.
Your solution shou...