Module main() // Local variables Declare Integer books // Get number Call getBooksPurchased(books) // Display points earned Select books Case 0: Display "0 points earned" Case 1: Display "5 points earned" Case 2: Display "15 points earned" Case 3: Display "30 points earned" Default: Display "60 points earned" End Select End Module // The getBooksPurchased module gets number of books purchased // and stores it in the number reference variable. Module getBooksPurchased (Integer Ref number) Display "How many books did you buy this month?" Input number End Module I want to learn about program analysis, task hierarchy chart, pseudo code, and Raptor flowchart. Please help me do this
Module main()
// Local variables
Declare Integer books
// Get number
Call getBooksPurchased(books)
// Display points earned
Select books
Case 0:
Display "0 points earned"
Case 1:
Display "5 points earned"
Case 2:
Display "15 points earned"
Case 3:
Display "30 points earned"
Default:
Display "60 points earned"
End Select
End Module
// The getBooksPurchased module gets number of books purchased
// and stores it in the number reference variable.
Module getBooksPurchased (Integer Ref number)
Display "How many books did you buy this month?"
Input number
End Module
I want to learn about program analysis, task hierarchy chart, pseudo code, and Raptor flowchart. Please help me do this
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images