I am having trouble understanding how to write Pseudocode. I know that it is inf
ID: 3545805 • Letter: I
Question
I am having trouble understanding how to write Pseudocode. I know that it is informal high level description of the operation you are trying to write code for. I have come up with the following scenerio that I need to write Pseudocode for, can anyone help with explanation please? Also, what would the C++ code look like for this
Cable TV Response to Service Options
Explanation / Answer
class cable:
int satellitebox = 1
initialise()
channel_number=125
if pay_for_view(channel_number)
if stat(channel_number)=='BUY'
transmit(channel_number.movie)
else if stat(channel_number)=='preview'
preview_10min(channel_number.movie)
else if stat(channel_number)=='trailor'
trailor(channel_number.movie)
else
return_prev()
//each function does what it is named after
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.