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.

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

Studypool's Notebank makes it easy to buy and sell old notes, study guides, reviews, etc.
Click to visit
The Notebank
...
Jul 22nd, 2015
...
Jul 22nd, 2015
Jun 26th, 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