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

  Stack object data structures do not contain code

Stack object data structures do not contain code to throw an exception when a stack.pop() function is called on an empty stack. This is due to the fact that it is easy to establish this exception handing elsewhere. Create a class named SafeStack that..

  Explain reads and writes using lipner-s matrix

Who in Lipner's model can make this change? Explain the reads and writes necessary to make this change and justify the read and write using Lipner's matrix.

  Make a football tipping assignment

Make a Football tipping assignment in which you need to prepare Sequence diagram,Communication Diagram and Class diagram.

  Consider a telephone system that has an automatic redial

Telephone SystemConsider a telephone system that has an automatic redial feature

  Calculate the problem and stop after the condition

Use the information below to create a storyboard (which can be a text based description for solving the problems) and a flowchart (using flowchart symbols to illustrate how you would program) to solve each problem. You may use Microsoft Word® for you..

  Developed a blackjack game to read

Developed a Blackjack game to read/print the hint table as it was laid out in the hint text file via console mode.

  Javascript techniques to improve usability

Design a suitable applied web form example which has a work context. The form that needs to be created is a contact form for a Student Forum. Design the form which must have user input and a range of form furniture Ie. Buttons/ user Input fields. ..

  Compare and contrast the features of both the apple ipad

Compare and contrast the features of both the Apple iPad and the Samsung Galaxy Tab.Compare and contrast the available accessories, potential for future upgrades, warranties, and available support of both the iPad and the Galaxy Tab.

  Set operations and the logical con­nectives

A very deep connection (an isomorphism) exists between set operations and the logical con­nectives in the propositional logic.

  Role of operating system

Title: Role of Operating System Answer these review questions based on operating systems:

  What strategic role can information play in business process

What strategic role can Information play in business process re-engineering

  Three clusters using k-means clustering

Partition this given integer set into three clusters using K-means clustering

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