StudentShare
Contact Us
Sign In / Sign Up for FREE
Search
Go to advanced search...
Free

The Development of VB (Console Application) Program - Research Paper Example

Cite this document
Summary
This research paper "The Development of VB (Console Application) Program" discusses a VB (Console Application) program that reads 5 integer numbers from the keyboard, stores the numbers in an integer array, and determines if each given integer is a prime number or not (use a Do Loop)…
Download full paper File format: .doc, available for editing
GRAB THE BEST PAPER91.7% of users find it useful

Extract of sample "The Development of VB (Console Application) Program"

Aims The aim of paper is to develop VB (Console Application) program that will a). read integer numbers a and b from keyboard finds the smallest as well as the largest prime numbers between [a,b]. b). allows users to enter values of n and x via a graphical interface, and calculates/displays cos(x) c). identify speed of the vehicle, type of driver and the amount applicable Methods The scripts id developed in Microsoft Visual studio workspace and the where operations begin to find the right answer. This functions aims at developing values that would be used for various calculations. During the development of the code that was used in solving the problems, the input was put in small increments producing solutions which were related to each iteration. This means the iteration worked well during the development of the code. Every iteration was approached with its trade-off in case of delays we waited for the result before inputting new codes. In the coding there were no errors thus, testing the code was found to be unnecessary. In case an error was discovered the resulting chord was to be tested using Microsoft Visual studio iterative statements for the first order iteration and the second order iteration. The do statement is used when unknown iterations are required. Then the initialization is then performed to ensure that the code is well tested. The first case checks whether the program detects an error when the input year is invalid and the month is valid. The second test case checks whether the program detects an error when the input year is just valid but the month is less than one. The third test is similar, but it checks to make sure an error is detected if the month given a valid year. The test cases can be partitioned into two equivalence classes. The first three test cases are invalid inputs, while the last two are valid inputs. Thus, the first three test cases should cause the program to generate an error message. If the program does not generate an error message, then we have exposed a bug. The program should produce correct output for the last two test cases. The tester should make sure that the output produced is indeed correct. In general, it is a good idea to classify all test cases as to whether they are valid inputs and the program should produce valid output, or whether they are valid inputs and the program should generate an error message. RESULTS Question 1- Write a VB (Console Application) program that reads 5 integer numbers from keyboard, stores the numbers in an integer array, and determines if each given integer is a prime number or not (use a Do Loop). The program should give an appropriate message accordingly. By definition a prime number is a natural number (>1) that has no divisors except 1 and itself. Using your program enter following 5 numbers, and determine which is prime: 229, 271, 47, 31, 97 Bonus (extra 10%): Write a VB (Console Application) program that reads 2 integer numbers a and b from keyboard, and finds the smallest as well as the largest prime numbers between [a,b]. Using your program find the smallest and the largest prime numbers between 12345 and 54321. 54319 12343 Question 2- The following fines and demerit points will apply to Learner, P1 and P2 license holders for over speeding in all areas except school zones: Question 3- Trigonometric functions, such as sine and cosine are normally evaluated on computers by using a truncated infinite series. The same approach is used to compute the inverse of these functions. For instance, a truncated series used to calculate the cos of an arbitrary angle x is in which x is in radians. Write a program in VB that allows user to enter values x and n. Then the program calculates cos(x) by above formula using n first terms of the series and a DO LOOP. Using your program find and report values of , and for n=2, 3, 4, and 5. cos15o cos38o cos55o Compare your results with the result of ‘Calculator’ application available in MS-Windows. Bonus (extra 10%): Develop a ‘Windows Forms’ application which allows user to enter values of n and x via a graphical interface, and calculates/dispays cos(x) when ‘Calculate’ button is clicked (see following Figure). User can exit the program by clicking ‘Exit’ button. You can use any part of your VB code developed in Question 3. For Bonus part of Question 3 you need to submit VB source code written in Form1.vb, and a snapshot of your programming showing cos(x) for n=4, and x=45 degrees. DISCUSSION In the coding there were no errors thus, testing the code was found to be unnecessary. In case an error was discovered the resulting chord was to be tested using Microsoft Visual studio iterative statements for the first order iteration and the second order iteration. The do statement is used when unknown iterations are required. Then the initialization is then performed to ensure that the code is well tested. The first case checks whether the program detects an error when the input speed is invalid and the fine is valid. The second test case checks whether the program detects an error when the input speed is just valid but the fine is less than one. The third test is similar, but it checks to make sure an error is detected if the fine given a valid speed. The test cases can be partitioned into two equivalence classes. The first three test cases are invalid inputs, while the last two are valid inputs. Thus, the first three test cases should cause the program to generate an error message. If the program does not generate an error message, then we have exposed a bug. The program should produce correct output for the last two test cases. The tester should make sure that the output produced is indeed correct. In general, it is a good idea to classify all test cases as to whether they are valid inputs and the program should produce valid output, or whether they are valid inputs and the program should generate an error message. CONCLUSION The aim was to carry out VB programming to solve three problems. Using the data provided the values were determined as well as various coefficients successfully. Read More
Cite this document
  • APA
  • MLA
  • CHICAGO
