![fergusonemily6433](/avatars/31616.jpg)
fergusonemily6433
15.01.2022 •
Computers and Technology
The fifth software engineering code of ethics principle, management, deals primarily with .
a.)leaders subscribing to and promoting ethical approaches to software development
b.)acting in the best interests of employers and clients as consistent with public interest
c.)being fair and supportive towards colleagues
d.)promoting ethical approaches to software development as well as engaging in lifelong learning in the profession
Solved
Show answers
More tips
- A Auto and Moto How many blood alcohol level units are allowed in Russian traffic laws?...
- G Goods and services Kogda zhdatt Iphone 5? The Latest News and Rumors...
- F Family and Home Parquet or laminate, which is better?...
- L Leisure and Entertainment How to Properly Wind Fishing Line onto a Reel?...
- L Leisure and Entertainment How to Make a Paper Boat in Simple Steps...
- T Travel and tourism Maldives Adventures: What is the Best Season to Visit the Luxurious Beaches?...
- H Health and Medicine Kinesiology: What is it and How Does it Work?...
- O Other How to Choose the Best Answer to Your Question on The Grand Question ?...
- L Leisure and Entertainment History of International Women s Day: When Did the Celebration of March 8th Begin?...
- S Style and Beauty Intimate Haircut: The Reasons, Popularity, and Risks...
Answers on questions: Computers and Technology
- M Mathematics Find the missing value. Hint: Use the number line to find the missing value. ad | +6= -3...
- B Biology Does a bacterial cell have DNA stored in the nucleus?...
- H History Describe the state’s use of religion in the Byzantine and Sasanid Empires....
- H History Are the pigs the best option as leaders? in Animal Farm Chapter 3? PLEASE HELP ME AND YOU WILL GET FREE POINTS NEXT TIME!!...
- G German bro people are supposed to be taught at a young age not to bully or body shame or cat call ppl bc of there apperance. i wasnt taught at all and still know not to do that,...
- E English What are the three major problems identified by mandela?...
- S Social Studies 4. Tulsa 1921: Reporting a Massacre On the last page of the book, Krehbiel quoted from a speech given by Oklahoma Senator James Lankford on the U.S. Senate floor in 2016....
- M Mathematics An artist drew a rainbow mural on a school cafeteria wall. Its outer boundary can be represented by a parabola with the equation, y = -x2 + 6x, where y is the height of...
- H Health Imagine a bodybuilder flexing their muscles. Which type(s) of tissue go into that action? O just epithelial tissue O just muscle tissue epithelial and connective tissue...
- H History On the first crusade,how did the crusaders from cologne reach the holy land? In what direction did they travel?...
Ответ:
Explanation:
The following code is written in Python. It is a recursive function that tests the first and last character of the word and keeps checking to see if each change would create the palindrome. Finally, printing out the minimum number needed to create the palindrome.
import sys
def numOfSwitches(word, start, end):
if (start > end):
return sys.maxsize
if (start == end):
return 0
if (start == end - 1):
if (word[start] == word[end]):
return 0
else:
return 1
if (word[start] == word[end]):
return numOfSwitches(word, start + 1, end - 1)
else:
return (min(numOfSwitches(word, start, end - 1),
numOfSwitches(word, start + 1, end)) + 1)
word = input("Enter a Word: ")
start = 0
end = len(word)-1
print("Number of switches required for palindrome: " + str(numOfSwitches(word, start, end)))