C# to Design and Implement Mathematical Skill Assessment Program

Published: 2021-07-18 23:45:07
essay essay

Category: Computer Sciences

Type of paper: Essay

This essay has been submitted by a student. This is not an example of the work written by our professional essay writers.

Hey! We can write a custom essay for you.

All possible types of assignments. Written by academics

GET MY ESSAY
Task 3.1:Control Structures:Control structures are the most important and basic concepts of any programming language. They are important to implement a solution to the given problem. In short, control structures are known as constructs. There are two types of control structures provided by the C#, i.e. Iteration constructs and Decision constructs. Following are some control structure that are implemented in the code.Iteration Constructs:We can cyclically repeat the code, using the iteration constructs.For Loops: In for Loop, we can specify the number of times to repeat the code.Foreach Loops: the for each loop is used to iterate through the items of array or collections.While loopsIt repeats the block of code until the given condition remains true.Do While loopsThis loop first executes the block of code and then check the given condition. So, if the condition becomes false, the block of code will execute at least once.Decision Constructs:Following are some decision constructs we have implemented in the code.If Statement:The conditional statements are designed by using If statement. The sequence of code changes with if statements. The Boolean condition is checked by the If statements.Switch Statement:In the switch statement, different blocks of code are selected based on the multiple values of the single variable.Break Statement:The break statement terminated the repetition of the code of either switch statement or any loop.Continue Statement:The continue statement is utilised to provide the control to the next iteration of the statement in which it resides.Procedures or Methods:It is a block of a code containing multiple statements. These statements are executed by the program by calling the methods. The methods may have arguments. If the method has any arguments, then they are specified first, and then the method is executed. Following are some methods provided by C# that we have implemented in our code.Substring (int s, int length )WriteLine (string s)ReadLine ()StreamReader (String file_1)Main (String[] args)Justifying C-sharp:C-sharp is the latest rendition of C++. Before C-sharp, it was C++ language; it was used by many people to code the solutions. C++ has added object-oriented approach to C, and C++ has been widely used to develop and design “genuine” applications for Windows (as indicated by the C++ designers). The low-level applications and systems are developed using C++. The business level application are developed by visual basic developers and experts.C# provides the fast improvement in the world of visual basic within the community of C++ programmers, with some conspicuous changes. The .NET framework is very well utilised by the C-Sharp, which implies you approach a capable forms engine, much the same as VB developers have had for a considerable length of time. New data types have been included, for example, the decimal information type for performing money related estimations.C# is type-safe, which implies a few things. For instance, you can’t utilise uninitialized variables. In C++ it is anything but difficult to declare a variable and afterwards check its esteem; whatever was in the memory deliver given to that variable would then appear, and this could wreak ruin on an application. The C# compiler will advise you if you endeavour to utilise a variable before you have initialised it to some substantial value.While C++ is a to a great degree capable language, it has not regularly been viewed as simple. C# endeavours to disentangle the linguistic structure to be more steady and more sensible while additionally evacuating a portion of the more unpredictable features of C++. For instance, C# gets rid of pointers. As a type-safe dialect, C# doesn’t permit coordinate memory control, so pointers are never again required in C#.Task 4:4.1 Different types of testingTesting is divided into two main types “black box testing” and “white box testing”.Black box Testing:The “black box testing” focuses the functionality of the modules. It does not test the internal mechanism instead it tests the output in the response of any input and other processes of the system. It is also known as “functional testing”. “Black box testing” is used for validation.White box Testing:The “white box testing” tests the internal mechanism of a system. It is also known as “glass box testing” and the structural testing. Verification is done by “white box testing”.Further, the above tow testing types are divided into the following testing types.Unit testingIntegration testingFunctional testingSystem testingStress TestingPerformance testingUsability TestingAcceptance TestingRegression TestingBeta TestingUnit Testing:This type of testing is used to tests the individual units or group of units. This is a type of white box testing as the testing of the internal mechanism is conducted. This testing is done by the programmer to test a unit and analyse whether the output is according to the expectations against the specified input.Integration Testing:In this type of testing, different components are analysed that whether they produce the expected output when combined. The integration testing is also for the software and hardware if they are associated with each other. Integration testing is categorised as both “black box testing” and “white box testing”.Functional testing:This type of testing confirms that whether the components of the system are producing the required functionality or not. “Functional testing” is a type of “black box testing”.System testing:The system testing ensures the working of software in different environment and conditions. For example, the software is testing by installing it in different operating systems; its functionality is analysed hence it falls under the black box testing.Stress Testing:This type of testing analyses the behaviour of the software in conditions which are favourable. It is also the type of black box testing.Performance Testing:Performance testing ensures that the effectiveness and the speed of the software. It also tests whether the software is generating the expected results within a specific time duration. It is a type of “black box testing”.Usability Testing:The usability testing is conducted according to the client’s perspective; it tests whether the graphical user interface is friendly or not, is the software easy to learn. It tests how easy to use its design. It is a type of “black box testing”.Acceptance testing:This type of testing is conducted by the end user to ensure that the software is according to the requirements and works according to the customer’s expectations.Regression Testing:It is a type of testing that ensures after modification software is working accurately and the change does not cause unexpected results.To test our developed program, we will test it using unit testing, and functional testing. Acceptance testing. As C-sharp is an object-oriented language, so it is very important to conduct unit testing to ensure that different modules or units are working according to the expectations. The functional testing will be conducted to analyse the overall functionality of the system designed. In the end, we prefer acceptance testing. This testing is conducted by the customer; he ensures that the software is working according to the requirements delivered to the developers. The customer can better tell how the product is functioning and whether it is fulfilling his needs or not.Test Cases:The functional testing is carried out to test the functionality of the program.Test IDTest scenarioTest stepsTest dataExpected ResultsActual ResultsPass/FailTC-1Test the working of login module. Testing module by entering user username and password.Run the ProgramThe program will show user Login and Sign up options.To login the system, a user should press 1.Choice=1Username=user123Password=pass123The user should log in the system, and the program should display the main menu. After login successfully the program should display a welcome note.As expectedPassTC-2Test whether the program allows a user to enter correct password three times if he fails to enter correct credentials.Run the programThe program will show user Login and Sign up options.To login the system, a user should press 1.Choice =1Username = user122Password=pass123Count = 1The program asks a user to enter the credentials again by displaying the login screen.As expectedPassTC-3Test whether the program allows a user to enter correct password three times if he fails to enter correct credentials.Run the programThe program will show user Login and Sign up options.To login the system, a user should press 1.Choice =1Username = user122Password=pass123Count = 2The program asks a user to enter the credentials again by displaying the login screen.As expectedPassTC-4Test whether the program allows a user to enter correct password three times if he fails to enter correct credentials.Run the programThe program will show user Login and Sign up options.To login the system, a user should press 1.Choice =1Username = user122Password=pass123Count = 3The program asks a user to enter the credentials again by displaying the login screen.As expectedPassTC-5Test whether the program allows a user to enter correct password three times if he fails to enter correct credentials.Run the programThe program will show user Login and Sign up options.To login the system, a user should press 1.Choice =1Username = user122Password=pass123Count = 4The program displays the error message, notifying the user that he has given three chances to enter the correct credentials. The program ends.As expectedPassTC-6Check the proper working sign up a module.Run the ProgramThe program will show user Login and Sign up options.A user should register himself by pressing 2.Choice = 2Username = usr_3Password = 12345The program displays the confirmation message that the new user has been registered.As expectedPassTC-7Checking children registration moduleRun the Program The program will show user Login and Sign up options.To login the system, a user should press 1.The program will show the main menu.Press 1 to initiate children registration processChoice = 1Main Menu Choice=1Full name=smithGender=maleAge= 17 yearsClass = 8The program should notify the user that the registration process has been completed successfully and Smith is the newly registered student.As expectedPassT0-8Check if registered children can initiate the test.Run the Program The program will show user Login and Sign up options.To login the system, a user should press 1.The main menu will be displayed.Register children by pressing 1Give numerical skill test by pressing 2Choice =1Main MenuChoice =2All the numerical skill test questions have been answered.Children have started their numerical test after registering themselves to the system.As expectedPassTC-9Check if children will be able to give the test if they are not registered to the system.Run the Program The program will show user Login and Sign up options.To login the system, a user should press 1.The main menu will be displayed.Press 2 to initiate numerical skill test.Choice =1Main menuchoice =2The program should display the message that children are not registered, and they can’t conduct numerical skill test.As expectedPassTC-10Check if a user can give the problem-solving test if he has scored more then 50% in the numerical skill test.Run the Program The program will show user Login and Sign up options.To login the system, a user should press 1.The main menu will be displayed.Press 1 to register children.Press 2 to initiate numerical skill test.Numerical skill test completed.Choice =1Main menuchoice = 3Numerical Skill test score = 55%The program should display a message to notify him that he has been qualify for the problem-solving test.As expectedpassTC-11Check if a user cannot give the problem-solving test if he has scored less then 50% in the numerical skill test.Run the Program The program will show user Login and Sign up options.To login the system, a user should press 1.The main menu will be displayed.Press 1 to register children.Press 2 to initiate numerical skill test.Numerical skill test completed.Choice =1Main menuchoice = 3Numerical Skill test score = 45%The program should display a message to notify him that he has not been qualify for the problem-solving test.As expectedpassTC-12Check if a user can view his results after giving numerical skill test and problem-solving test.Run the Program The program will show user Login and Sign up options.To login the system, a user should press 1.The main menu will be displayed.Press 1 to register children.Press 2 to initiate numerical skill test.Numerical skill test completed.Press 3 to start giving a problem-solving test.Problem-solving test completed.Press 4 to view the results.Choice =1Main menuchoice =4Numerical skill test percentage=65%Problem-solving test percentage =55%The program should display the result in a particular format. The program should also store the result in a file.As expectedPass4.3After conducting functionality testing, it is analysed that the program is working according to the requirements and expectations. The control structures of the program are properly working. They are executing relevant blocks of code after a user specifies the option. There are no unhandled exceptions in the program which affects the functionality of the program. The program is displaying correct confirmation messages. The flow of the program is accurate. However, the program still needs some improvements listed below:In this software version, the questions are stored in an array, and they are static. The program should be more dynamic. The questions and their answers should be properly stored in the database. There should be proper database connectivity code implemented and tested.The program should use a dynamic data structure to store the questions and their answers. This will improve the performance of the program.There should be a proper admin section. Admin can manage the members. He can add, delete and modify the questions.The program should evaluate the performance of different students by generating proper reports or performance charts. The program should display the student name on the home page who has score highest up till now. This will motivate users to perform better.The graphical user interface of the program should be enhanced. As GUI enhances user experience and usability.Exception and error handling should be improved.The program should interact with the user by proper message display.To enhance the usability and readability, the program should display one question at a time.Stopwatch must be implemented for every question.4.4 On-screen guidance1. Enter admin username and password. 2. if username and password is correct then the main menu will be displayedPress 2 to start the numerical test.r Finish the test. The Result will be displayed.If you score exceptionally then press 3 to start the problem-solving test otherwise, it will show you an error.of the problem-solving test will be displayed.Result stored in a file8. Press 5 to view the guidance program 9. Press 6 to end the Mathematics Skill Assessment test.4.5 Technical Documentation:Abstract:The main goal of our project to assess the mathematical skills of the students online. The students can give tests and evaluate themselves through the generated result. The students can give numerical skill test and problem-solving test.Our work mostly focuses on developing the user-friendly, attractive system using C# where students can register themselves and tests themselves.Introduction:Purpose:The purpose of this project is to evaluate mathematical skills of the student through an online platform. The student can give numerical skill test and then problem-solving test. The overall test result will be generated within few seconds and user will be able to view the result as well as he can get the result file.Scope:The mathematical skill assessment program is a platform in which students of a particular institution can give numerical skill test and problem-solving test. This platform enhances the mathematical skills of the students. The students first register themselves to give tests.Program Requirements Specifications:Functional Requirements:The system should have the login module. It should have username and password field.If a user has entered his wrong credentials, then the system should give user three chances to enter the correct login and password. If he fails, the system automatically shut down.If a user enters correct credentials, then the main menu should be displayed.The main menu should have five items in it.Children registrationNumerical skill testProblem-solving skill testView test resultHelpExitThe children registration module should ask for the details such as full name, age, gender and class.Children can go for numerical test after registration.The information of students and their test results should be stored in a file.The system should display supporting information about the system.The user can exit the system by selecting exit option.Non-functional Requirements:1. The program should authenticate the user within 2 seconds after he enters his credentials.2. After the user is verified, the program should move towards the main screen within 2 seconds.3. After completing the problem-solving test, the result should be calculated immediately within 2 seconds.4. The program should not be platform specific. It should run on any operating system.Design Details:Following components are included in the design detail:1. Behaviour2. Static structure3. User interfaceThe class diagram depicts the Static structure of the system. The flow of the system and its various activities exhibits its behaviour. The user interface of the system is one of the important components of software design. A user usually explores the systems which are attractive and eye-catching.Technologies:We have used C# to design and implement the program, i.e. Mathematical skill assessment program.Use Case:System architecture:ReferencesElements of a Java Program. (n.d.). Retrieved October 23, 2017, from http://www.codemiles.com/java/elements-of-a-java-program-t3449.html?mobile=offflowchart. (n.d.). Retrieved October 23, 2017, from https://www.smartdraw.com/flowchart/How to Write Test Cases: Sample Template with Examples. (n.d.). Retrieved October 23, 2017, from https://www.guru99.com/test-case.htmlWhy you should move to C#. (2002). Retrieved October 23, 2017, from https://www.techrepublic.com/article/why-you-should-move-to-c/Zafar, R. (2012). What is software testing? What are the different types of testing? Retrieved October 23, 2017, from https://www.codeproject.com/Tips/351122/What-is-software-testing-What-are-the-different-ty 

Warning! This essay is not original. Get 100% unique essay within 45 seconds!

GET UNIQUE ESSAY

We can write your paper just for 11.99$

i want to copy...

This essay has been submitted by a student and contain not unique content

People also read