Question: ****Please answer this question both section / parts 1 and 2 using Coral programming language.** Write the following programs in just one language, Coral. Assignment

****Please answer this question both section / parts 1 and 2 using Coral programming language.**

Write the following programs in just one language,Coral.

Assignment

Part 1

Write a program that asks for the number of credits you have earned to date (may be zero for freshman). Then ask for the number of credits you are taking this semester.Make sureall inputs have an appropriate prompt. By appropriate, I mean a prompt anyone would understand, not just someone who is writing the program.

The output

Display on screen your current class status. A freshman is defined as a student having completed between 0 and23 credits,a sophomore between24 and 59 credits, a junior is between 60-89credits and a senior will have 90 or more completed credits. All values entered will be integers.

Then display:

youranticipatedclass status following the current semester

the minimum number of additional credits you will need to graduate after this semester (you nowneed 120 credits for most degrees at UND) the number of additional semesters it will take to graduate if you take15 credits per semester (assuming you pass all credits taken this semester

Part 2

Write each of the following functions. Remember that none of the required functions should generate output. All of the functions should return a value, that can be used to create output. You can assume that the intValue variable referenced in the required functions is an integer.

square (intValue)- This function returns the square of intValue.

summation (intValue)- This function returns the summation of1to intValue. You can assume that intValue will be positive. For example, summation(5)would return15 (1 + 2 + 3 + 4 + 5).

sumOfSquare (intValue) This function returns the sum of the squares from 1 to intValue. For example,

sumOfSquares(5) would return55 (1 + 4 + 9 + 16 + 25). YouMUSTuse a loop and the

square function to determine the returned value.

printName () This function should write your name to the display

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!