Draw the logic flowchart or write the pseudocode to solve the following problems:
Problem #1:I want to read a file that contains all students at the college. The file
I am going to read has student idno, name, major, gpa. I want to
print out a report that has only CIS majors with a gpa below 2.5. I want to print the
students id, name, major and gpa. At the end of the report I want to print two totals.
I want a total of all CIS majors and I want a total of all CIS majors that had a gpa below
2.5.
Problem #2:The computer will generate a random number from 1 to 25. The user will
enter a number. The program will respond and tell the user whether their guess is too
high or too low or if they guessed the number. If the user did not guess the number, they
must enter another number. The computer will again respond. Continue the loop until
the user guesses the number.
For extra credit: Give the user only 5 guesses to guess the number.
Problem #3:Before you allow processing to be done, the user must enter the correct password at the
screen. The password is stored in the first record of the file that is being opened and
processed. The user gets three chances to get the password correct. If the password is not
correct after three passes, the program ends.
If the password is correct, the file is processed.
The first record on the file has one field that contains the password in the itemno field, the
rest of the fields are blank.
The rest of the records on the file contain the following fields: itemno, itemname, cost,
price, onhand, onorder, reorderpt, numbertoorder.
The processing you want to do is the following:
- if the difference between the cost and the price is 10.00 or more and the onhand is
less than the reorder point, you want to place an order.
- if the onhand plus the onorder is less than the reorder point, you want to place an order
- otherwise you do not want to place an order
The order should list the itemno, the itemname, the cost and the numbertoorder.
This is due in two weeks. This will give you time to play with it and ask questions.