Presentation is loading. Please wait.

Presentation is loading. Please wait.

Exercise Solution First questions What's output What's input

Similar presentations


Presentation on theme: "Exercise Solution First questions What's output What's input"— Presentation transcript:

1 Exercise Solution First questions What's output What's input
2/22/2019 Exercise Solution First questions What's output Results message What's input Dollar amount What variables are needed Two variables to hold the input and output Main Module Declare Integer dollars Declare String message End Module

2 Ex Sol What's first thing pgm must do? Then? Get Input Check if its 0
2/22/2019 What's first thing pgm must do? Get Input Then? Check if its 0 Figure out the bills Main Module Declare Integer dollars Declare String message Display “What is the dollar amount?” Input dollars While (dollars != 0) do the calculation End While End Module

3 EX Sol Then? Show the result Get a new amount Main Module
2/22/2019 Then? Show the result Get a new amount Main Module Declare Integer dollars Declare String message Display “What is the dollar amount?” Input dollars While (dollars != 0) do the calculation and create message Display message End While End Module


Download ppt "Exercise Solution First questions What's output What's input"

Similar presentations


Ads by Google