Write a non-trivial set of unit tests

Assignment Help Programming Languages
Reference no: EM132218031

Programming Languages Project - Unit Testing of Grade Analysis classes & functions

Assignment: Write a non-trivial set of unit tests.

The assignment is to write a set of unit tests against a Grade Analysis utility library. The library contains classes and functions for computing grade distributions, DFW rates, etc. A working library is provided, along with a set of non-working libraries. Your job is to write a set of unit tests that correctly identifies the working and non-working libraries.

As you know, testing is hard. The idea of unit testing is to approach the problem of testing in a more rigorous fashion. The idea is to design software with testing in mind, and then spend the time and effort necessary to develop rigorous tests to run against that software. Developing a suite of test cases can take as much time as it takes to develop the software itself. The benefit of this effort is (a) more confidence in the software being built, and (b) the ability to rerun these test cases as the software evolves.

Before you start, expect to spend at least 5-10 hours working on this project. Writing test cases is hard, and the expectation is that you'll write at least 10-20 non-trivial test cases as part of this project. The effort will be worth it, because you'll use these test cases in projects.

Assignment Details -

Homework #01 had you read about the Catch testing framework, and write a couple test cases involving a Student class. In this assignment, you're going to write test cases against a more sophisticated set of classes and functions that perform grade analysis.

Programming environment: Codio

For this project (and future projects) we'll be using the Codio system purchased by the department (and currently free to you). We are in the process of testing Codio, and if we like it, plan to roll it out to all CS students in the Fall of 2019. Codio is cloud-based, and accessible via a web browser. It's platform-neutral and works from any platform, but you must be online to use it.

Attachment:- Assignment File.rar

Reference no: EM132218031

Questions Cloud

How freedom or right to choose is important in ethics : Describe a personal example that supports your explanation. Describe how freedom or the right to choose is important in ethics.
Discuss the impact of the progressive movement on creation : Discuss the impact of the Progressive movement on the creation of the Arizona Constitution, including the declaration of rights.
Discuss application of psychological assessment instrument : Explain the criteria for using standardized scores in assessments. Discuss the application of a psychological assessment instrument in your workplace or future.
Research the code of conduct or ethics : Determine at least two (2) aspects in which ethics, morality, and how the law differs in regards to affecting the decisions of teachers in the classroom.
Write a non-trivial set of unit tests : CS 341 Programming Languages Project - Unit Testing of Grade Analysis classes & functions. Write a non-trivial set of unit tests
Analyse the leadership of leader working : Using relevant theories and models critically evaluate and analyse the leadership of a leader working in (business, government or not-for-profit) organisation.
How did gender stereotypes come to be : How did gender stereotypes come to be and why do they continue to persist? In this discussion, you will explore gender theories that help to answer.
Explain how knowing your ethical ideology could help you : Explain how knowing your ethical ideology could help you as a child and family life professional.
Discuss about the corporate social responsibility : Some believe that embracing Corporate Social Responsibility (CSR) can be a competitive advantage; others believe that doing so is inconsistent.

Reviews

len2218031

1/17/2019 11:10:03 PM

Please see the Programming assignment attached. Please provide us the confirmation if you can solve this, Grading will be based on the # of Grade Analysis implementations you correctly identify. For example, suppose you correctly identify the working implementation (step 1 above), and correctly identify one of the non-working implementations (one of steps 2..10 above). Then that’s 20 points out of 100. Then you would earn another 10 points for each non-working implementation you correctly identify for a max score of 100. There is no partial credit: the minimum score is 20/100, in which case you must correctly identify the working implementation, and at least one of the non-working implementations. When you are ready to submit your program for grading, first export your work from Codio using the Project menu, “Export as Zip”.

Write a Review

Programming Languages Questions & Answers

  Write a function named dietoss

Write a function named dieToss that simulates the tossing of two dice. When you call the function, it should generate two random numbers ranged in 1 to 6 and return the sum of the die's numbers.

  Discuss the merits and weaknesses of interpreting,compiling

Interpreted code executes much more slowly than compiled code, yet several systems use them extensively. The most well known are Visual Basic (it has two modes: interpreter mode and compiler mode), JavaScript and the special case of interpretation..

  Write error message and repeat input until a answer is found

Give the user specific instructions for what their answer should be (i.e. Y or N). If their answer is anything other than one of the specified choices, write an error message and repeat the input until a desired answer is found.

  What is a data flow diagram

Define what is meant by a process in a process model. How should a process be named? What information about a process should be stored in the CASE repository?

  Determines which numbers produce a happy sequence

Write a program that determines which numbers produce a happy sequence, within a series of test numbers

  Write application to calculate average of temperature

Write the application to calculate average of set of temperature readings. Application prompts user to enter the number of temperature readings to be entered, then prompts user to enter temperature.

  Write non-recursive to perform algorithm

Write a non-recursive (i.e., iterative) function selectionSort() to perform this algorithm. Use it in a program that reads from a file a sequence of integers.

  What do you think are the advantages of using frames

Surf the Internet to view Web sites that have been created as single pages and with frames pages. Compare and contrast the two different styles by answering the following questions.

  What proportion of tires are expected to be sold as betahigh

Goodyear's AlphaMax tire's tread thickness is computed to be normally distributed with a mean of 10mm, What proportion of tires are expected sold as BetaHigh

  Create default constructor which invokes superclass

Create a (default) constructor which invokes superclass constructor with value 3 (law school is typically a three year program).

  Program to find sum-difference of two complex numbers

Program should ask user to enter two complex numbers and it automatically finds it sum, difference, coefficient, product conjugate.

  Write a program that calculates several possible tips

Write a program that calculates several possible tips to give to a waiter at a restaurant. Ask the user to enter the total cost of the meal and then calculate a tip at 10%, 12.5%, 15%, 17.5%, and 20%.

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