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

get value for x | Is x>25 -------yes--->x=x-10-----| no| | Is x>10 -------yes---

ID: 3614812 • Letter: G

Question

get value for x

                       |

           Is x>25 -------yes--->x=x-10-----|

                  no|                                         |   

           Is x>10 -------yes--->x=x-5------|

                  no|                                         |

           Is x>0    -------yes-->x=x-1-------|

                  no|                                          |

           Y=2*x                                            |

                       | <-----------------------------|

           Rest of program

Explanation / Answer

get value for x

                       |

           Is x>25 -------yes--->x=x-10-----|

                  no|                                         |   

           Is x>10 -------yes--->x=x-5------|

                  no|                                         |

           Is x>0    -------yes-->x=x-1-------|

                  no|                                          |

           Y=2*x                                            |

                       | <-----------------------------|

           Rest of program