Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Ada program to solve the problem described above. To make the input easier to work with, in this version of the problem, the

Write a Ada program to solve the problem described above.

To make the input easier to work with, in this version of the problem, the employees' names will be represented by single letters: "A", "B", etc.

The input will contain 4 lines of 4 letters each, separated by a single space, representing the job assignments. This is followed by a positive integer N on a line by itself, indicating the number of employees. This is followed by N lines of 4 characters each: the employee's name (a single letter), then three numbers 1 or 0 indicating whether the person is good at answering phones, repairing computers, and fixing the network, in that order; these 4 characters will be separated by a single space.

You are guaranteed that there will be at least one employee and there will be no more than 26 employees.

The output will be one of the two messages "Acceptable" or "Not Acceptable".

Please stick strictly to the input format, as it will make your program easier to test.

Examples:

Input:

P D K L B T R F S N A C E G M O 17 A 1 1 1 B 1 1 1 C 1 1 1 D 1 1 1 E 1 1 1 F 1 1 1 G 1 1 1 J 1 1 1 K 1 1 1 L 1 1 1 M 1 1 1 N 1 1 1 O 1 1 1 P 1 1 1 R 1 1 1 S 1 1 1 T 1 1 1 

Output:

Acceptable 

Input:

Y C V L D E K S F G M T N J P Z 20 A 1 0 0 B 0 1 1 C 1 1 1 D 1 0 0 E 1 0 0 F 1 0 1 G 1 0 1 J 1 1 1 K 0 1 1 L 1 0 1 M 0 1 1 N 1 0 0 P 1 1 1 Q 1 1 0 R 1 0 0 S 0 1 1 T 0 0 1 V 0 1 0 Y 0 1 0 Z 1 1 1 

Output:

Not Acceptable

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Microsoft SQL Server 2012 Programming

Authors: Paul Atkinson, Robert Vieira

1st Edition

1118102282, 9781118102282

More Books

Students also viewed these Databases questions

Question

=+ What graphics could stop the viewer?

Answered: 1 week ago

Question

7. Do the organizations social activities reflect diversity?

Answered: 1 week ago

Question

What qualities do you see as necessary for your line of work?

Answered: 1 week ago