我怎么用伪代码写这个?

时间:2017-05-01 16:07:40

标签: python pseudocode flowchart

我目前正在攻读计算机科学专业的JavaScript,只是需要一些关于我的伪代码的帮助,因为我感到困惑。任务是在python中创建一个电话故障排除系统。我已完成任务1的基本流程图,但由于问题过多,我现在正在努力用伪代码编写它。任何人都可以指导我朝正确的方向发展吗?

流程图:click here

我的Pseudocode开始了:

char

感谢。

1 个答案:

答案 0 :(得分:0)

answeer=''
answer2=''
answer3=' '

print ('screen question1 here')
answer = input ('user answer')
if answer=='yes':
    print ('screen question2 here')
    answer2 = input('user answer') 
else:
    print ('battery question1 here')
    answer3 = input('user answer')

if answer2 == 'yes':
    print ('screen question3 here')
else:
    pass

这只是一个想法,其余的由你决定。

See this code working here

相关问题