Write a program that will take in basic information from a student, including student name, degree name, number of credits taken so far, and the total number of credits required in the degree program. The program will then calculate how many credits are needed to graduate. Display should include the student name, the degree name, and credits left to graduate. Step 1: This program is most easily solved using just five variables. Identify potential problems with the following variables declared in the pseudocode. Assume that the college has the ability to offer half credits. (Reference: Variable Names, page 39-40). Variable Name Problem (Yes or No) If Yes, what’s wrong? Declare Real creditsTaken Declare Real credits Degree Declare Int creditsLeft Declare Real studentName Declare String degreeName
Write a program that will take in basic information from a student, including student name, degree name, number of credits taken so far, and the total number of credits required in the degree program. The program will then calculate how many credits are needed to graduate. Display should include the student name, the degree name, and credits left to graduate.
Step 1: This program is most easily solved using just five variables. Identify potential problems with the following variables declared in the pseudocode. Assume that the college has the ability to offer half credits. (Reference: Variable Names, page 39-40).
Variable Name |
Problem (Yes or No) |
If Yes, what’s wrong? |
Declare Real creditsTaken |
|
|
Declare Real credits Degree |
|
|
Declare Int creditsLeft |
|
|
Declare Real studentName |
|
|
Declare String degreeName |
|
|
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images