Create a Flowchart and write pseudocode for a program that allows the user to enter two integer values: a and b.

Have the program do the following:

a. Find the sum of all whole numbers in the interval [a,b].

b. Find the product of all the odd numbers in the interval [a,b].

Respuesta :

Using the knowledge in computational language in C++ it is possible to write a code that create a Flowchart between two intervals.

Writing code in c++

#include <iostream>

using namespace std;

int main()

{

int a,b;

cout<<"Enter two values:"<<endl;

cin>>a>>b;

cout<<"Sum:"<<a+b<<endl;

cout<<"difference:"<<a-b<<endl;

return 0;

}

See more about C++ code at brainly.com/question/17544466

#SPJ1

Ver imagen lhmarianateixeira

A pseudocode for a program that allows the user to enter two integer values: a and b are Larger_of_Two_Numbers Set num1 to zero Set num2 to zero.

What is a pseudocode example?

Pseudocode is an synthetic and casual language that enables programmers expand algorithms. Pseudocode is a "text-based" detail (algorithmic) layout tool. The guidelines of Pseudocode are moderately straightforward. All statements showing "dependency" are to be indented.

  • "This application presents the bigger of  numbers."
  •  Print "Enter range 1: "
  • Read num1
  •  Print "Enter range 2: "
  • Read num2
  • IF ( num1 < num2 ) THEN
  •  Print "The large of ", num1, " and ", num2, " is: ", num2
  • ELSE
  •  IF ( num2 < num1 ) THEN
  •   Print "The large of ", num1, " and ", num2, " is; ", num1
  •  ELSE
  •   Print num1, " and ", num2, " are equal."
  •  ENDIF
  • ENDIF
  • END

Read more about the pseudocode :

https://brainly.com/question/24953880

#SPJ1

ACCESS MORE
EDU ACCESS