CPR 10
.docx
keyboard_arrow_up
School
Seneca College *
*We aren’t endorsed by this school
Course
144
Subject
Computer Science
Date
Feb 20, 2024
Type
docx
Pages
4
Uploaded by CorporalComputerNightingale26
Computer Principles for Programmers SDLC – Testing
Click or tap here to enter text.
Click or tap here to enter text. Click or tap here to enter text.
@mySeneca.ca
Click or tap here to enter text.
See the topic's slides, the activity instructions, and the Programming Test Cases.docx The number of rows in the tables below are for convenience; they do not indicate the number of cases expected.
Test Cases for the Black box program
Description
+ / − Purpose
Data Input
Expected Output
Actual output
if unexpected
Success?
Comments
String:
This is viralika
To verify the
minimum edge
Position: 1
T
i
Failed
To verify the
in between patterns
Position: 7
s
v
Failed
To verify the
maximum edge
Position: 4
s
i
Failed
Logic termination
Position: zero
Program terminates
Success
Test for unexpected output
Position: 1
Error
i
Failed
String: How are you?
To verify the
maximum edge
Position:18
‘ ‘
Success
To verify the
minimum edge
Position:1
Displays an error
‘w’
Failed
CPR101 Summer 2023 Week 10
Page 1 of 4
Computer Principles for Programmers SDLC – Testing
Description
+ / − Purpose
Data Input
Expected Output
Actual output
if unexpected
Success?
Comments
To verify the
in between patterns
Position:7
‘e’
‘y’
Failed
To verify the
outer limit
Position:20
Blank
Success
Position:
String:
I am a student
To verify outer limits
Position:44
Space
Success
To verify the
in between patterns
Position:5
‘ ‘
Success
Tests for unexpected input
Position: Hey
Displays an error
‘ ‘
Failed
Position:
Position:
CPR101 Summer 2023 Week 10
Page 2 of 4
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
Java Programming Project
You need to make an exam application in the project. Write the project using JavaFX. Do
not use a database. Accordingly, what is requested must be performed:
1. Adding questions to the question bank: different types of questions should be
added to the question bank. Question types include multiple choice, True/False, fill-in,
and classic type questions. It is mandatory to use inheritance and polymorphism in
writing classes related to questions and in using their objects.
For example, a multiple choice question should have the following information:
a) question text
b) answer options such as a, b, c, d
c) answer
d) points
e) degree of difficulty (such as easy, normal and difficult)
In the upper classes, taking into account the content of other types of questions and
subclasses must be determined which properties should be.
2. Removing a question from a question bank: finding a question that will be deleted
first when removing a question from a question bank it…
arrow_forward
Python
No hand written and fast answer with explanation
arrow_forward
Topic name: data structures please solve quickly
arrow_forward
The Problem to Solve:
The user wishes to enter employee data and then display that data as a table. The employee data items are the employee ID, the last name, first name, department name, and annual salary. When printing the output, the name should be made of the last and first names in the form of last name, comma, space, and first name.
Questions:
What are the inputs needed to solve this programming problem (names and data types)?
What are the desired outputs (data types and descriptions)?
What are the formats for the outputs?
The Python Program:
Create a Python file named employee_program.py, open it in your Python editor, and copy your Python template into the new file.
Following your instructor's instructions, define a constant at the top of the file, before def main(), called CONSOLE_WIDTH and assign it the value 80.
Inside the main() function, define all of your hard-coded strings that will be printed for the user. This demonstrates the separation of the output text from…
arrow_forward
Briefly explain nested procedure call
arrow_forward
c++ task
arrow_forward
Create C# (Sharp) code using visual studio:
Use Delegate methodology to do the following project:
Have a Add method, Subtract method, Multiply method, Divide method. Each method will loop 100 times. With each iteration, generate two random numbers (between 1 - 50), then perform the math operation (add for the Add method, subtract for the Subtract method, etc.). Make sure to display the numbers and the answer!
One validation check - for subtraction and division, make sure the higher number generated comes first in the calculation. For example, if 12 and 40 are the numbers generated, the math should be 40 -12 for the subtraction (not 12 - 40) and 40/12 for the division (not 12/40).
Again, make sure to use Delegates!
arrow_forward
Please write the code in C language thank you
arrow_forward
Marriage
Validity
You were hired by the City Hall of Kulafu as a programmer. Your task is to write
a spreadsheet program that will determine whether two individuals can be married legally or not.
The marriage will be legal depending on the following conditions:
both individuals should be at least 18 years old
the individuals should not have the same gender (same gender marriage is not legal
in Kulafu)
the individuals should not have a married status (in Kulafu, status are single,
widow/widower, divorced and married)
Write a program that will accept via keyboard the information regarding the age,
gender and marital status of the two individuals. The following numeric coding system should
be used: for gender: M or m represents Male and F or f represents Female. For marital status:
S or s represents Single, W or w represents Widow/Widower, D or d represents Divorced and
MA or ma represents Married. The word should output the word "LEGAL" if all the criteria
above are met. Otherwise, the…
arrow_forward
bmi calculation, coding and flow chart
arrow_forward
Differentiate parameters passing technique, for example, by line, by reference, or by parameter?
with appropriate examples
arrow_forward
NO CODE, ESSAY ONLY. EXPLAIN.
Develop a program that implements any of the indexing types. Use methods to organize
your code and do not forget to follow naming conventions.
arrow_forward
Query Board Python or Java(Preferred Python please) Thank you!
Programming challenge description:
There is a board (matrix). Every cell of the board contains one integer, which is 0 initially.The following operations can be applied to the Query Board:SetRow i x: change all values in the cells on row "i" to value "x".SetCol j x: change all values in the cells on column "j" to value "x".QueryRow i: output the sum of values on row "i".QueryCol j: output the sum of values on column "j".The board's dimensions are 256x256."i" and "j" are integers from 0 to 255."x" is an integer from 0 to 31.
Input:
Your program should read lines from standard input. Each line contains one of the above operations.
Output:
For each query, output the result of the query.
Test 1
Test InputDownload Test 1 Input
SetCol 32 20 SetRow 15 7 SetRow 16 31 QueryCol 32 SetCol 2 14 QueryRow 10
Expected OutputDownload Test 1 Input
5118 34
arrow_forward
Document2- Word
References
Mailings
Review
View
Tell me what you want to do...
Aa-
AaBbCcDc AaBbCcDc AaBbC AaBbCcC Aa
1 Normal
1 No Spac. Heading 1
Heading 2
Title
Paragraph
Styles
Write a python program that takes a sale amount as an input and
print the discount given based on the table.
Sale Amount
Discount
0-100
2%
101-300
5%
301-600
7%
601-1000
10%
TA
taufeeq ahmed
KAHLAN AL-SUBEIHI
Al Khaili AL Aa
arrow_forward
In C programming language
arrow_forward
Differentiate between the following code coverage techniques:
Condition coverage,
Statement coverage, and
Decision coverage.
Also, provide a suitable example for each technique.
arrow_forward
Sample program that illustrates the use of scope within a program.
arrow_forward
Question04: what does the phrase “modeling at a high level” or “a higher level orabstraction” means?
(Software Design)
arrow_forward
Python task:
Task OverviewYour task is to implement a variation of the classic word game Hangman, which involves playersguessing the letters in a word chosen at random with a finite number of guesses. While there arealternate versions such as category Hangman and Wheel of Fortune, which involve playersguessing idioms, places, names and so on, we will be sticking with the traditional version.If you are unfamiliar with the rules of the game, please read the following before starting:http://en.wikipedia.org/wiki/Hangman_(game). You can also play an online version here. Don’tbe intimidated - You’ll be given some skeleton code to get you started, it's easier than it looks!
You will implement a function called main that allows users to play an interactive hangman gameagainst the computer. The computer should pick a word, and players should then try to guess lettersin the word until they win or run out of guesses.Here is the overarching behaviour we expect:1. The program should load a list of…
arrow_forward
Please print from the which generation are you
arrow_forward
The most important rule when assigning
wherein the assignment operation always
takes place from right to left, and never the
other way.
Answer:
arrow_forward
Assignment-5
Create flow chart and algorithm for following problem:
Check whether the inputted number is
a. Positive
b. Negative
C. zero
arrow_forward
Explain Picking And Selection
Mode.
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Related Questions
- Java Programming Project You need to make an exam application in the project. Write the project using JavaFX. Do not use a database. Accordingly, what is requested must be performed: 1. Adding questions to the question bank: different types of questions should be added to the question bank. Question types include multiple choice, True/False, fill-in, and classic type questions. It is mandatory to use inheritance and polymorphism in writing classes related to questions and in using their objects. For example, a multiple choice question should have the following information: a) question text b) answer options such as a, b, c, d c) answer d) points e) degree of difficulty (such as easy, normal and difficult) In the upper classes, taking into account the content of other types of questions and subclasses must be determined which properties should be. 2. Removing a question from a question bank: finding a question that will be deleted first when removing a question from a question bank it…arrow_forwardPython No hand written and fast answer with explanationarrow_forwardTopic name: data structures please solve quicklyarrow_forward
- The Problem to Solve: The user wishes to enter employee data and then display that data as a table. The employee data items are the employee ID, the last name, first name, department name, and annual salary. When printing the output, the name should be made of the last and first names in the form of last name, comma, space, and first name. Questions: What are the inputs needed to solve this programming problem (names and data types)? What are the desired outputs (data types and descriptions)? What are the formats for the outputs? The Python Program: Create a Python file named employee_program.py, open it in your Python editor, and copy your Python template into the new file. Following your instructor's instructions, define a constant at the top of the file, before def main(), called CONSOLE_WIDTH and assign it the value 80. Inside the main() function, define all of your hard-coded strings that will be printed for the user. This demonstrates the separation of the output text from…arrow_forwardBriefly explain nested procedure callarrow_forwardc++ taskarrow_forward
- Create C# (Sharp) code using visual studio: Use Delegate methodology to do the following project: Have a Add method, Subtract method, Multiply method, Divide method. Each method will loop 100 times. With each iteration, generate two random numbers (between 1 - 50), then perform the math operation (add for the Add method, subtract for the Subtract method, etc.). Make sure to display the numbers and the answer! One validation check - for subtraction and division, make sure the higher number generated comes first in the calculation. For example, if 12 and 40 are the numbers generated, the math should be 40 -12 for the subtraction (not 12 - 40) and 40/12 for the division (not 12/40). Again, make sure to use Delegates!arrow_forwardPlease write the code in C language thank youarrow_forwardMarriage Validity You were hired by the City Hall of Kulafu as a programmer. Your task is to write a spreadsheet program that will determine whether two individuals can be married legally or not. The marriage will be legal depending on the following conditions: both individuals should be at least 18 years old the individuals should not have the same gender (same gender marriage is not legal in Kulafu) the individuals should not have a married status (in Kulafu, status are single, widow/widower, divorced and married) Write a program that will accept via keyboard the information regarding the age, gender and marital status of the two individuals. The following numeric coding system should be used: for gender: M or m represents Male and F or f represents Female. For marital status: S or s represents Single, W or w represents Widow/Widower, D or d represents Divorced and MA or ma represents Married. The word should output the word "LEGAL" if all the criteria above are met. Otherwise, the…arrow_forward
- bmi calculation, coding and flow chartarrow_forwardDifferentiate parameters passing technique, for example, by line, by reference, or by parameter? with appropriate examplesarrow_forwardNO CODE, ESSAY ONLY. EXPLAIN. Develop a program that implements any of the indexing types. Use methods to organize your code and do not forget to follow naming conventions.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Np Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:CengageC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr