write the pseudocode and draw the flowchart to calculate how many words entered by the user until the user enters the word "stop" by using while/end while loop logic structure
Pseudocode for this problem -
1. String P = "NULL";
2. int count=0
3. Print ( Enter the word)
4. Input ( string P)
5. while( P ! = "Stop" )
6. {
7. Input(string P)
8. count=count+1
9. }
10. return count
FlowChart for this program is ----
Program to run above pseudocode in C --
write the pseudocode and draw the flowchart to calculate how many words entered by the user...
# C++ Draw a flowchart or write pseudocode to represent the logic of a program that allows the user to enter two values. The program outputs the sum of and the difference between the two values.
Please do the following: a-) Write a pseudocode that receives a positive number from the user, and then, starts printing and keep printing the word “CS” until the number of the printings matches the received number from the user. b-) Write an algorithm for the same problem. c-) Draw a flowchart for the same problem
You can draw the flowchart using the Word's drawing tool, or draw the flowchart on a piece of paper, take a picture, insert it here or save it in the submission folder The program reads an unspecified number of integers until a zero is entered. While the program reads each number it counts the number of positive numbers and the number of negative numbers that have been entered and sum up the values of the numbers entered. After the user...
Write a program and flowchart. The program should ask the user how many customers they want to track. Then, it asks for customer numbers, and sales by customer. At the end, it prints out the customer number, the customer sales, and then the total sales and average sales. You must use two different arrays, one for customer number, and one for sales. These are, in effect, parallel arrays. You must use a "while" loop to gather customer number and sales....
Example 3: Draw a flowchart that performs the following: Ask a user to enter a number. If the number is between 0 and 10, write the word blue. If the number is between 10 and 20, write the word red. if the number is between 20 and 30, write the word green. If it is any other number, write that it is not a correct color option. Example 4: Draw a flowchart to print all multiples of 5 between 1...
This is a C program. please help me to write a pseudocode of the program . also, I want the program In a do...while loop and the screen output should look like in the picture. please help me. 3.1. Write a program that asks the user to continue to enter two numbers (at a time). For each pair of numbers entered, the program calculates the product of those two numbers, and then accumulate that product. For each pair of numbers...
6. Write a program (compile and run), a pseudocode, and draw a flowchart for each of the following problems: a) Obtain three numbers from the keyboard, compute their product and display the result. b) Obtain two numbers from the keyboard, and determine and display which (if either) is the smaller of the two numbers. c) Obtain a series of positive numbers from the keyboard, and determine and display their average (with 4 decimal points). Assume that the user types the...
C in linux 5. Write a script using if…the…elif to compare three words entered by the user and compare if any two match. 6. Write a script using the for loop construct that lists the names of the directory files in the working directory by looping through the files in the working directory and using test to determine which files are directory files. 7. Write a script using the while loop construct that generates 100 randomly generated numbers between 0...
Write a program and flowchart. The program should ask the user how many customers they want to track. Then, it asks for customer numbers, and sales by customer. At the end, it prints out the customer number, the customer sales, and then the total sales and average sales. You must use two different arrays, one for customer number, and one for sales. These are, in effect, parallel arrays. You must use a "while" loop to gather customer number and sales....
In Python, write a function numLetters() that keeps prompting the user for words until they hit return (using while loops). The function should then return the percent of 3-letter words that were entered. So, if a user entered ten words and 4 of the words had 3 letters, then the percent of 3-letter words is 40