Write a user-defined function that calculates a student gpa

Assignment Help Basic Computer Science
Reference no: EM131041670

This assignment requires you to take your extended design from Week 4 IP and add proper indexes, a function, and a stored procedure. Your changes will provide functionality used by the teachers for screens such as a grade book. Be sure any code is properly formatted and has appropriate comments.

Part 1: Function

Write a user-defined function (UDF) that calculates a student's GPA for a given time frame. Inputs are StudentId int, ClassStartDateStart datetime, and ClassStartDateEnd datetime. The output should be the student's GPA for all classes that were taken between ClassStartDateStart and ClassStartDateEnd. Also, supply the script to call this new function, passing it parameter values of your choice.

Part 2: Stored Procedure

Write the DDL script to make a stored procedure that returns data needed to display a grade book screen for a professor. The only input for the stored procedure is a ClassId. Outputs need to include student names and grades for all assignments as well as a calculated overall grade for the class for each student. Provide an example calling this new stored procedure, passing it parameter values of your choice. Include a screenshot of the output.

Part 3: Indexes

Provide a list of suggested indexes and the DDL script to create them. Include an explanation of the purpose of indexes and how you made your decision for the fields to include in your list of suggested indexes.

Copy and paste the work into your Key Assignment document and include screen shots of each step, describe what you did for each step and paste in the actual SQL text used to perform each step. Upload your document to the Submitted Tasks.

Reference no: EM131041670

Questions Cloud

Calculate the weights for source of funds : Under what conditions can a company's current capital structure be used to calculate the weights for each source of funds?
Discuss the importance of work-related attitudes : Discuss how understanding yourself is so important in being a good manager, and describe two methods to increase self-awareness. Discuss the importance of work-related attitudes. Describe what transformational leadership is and explain how managers c..
Understand the difference among coupon yield : Demonstrate that you understand the difference among coupon yield, current yield, and yield to maturity with the following illustration for Morgan Stanley debt, par value of $1000: current price of $1032, coupon rate of 4.2%, issue date of Septemb..
Personal property insured under a homeowners : James has his home and personal property insured under a Homeowners (special form)policy.The dwelling is insured for $120,000.The replacement cost of the home is $200,000.Indicate the extent to which each of the following losses would be covered unde..
Write a user-defined function that calculates a student gpa : Provide a list of suggested indexes and the DDL script to create them. Include an explanation of the purpose of indexes and how you made your decision for the fields to include in your list of suggested indexes.
What is the maximum amount that the investor : 1. An investment will produce an annual cash flow of $4000 for three years. The investor requires a 12% rate of return compounded annually. What is the maximum amount that the investor can pay and still earn the required rate of return?
Explain whether the ethical leaders at your current : Explain whether the ethical leaders at your current or at a previous employer act/acted as positive or negative role models in their visible ethical actions? Give an example in your analysis. How are/were ethics communicated in this employment cultur..
Briefly explain the concept measurement in accounting : "Measurement" is an important concept in accounting. Briefly explain the concept and explain the basis upon which accounting measurement has historically been undertaken. Discuss alternative measurement bases that have been proposed more recently
What is the best philosophical approach : What is the best philosophical approach (capabilities, ethical, economic, corporate citizenship, or utilitarianism) underpinning corporate social responsibility and on what basis? Give an example in arguing your viewpoint.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Economy from a supply and demand standpoin

Discuss the sharing economy from a supply and demand standpoint. How do companies like Uber and Airbnb affect supply and demand in the markets for shared rides (taxis, limos, etc.) and rented rooms, respectively?

  Hardware affect this advantage

Write a 200- to 300-word short answer response that addresses the following: What competitive advantage does technology give to business? How does aging hardware affect this advantage?

  Safe and secure packet transmission

Write about the advantages and disadvantages when the streaming stored audio runs over UDP protocol in 1 to 2 page along with references.Explain the given statement "TCP is generally used for safe and secure packet transmission."

  Define artificial intelligence

Define Artificial Intelligence. Discuss the goals of Artificial Intelligence.

  Addresses design issues and evaluation issues

A new design for an interactive device or some software application. It will provide the student with an overall look at the entire lifecycle of design from an HCI perspective. Feel free to incorporate techniques and references from the readings o..

  Floating point format has an n-bit frac field

Suppose a floating point format has an n-bit frac field and a k bit exp field. What is the smallest integer that can be represented exactly? Assume that k is large enough not to provide any limitations on the problem. What is the integer for IEEE-754..

  Determine a formula that counts the numbers of nodes

Determine a formula that counts the numbers of nodes in the recursion tree. What is Big- O for execution time? Determine a formula that expresses the height of the tree. What is the Big-O for memory?

  Show process that allow implementation of stack

You will now look at Stacks and Queues using linked lists. Complete the following for this question:

  What is the worst-case cost of finding records

What is the worst-case cost of finding records

  Which of the following is an example of system software

Which term refers to software products which promote free distribution, copying, and user modification, such as the Open Office Suite and the Firefox Web Browser?

  Explaining slash dotted and flash crowd

What do terms slash dotted and flash crowd signify to?

  Application communications plan

Application Communications Plan

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd