This website uses cookies to ensure you have the best experience.

# Assignment

544 words - 3 pages

1. A)

* ID – Test Case 001
Input values
Array (a) = [8]

Expected Output

Max = a [0] = 8

* ID – Test Case 002
Input values
Array (a) = [] (array a is empty)

Expected Output

Max = a [0] = null

* ID – Test Case 003
Input values
Array (a) = [1,3,5,7,9]

Expected Output

Max = a [4] = 9

* ID – Test Case 004
Input values
Array (a) = [9,7,5,3]

Expected Output

Max = a [0] = 9

* ID – Test Case 005
Input values
Array (a) = [5,6,1]
Expected Output

Max = a [1] = 6

* ID – Test Case 006

Input values
Array (a) = [1,3,8,6]

Expected Output

Max = a [2] = 8

B)

* ID – Test Case 007

Input values
Array (a) = [2]

Expected Output

...view middle of the document...

As the algorithm moves on to check the other indexes and compares it. If the max value is more then the value in the index, the algorithm moves on to the next index and compares it s described. Then it returns the max value.

Input values
Array (a) = [1,3,5,8]

Expected Output

Max = a [3] = 8

* ID – Test Case 010

Input values
Array (a) = [4,3,2]

Expected Output

Max = a [0] = 4

* ID – Test Case 011

Input values
Array (a) = [2,8,1]

Expected Output

Max = a [1] = 8

* ID – Test Case 012

Input values
Array (a) = [1,3,5,9]

Expected Output

Max = a [3] = 9

* ID – Test Case 013

Input values
Array (a) = [4,3,2,1]

Expected Output

Max = a [0] = 4

* ID – Test Case 014

Input values
Array (a) = [1,2,5,4,5]

Expected Output

Max = a[4] = 5

2) A) compound (multiple) condition adequacy: Cover all possible combinations of compound conditions and cover all branches of a selection statement.

Test Case | n < max_size | & (c = getc(yyin)) != EOF | c != ‘\n’ | Outcome |
1 | T | T | T | T |
2 | T | F | T | F |
3 | T | T | F | F |
4 | F | F | F | F |
5 | F | T | T | F |

B)
Test Case | n < max_size | (c = getc(yyin)) != EOF | c != ‘\n’ | Outcome |
1 | T | T | T | T |
2 | T | F | T | F |
3 | F | T | T | F |
4 | T | T | F | F |
5 | F | F | T | F |
6 | T | F | F | F |
7 | F | T | F | F |

3)
Test Case | Room | Open | Close | Bar | Outcome |
1 | T | T | T | T | T |
2 | T | F | T | T | T |
3 | T | T | F | T | T |
4 | F | T | T | T | T |
5 | T | F | F | F | F |
6 | T | F | F | T | T |
7 | T | T | F | F | T |
8 | F | T | T | F | F |
9 | F | F | F | F | F |

## Other Papers Like Assignment

### Assignment

2549 words - 11 pages : | | |(Please delete as appropriate) |50% | |2. Individual report based upon a mini case study (part of the portfolio) | | | Assessment Brief/ Task | | |The aim of this assignment is to foster an understanding

### Assignment

609 words - 3 pages ENGL227 Week 1 Assignment Scenario You are an upper-level manager in a large metropolitan hotel. One of your assistant managers, Jeff Clarke, has left you a voicemail message requesting emergency leave for the upcoming holiday weekend. Here's what the message stated: I'm calling to request emergency leave again for this weekend. I know I've had three emergency leaves in the last two months, but my grandma isn't feeling well again, and she

### Assignment

5265 words - 22 pages . |questions. |lecture notes. | |4 |Case study: analysing the costs of different sources of finance. |Working with the assignment |Case study and addressing the learning outcome |Module hand book and

### Assignment - 1989 words

1989 words - 8 pages very interesting topic about leadership and for all the time and effort he contributed to this subject and to us. This assignment was able to complete because of the people I consider my mentor. Besides that, team members that given their best effort and contribution on this topic. We had some great time doing discussion and brainstorming for this assignment and I would like to thank you all personally. I’d like to thanks Tan Kooi Pin, Ong

### Assignment - 628 words

