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

In Matlab, write a modular program that asks the user for the total number of co

ID: 3574520 • Letter: I

Question

In Matlab, write a modular program that asks the user for the total number of college credits they have earned and prints their undergraduate class standing. The class standing is defined as follows: Freshman: 0 – 44 credits, Sophomore: 45 – 89 credits, Junior: 90 – 134 credits, Senior: 135+ credits. This college counts quarter hours as our academic calendar is based on a 10 week per term quarter system. Other universities use the semester system where each class runs for 16 weeks. Semester credits can be converted to quarter credits on the basis of 2 semester credits equals 3 quarter credits. Some students will have earned only quarter credits, some will have only semester credits and some will have both. Make sure you include all the credits a student has earned when determining their class standing.

Explanation / Answer


c = input('Enter the credits: ');
if (gt(c,0) && ge(c,44))
fprintf('Freshman.');
elseif (gt(c,45) && ge(c,89))
fprintf('Sophomore');
elseif (gt(c,90) && ge(c,134))
fprintf('Junoir');
else
if (ge(c,135))
fprintf('Senior');
end
end

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