Question

Faculty of Engineering A standard full time year of study is equivalent to 8 credit points or one Equivalent Full-Time Studen

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Program in Python:

credit_points = [6, 12, 18, 24, 30, 36, 42, 48] course_fee = [$4,737.50, $9,475.00, $14,212.50, $18,950, $23,687.50,

Output:

32 is not in list
$23,687.50
$37,900.00
$4,737.50
4 is not in list
54 is not in list

N.B. Whether you face any problem then share with me in the comment section, I'll happy to help you.

credit_points = [6, 12, 18, 24, 30, 36, 42, 48] course_fee = ['$4,737.50', '$9,475.00', $14,212.50', '$18,950', $23,687.50', $28,425.00', $33,162.50', '$37,900.00'] def calcE3001Fees (creditPoints): # Function returns the fees flag = False for i in range(len(credit_points)): if credit_points[i] == creditPoints: flag = True break if flag is True: return course_fee[i] else: return str(creditPoints)+' is not in list' print(calcE3001Fees (32) print(calcE3001Fees (30)) print(calcE3001Fees (48)) print(calcE3001Fees (6)) print(calcE3001Fees(4)) print(calcE3001Fees (54))

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

credit_points = [6, 12, 18, 24, 30, 36, 42, 48]
course_fee = ['$4,737.50', '$9,475.00', '$14,212.50','$18,950', '$23,687.50', '$28,425.00', '$33,162.50', '$37,900.00']

function calcE3001Fees(creditPoints)
{
   // Function returns the fees
   let flag = false
   for(var i = 0; i < credit_points.length; ++i)
   {
       if(credit_points[i] === creditPoints)
       {
           flag = true;
           break;
       }
   }
   if(flag == true)
   {
       return course_fee[i];
   }
   else
   {
       return creditPoints + ' is not in list'
   }
}

console.log(calcE3001Fees(32))
console.log(calcE3001Fees(30))
console.log(calcE3001Fees(48))
console.log(calcE3001Fees(6))
console.log(calcE3001Fees(4))
console.log(calcE3001Fees(54))

Add a comment
Know the answer?
Add Answer to:
Faculty of Engineering A standard full time year of study is equivalent to 8 credit points...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Consider the following table of data points: Using least squares fitting, find the polynomial Q(x) of degree 2 that fit...

    Consider the following table of data points: Using least squares fitting, find the polynomial Q(x) of degree 2 that fits the data points given in the table above. Approximate f(0.3) using Q(0.3). f(x) i Xi 0 0.000 1.00000 1 0.125 0.98450 2 0.250 0.93941 0.375 0.86882 4 0.500 0.77880 5 0.625 0.67663 6 0.750 0.56978 0.875 0.46504 8 1.000 0.36788 f(x) i Xi 0 0.000 1.00000 1 0.125 0.98450 2 0.250 0.93941 0.375 0.86882 4 0.500 0.77880 5 0.625 0.67663...

  • Consider the following table of data points: Using least squares fitting, find the polynomial Q(x) of...

    Consider the following table of data points: Using least squares fitting, find the polynomial Q(x) of degree 2 that fits the data points given in the table above. Approximate f(0.3) using Q(0.3). Use P(x) = Ax2+Bx +C to find 3 equations and then find A,B,C. f(x) i Xi 0 0.000 1.00000 1 0.125 0.98450 2 0.250 0.93941 0.375 0.86882 4 0.500 0.77880 5 0.625 0.67663 6 0.750 0.56978 0.875 0.46504 8 1.000 0.36788

  • An engineering student has finished his freshman year and has been offered a full-time job with...

    An engineering student has finished his freshman year and has been offered a full-time job with a salary of $20,000/year with prospects of his salary increasing at a rate of $1,200/year until his retirement at the end of 33 years. If he takes the job, the student will leave school and not finish his engineering degree. If he decides to stay in college, tuition and fees will be $10,000 next year and increase by 7% per year for the next...

  • Budgeting for an Academic Department at a State University: Can You Believe the Numbers? INTRODUCTION You...

    Budgeting for an Academic Department at a State University: Can You Believe the Numbers? INTRODUCTION You are the senior accounting faculty member in the business school and your dean, Dean Weller, is asking for help. She is very discouraged after a midyear budget meeting with the Vice President of Finance. The college's Department of Social Work has a large budget deficit, and because of this the VP is inclined towards closing the department entirely or closing its bachelor's program. The...

  • In this exercise, we will be refactoring a working program. Code refactoring is a process to...

    In this exercise, we will be refactoring a working program. Code refactoring is a process to improve an existing code in term of its internal structure without changing its external behavior. In this particular example, we have three classes Course, Student, Instructor in addition to Main. All classes are well documented. Read through them to understand their structure. In brief, Course models a course that has a title, max capacity an instructor and students. Instructor models a course instructor who...

  • microbiology case study (worth 25 points) 1) A first-year microbiology student clad in shorts overturns his...

    microbiology case study (worth 25 points) 1) A first-year microbiology student clad in shorts overturns his motorcycle on a patch of gravel. He sustains considerable abrasions and deep lacerations of the right leg. Emergency room personnel have great difficulty trying to remove embedded gravel and dirt. Later many areas of infection develop, and dead tissue can be seen at other sites of the abrasions. A) Describe any pathogenic processes that could be occurring at the sites of injury [invasion, attachment,...

  • Case Study 1: Should a Computer Grade Your Essays? Would you like your college essays graded...

    Case Study 1: Should a Computer Grade Your Essays? Would you like your college essays graded by a computer? Well, you just might find that happening in your next course. In April 2013, EdX, a Harvard/MIT joint venture to develop massively open online courses (MOOCs), launched an essay-scoring program. Using arti ficial intelligence technology, essays and short answers are immediately scored and feedback tendered, allowing students to revise, resubmit, and improve their grade as many times as necessary. The non-profit...

  • Program 7 Arrays: building and sorting (100 points) Due: Friday, October 30 by 11:59 PM Overview...

    Program 7 Arrays: building and sorting (100 points) Due: Friday, October 30 by 11:59 PM Overview For this assignment, write a program that will calculate the quiz average for a student in the CSCI 240 course. The student's quiz information will be needed for later processing, so it will be stored in an array. For the assignment, declare one array that will hold a maximum of 12 integer elements (ie. the quiz scores). It is recommended that this program be...

  • Please Use your keyboard (Don't use handwriting) *******Please re-write my answer I need new and unique...

    Please Use your keyboard (Don't use handwriting) *******Please re-write my answer I need new and unique answers, please. (Use your own words, don't copy and paste)***** Case Study 1: Should a Computer Grade Your Essays? Would you like your college essays graded by a computer? Well, you just might find that happening in your next course. In April 2013, EdX, a Harvard/MIT joint venture to develop massively open online courses (MOOCs), launched an essay-scoring program. Using artificial intelligence technology, essays...

  • This year Evan graduated from college and took a job as a deliveryman in the city....

    This year Evan graduated from college and took a job as a deliveryman in the city. Evan was paid a salary of $68,500 and he received $700 in hourly pay for part-time work over the weekends. Evan summarized his expenses below: Cost of moving his possessions to the city (125 miles away) Interest paid on accumulated student loans Cost of purchasing a delivery uniform Contribution to State University deliveryman program $1,200 2,840 1,440 1,320 Calculate Evan's AGI and taxable income...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT