Constructing a simple flowchart that describes simple logic flow through a progr

label Computer Science
account_circle Unassigned
schedule 1 Day
account_balance_wallet $5

Constructing a simple flowchart that describes simple logic flow through a program;

Translating the flowchart into pseudo code;

Creating a simple module, based on the pseudo code created in step 2, which accepts a parameter and returns a value.

Oct 16th, 2017

Thank you for the opportunity to help you with your question!


pseudocode is: 

    sum = 0 
    count = 1 
    REPEAT 
     IF count is even THEN sum = sum + count 
     count = count + 1 
    UNTIL count > 20 
    DISPLAY sum
Model:
Am working on it few more minutes i'll upload

Please let me know if you need any clarification. I'm always happy to answer your questions.
Jul 22nd, 2015

pseudocode is: 

    sum = 0 
    count = 1 
    REPEAT 
     IF count is even THEN sum = sum + count 
     count = count + 1 
    UNTIL count < 20 
    DISPLAY sum

Module for this using cpp:

#include <iostream>

using namespace std;

int main() {

int sum=0,count=1;

while(count <20){

if(count%2==0)

{

   sum=sum+count;

   count=count+1;}

else{

   count++;

}

    cout<<sum<<endl;

}

return 0;

}



Jul 22nd, 2015
111.jpg

Did you know? You can earn $20 for every friend you invite to Studypool!
Click here to
Refer a Friend
...
Oct 16th, 2017
...
Oct 16th, 2017
Oct 17th, 2017
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer