(06 FUNC) Functions Assignment Instructions Last Changed: 1/13/2019 Read and follow the directions below carefully, and perform the steps in the order listed. You will be creating one program as...

please see the attached


(06 FUNC) Functions Assignment Instructions Last Changed: 1/13/2019 Read and follow the directions below carefully, and perform the steps in the order listed. You will be creating one program as instructed and turning in your work electronically via an uploaded assignment (zip folder) within Eagle Online Canvas. Make sure and check your work prior to uploading the assignment (Print this instruction sheet if needed). Instructions 1. Create an Xcode project using the template of macOS Command Line Tool. Name your project FirstName_LastName_Functions and select Swift as language. 2. Write a program that calculates student semester average and final letter grade. The program should display the semester average and final letter grade. The semester average is calculated based on three exams and each exam has its own weight. Write the following functions in the program: calcAverage: This function should pass three exam scores as input parameters and return the semester average. The calculation of semester average is based on weighted average. Exam1 has weight of 20%, exam2 has weight of 30% and exam3 has weight of 50%. determineGrade: This function should pass average as input parameter and return a letter grade, based on the following grading scale: Average Letter Grade 90-100 A 80-89 B 70-79 C 60-69 D Below 60 F displayGrades: This function should pass average and letter grade as input parameters, and display both information. This function does not return any value. Assume exam1 = 90, exam2 = 80, exam3 = 70 3. Make sure to apply the followings in your program: • Refer to swift code examples developed in-class and provided in the reading materials • Add comments in your code to document your program • Use descriptive and appropriate variable names/identifiers • Use constant(s) appropriately • Have proper indentation and line spaces in your source code for readability • Have a HEADER comment block (to include your Name, Date created, Description/Purpose of the program) 4. Zip the project folder created in Step 1 and upload into Eagle online Canvas Submit Assignment link You may now proceed to the next link within this Module to complete the Quiz.
Mar 30, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here