I want you to create flowcharts for the following problems. You may have realized now how to create a correct, accurate and acceptable solution. Put them in short bond paper with the format given by Mam
Jenny Lou. You need to pass your work on our first meeting next week (Sep 15-19). Work your own.
1. Given two numbers X and Y. Draw a flowchart to determine the difference between X and Y. If X – Y is negative, compute R = 2X + 2Y; if X – Y is zero, compute R = X + Y; and if X – Y is positive, compute R = X *
Y2. Print out the values of X, Y and R.
2. Draw a flowchart which will read and print the names and individual scores of 50 students for a particular examination. Also, determine their average score, and print it out. …show more content…
3.
Create a flowchart that asks the user to enter a month in numbers and then prints the name of the month and the number of days in that month. For February, print “28 days.”
4. Create a flowchart that reads three numbers and prints “THEY ARE THE SAME” if they are all the same, “THEY ARE DIFFERENT” if they are all different, and “NEITHER” otherwise.
5. Ask a user to input a radius and compute for the area of circle and volume of a sphere. Your program will terminate if the previous inputted value is equal to the new inputted value for the radius.
6. With the use of a switch and a sentinel data value, draw a flowchart to print out all numbers that is multiple of 2 from 1 to 50, and determine the sum of all the numbers.
7. The value of y is defined as follows: y=x2+2x-3 if x is negative
y=5x+7 if x is positive y=0 if x is zero
Create a flowchart that will find y, given a user entry for x. The user needs to input 3 values of x.
Some more problems that is similar to your previous ones.
8. Create a flowchart that will read five numbers. Determine if two numbers are the same from the input. If there is, output “There is a duplicate number” and the number. If not, output “There is no duplicate number.” Assume only two numbers are similar.
9. Ask a user to input a value and compute from that value the area of a square and volume of a cube.
Your program will terminate if the previous inputted value is equal to the new inputted value.
10. With the use of a switch and a sentinel data value, draw a flowchart to print out the sum of the squares of all even and odd numbers from 1 to 100.
It is expected that the output will be a personal work coming from your own reasoning seasoned with hard work and flavored with simulation for a flavorful and satisfying answer.
START WITH THE STUDY OF THE TUTORIAL COMING FROM THE LINK I HAVE POSTED.
- ngduarte -