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

Computer Science
Tutor: None Selected Time limit: 1 Day

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.

Jul 22nd, 2015

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

Are you studying on the go? Check out our FREE app and post questions on the fly!
Download on the
App Store
...
Jul 22nd, 2015
...
Jul 22nd, 2015
Dec 9th, 2016
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