Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This program is most easily solved using just five variables. Identify potential

ID: 3874915 • Letter: T

Question

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). Complete the pseudocode by writing the two missing lines. (Reference: Prompting the User, page 42). Display "Enter student name." Display "Enter degree program." Input degreeName Input creditDegree Display "Enter the number of credits taken so far." What two things are wrong with the following calculation? (Reference: Variable Assignment and Calculations, page 43). creditsLeft = creditTaken - creditsDegree Write the exact output you would expect from the following line of code if the user of the program enters "Bill Jones". (Reference: Displaying Items, page 40 - 41). Display "The student 's name is ", studentName Write the exact output you would expect from the following line of code if the user of the program enters a degree that is 63 credits in total and they have taken 40 credits. (Reference: Displaying Items, page 40 -41).

Explanation / Answer

Step 1:

Step 2:

Display "Enter Student name. "

Input studentName

Display "Enter degree program. "

Input degreeName

Display "Enter total credits for degree. "

Input creditsDegree

Display "Enter the number of credits taken so far ."

Input creditsTaken

Step 3:

creditsLeft = creditsDegree - creditsTaken

Step 4:

The Student's name is Bill Jones

Step 5:

Credits Left is 23

63 -40 = 23 so credits left is 23

Variable Name Problem(yes or no) If yes, whats wrong Declare Real creditsTaken no Declare Real credits Degree yes space is not allowed in variable name Declare Int creditsLeft yes datatype should be Integer Declare Real studentName yes Real is not valid datatype for studentName Declare String degreeName no
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote