Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

for algorithm only!! This lab requires you to think about the steps that take place in a program by writing algorithms. Read the following program

for algorithm only!! This lab requires you to think about the steps that take place in a program by writing algorithms. Read the following program prior to completing the lab

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: Examine the following algorithm.

Get the student name.

Get the degree program name.

Subtract the number of credits taken so far from the required credits for the degree.

Get the number of credits required for the degree program.

Get the number of credits the student has taken so far.

Display the input information in Step 1 and 2.

Display the calculated information.

Step 2: What logic error do you spot and how would you fix it?

Step 3: What steps require user interaction (Ex: user must type in some input)?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Marketing The New Profit Frontier

Authors: Ed Burnett

1st Edition

0964535629, 978-0964535626

More Books

Students also viewed these Databases questions