(The Development of VB (Console Application) Program Research Paper, n.d.)
The Development of VB (Console Application) Program Research Paper. https://studentshare.org/logic-programming/2052404-geng-1
(The Development of VB (Console Application) Program Research Paper)
The Development of VB (Console Application) Program Research Paper. https://studentshare.org/logic-programming/2052404-geng-1.
“The Development of VB (Console Application) Program Research Paper”. https://studentshare.org/logic-programming/2052404-geng-1.
  • Cited: 0 times

CHECK THESE SAMPLES OF The Development of VB (Console Application) Program

LEO Program

This article "LEO program" analyzes that the Legal Equal Opportunity program will empower to overcome disadvantages and enable to attend Law School.... LEO program Essay.... I then attended the ESL program at Union County College, earning a 3.... This refusal to quit, and my perseverance through years of hard work to support myself through school, is proof of my ability to succeed in a Law School program.... I believe that the Legal Equal Opportunity program will empower me to overcome my disadvantages and enable me to attend Law School....
3 Pages (750 words) Admission/Application Essay

INTS Program

In the essay “INTS program” the author describes his application to the INTS program, which is a goal of his because he feels that he will be able to gain the required set of skills to accomplish his own, personal goals.... My reasons for applying to this program thus emerge because of today's growing focus on technology.... I would like to seek a Bachelor of Science program, mainly because of the computer skills I will need to accumulate in order to make my business a success....
1 Pages (250 words) Admission/Application Essay

Why I chose EADA for my MBA program

How do you expect the MBA to benefit you professionally and personally, and how can you contribute to the program.... have always had an interest in studying abroad and completing an international Masters in Business Administration (MBA) study program.... The first is a realization that while the knowledge and skills that I had acquired during my BS (Business Administration) study program have assisted me in achievements till now, it will be insufficient for the career growth that I would like in management....
2 Pages (500 words) Admission/Application Essay

The Best Educational Programs

Founded on the principles of Christian values, it promotes social justice, sustainability, and environment, personal and professional development.... Founded on the principles of Christian values, it promotes social justice, sustainability and environment, personal and professional development that aligns with faith and accountability of actions....
1 Pages (250 words) Admission/Application Essay

W.P MACC Program at Arizona

MACC program at Arizona, stresses that since high school, the reporter has had a lot interest in accounting, a factor that influenced my undergraduate course.... He would like to pursue the masters program in accounting at Arizona State University.... MACC program at Arizona, and the information available on the course outline serves to convict him.... I would like to pursue the masters program in accounting at Arizona State University....
1 Pages (250 words) Admission/Application Essay

Personal and Profession Goals in the Patient Information Bachelors Program

This paper is interested in enrolling in the patient information bachelor's program as it has always been my dream to advance my knowledge and skills in this field in a reputable institution.... hellip; My educational achievements are impressive and appropriate for this program....  I am interested in enrolling in the patient information bachelor's program as it has always been my dream to advance my knowledge and skills in this field in a reputable institution....
1 Pages (250 words) Admission/Application Essay

Pharmacy Degree Program

In the essay “Pharmacy Degree program” the author describes his desire to reach the top through sheer hard work and determination.... Being a female at 22 and going for a Pharmacy degree program, she has been able to pull herself back towards education in a pretty settled and easy going manner.... Pharmacy Degree ProgramBeing a female at 22 and going for a Pharmacy degree program, I aspire to reach the top through sheer hard work and determination....
2 Pages (500 words) Admission/Application Essay

The English Honours Program of University of British Columbia

… The paper "The English Honours program of the University of British Columbia" is an outstanding example of an admission/application essay on English.... I am writing this letter to express my interest in being admitted to the English Honors program at the University.... Admittance to the program would serve as a stepping stone in assisting me to achieve my goals and ambitions that lie in the English fraternity.... The paper "The English Honours program of the University of British Columbia" is an outstanding example of an admission/application essay on English....
1 Pages (250 words) Admission/Application Essay
sponsored ads
We use cookies to create the best experience for you. Keep on browsing if you are OK with that, or find out how to manage cookies.
Contact Us