Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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



Turn On Satelite Box

System Initializes and determines Service Plan

Press Channel 125 on remote

Signal is sent to Satellite and determines this is a pay per view for service channel

If BUY signal is received, send Movie to TV

If preview is selected, send 10 minutes of preview to TV

If Trailer is selected, send theater trailer to TV

If no option is selected, return to previous channel

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