Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Name: Critical Review An algorithm is a set of well - designed logical steps that must take place in order to solve a problem. The

Name:
Critical Review
An algorithm is a set of well-designed logical steps that must take place in order to solve a problem.
The flow the algorithm takes is sequential. For example, before you process calculations, all data needed should be retrieved.
This Hands-On requires you to think about the steps that take place in a program by writing algorithms. Read the following program prior to completing the Hands-On.
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 30 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)?
image text in transcribed

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 Administration The Complete Guide To Dba Practices And Procedures

Authors: Craig S. Mullins

2nd Edition

0321822943, 978-0321822949

More Books

Students also viewed these Databases questions