تم الحل ✓
categoryبرمجة وتطوير البرمجيات
schoolبكالوريوس
event_available2026-07-14
السؤال
Transcribed Image Text:
Problem 1
At a local university, each engineering major requires a different number
of credits for graduation. For example, recently the requirements were as
follows:
Civil Engineering
130
Chemical Engineering
130
Computer Engineering
122
Electrical Engineering
126.5
Mechanical Engineering
129
Prompt the user to select an engineering program from a menu. Use a
switch/case structure to send the minimum number of credits required
for graduation back to the command window.
Problem 2.a
Use a for loop to sum the elements in the following vector:
[1, 23, 43, 72, 87, 56, 98, 33]
x =
Check your answer with the sum function.
Problem 2.b
Use a for loop to create a vector of the squares of the numbers 1 through 5.
check_circle الجواب — حل مفصل خطوة بخطوة
hourglass_top
🔒
الحل الكامل متاح للمشتركين
اشترك في أرشيف الأسئلة لعرض هذا الحل وآلاف الحلول المفصلة خطوة بخطوة من معلمين معتمدين.