628 words - 3 pages Group Assignment #6 Titanfall is an upcoming first person shooter video game developed by Respawn Entertainment and published by EA as an exclusive for Microsoft Windows, XBOX 360 and XBOX One. Players fight either on foot as free running pilots or inside agile mech style walkers called titans to complete team based objectives. The game is scheduled to be released on March 11, 2014, but due to complications, EA has given you 3 months extension

### Assignment - 848 words

848 words - 4 pages Instructions: Please complete all 3 multi-part problems for this week's assignment. 2-1 Basic Estimating Problem Your company is installing a new piece of machining equipment and a robotic arm. Your manager asks for the project costs by cost category as well as the total amount. Given the following information, develop a base cost estimate by grouping costs by Equipment / Material (items 1 – 4), Installation / Labor (items 5 and 6), and

### Assignment - 937 words

937 words - 4 pages HOSP 420 Prof Jamie Abbott DeVry University Week 2 Written Assignment 1. Please identify the three types of contaminants and provide examples of each. The three types of contaminants are as follows: Chemical contaminants which are responsible for many illnesses but are from metals and or cleansers and other items used to clean and maintain restaurants such as Copper, polish and caustic materials that are corrosive and toxic; the

### Assignment - 2254 words

2254 words - 10 pages Human Resource Management Institute (HRMI) Edexcel BTEC HND in Business – HRM – Batch 1/3 /M/E Unit No/Title: Unit 5/ Aspect of Contract and Negligence for Business Unit Code: Y/601/0563 Assignment No: 1 / 1 Assignment Title: Contracts and Negligence Law Unit Outcomes/Grade Descriptors Covered: |LO1.1

### Assignment - 1194 words

1194 words - 5 pages . Part II: Balance of Power In the space below, write an analysis of approximately 250 words on how the system of checks and balances in the federal government helps to limit the concentration of power. • Cite specific examples. Defend your rationale. Utilize the required readings, academic websites, and the GCU Library as resources for this assignment. Part III: The Three Branches of the Federal Government Answer the

### Assignment - 1418 words

1418 words - 6 pages its functioning i.e. raw material, tools, capital and personnel’s”. To organize a business involves determining & providing human and non-human resources to the organizational structure. Organizing as a process involves: * Identification of activities. * Classification of grouping of activities. * Assignment of duties. * Delegation of authority and creation of responsibility. * Coordinating authority and

### Assignment - 2123 words

2123 words - 9 pages 4. Mondy , Noe and Premeaux 2002 pg 279 5. Mondy, Noe and Premeaux 2002 pg 214 6. http://www.businessdictionary.com/definition/remuneration.html 7. http://www.slideshare.net/onlineassignment/human-resourse-management-assignment-help 8. http://www.123helpme.com/federal-express-fedex-case-view.asp?id=165018 9. http://www.scribd.com/doc/54465180/FEDEX-Strategic-HRM 2.2 Career Planning and Development, both for managers of

## Related Essays

### Assignment 776 Words

776 words - 4 pages FST-01 ASSIGNMENT BOOKLET Foundation Course in Science and Technology Bachelor’s Degree Programme (BDP) (Valid from 1st July, 2013 to 31st March, 2014) It is compulsory to submit the assignment before filling in the exam form School of Sciences Indira Gandhi National Open University New Delhi (2013-14) Dear Student, We hope, you are familiar with the system of evaluation to be followed for the Bachelor's Degree Programme. At this

### Assignment 1439 Words

1439 words - 6 pages HIGHER NATIONAL DIPLOMA Assignment |STUDENT NAME |: | | |EDEXCEL REGISTRATION NO. |: | | |PROGRAMME |: |HND

### Assignment 862 Words

862 words - 4 pages the assignment, internet issues and communication breakdowns. Lack of communication among members, personality issues, family issues. A lack of good communication regarding conflicts and issues meeting deadlines. * How do team members agree together that they will deal with these and other conflicts? Constant communication through all the methods and tools that are available to us, resolving issues immediately and moving on to the next

### Assignment 573 Words

573 words - 3 pages Major Assignment Marks: 30 Marks Due : Week 6 Social Networking Websites and Electronic Commerce The popularity of social networking sites such as Facebook and Twitter are more than just for meeting friends. They have proved to be a powerful marketing channel. Social networking Websites provide opportunities for businesses of any size, whether congomerates, SMEs or one-man ventures. Social networking Websites are used to drive traffic