Answer:
lst = []
n = int(input("Input an array size for you words array: "))
print("Now please enter " + str(n) + " words")
max = 0
min = 1000
index_min = 0
index_max = 0
for i in range(n):
s = input("Input a word: ")
lst.append(s)
if len(s) >= max:
max = len(s)
index_max = i
if len(s) <= min:
min = len(s)
index_min = i
print("The longest word is :" + lst[index_max])
print("The shortest word is :" + lst[index_min])
Explanation:
Create an empty list, lst
Get the size from the user
Create a for loop that iterates "size" times
Inside the loop, get the strings from the user and put them in the lst. Find the longest and shortest strings and their indices using if structure.
When the loop is done, print the longest and shortest
Answer:
The purpose of the quality assurance test is to assess the level of detector noise in the system.
Explanation:
Quality Assurance (QA) is characterized as an operation to ensure a company provides customers with quality products or services. QA concentrates on improving the processes of supplying customers with quality products. A company must ensure the efficiency and effectiveness of the systems in compliance with software products ' quality standards. Quality assurance is commonly referred to as QA monitoring
Purpose of the Quality Assurance:
- The assurance of quality is to check whether the produced product is appropriate for use. To a certain end, procedures and practices that need to be changed regularly should be pursued by the organization.
- It mainly focuses on product/service quality that we offer to customers during or after software implementation.
Answer:
The mechanical age can be defined as the time between 1450 and 1840. A lot of new technologies were developed in this era due to an explosion of interest in computation and information. Technologies like the slide ruler (an analog computer used for multiplying and dividing) were invented in this period.
Answer:
Both if-then and switch is the decision control structure that enables the program to execute a statement or block of codes
Explanation:
This decision control structure always checks for one or more condition and execute true statement “if the condition is true” otherwise it will execute false statement (if present). The “true statement” is compulsory.
In case of “if-then loop”, it executes the true block only if the Boolean expression is true. In a similar way in switch-case, the same happens and instead of else part there will be a “default” statement which is compulsory to be present and it will get executed.
Answer:
The DFA and regular expression is given in the attached file.
Explanation: