![lerasteidl](/avatars/10662.jpg)
lerasteidl
24.03.2020 •
Computers and Technology
5. Write a program to remove any duplicate letters from a word and display the new word maintaining the original order. For example, bananas would become bans and bookkeeper would become bokepr. You may not use any special unique commands!
Solved
Show answers
More tips
- S Sport When will the Biathlon World Championships 2011 take place in Khanty-Mansiysk? Answers to frequently asked questions...
- O Other What is a Disk Emulsifier and How Does it Work?...
- F Family and Home What does a newborn need?...
- F Family and Home Choosing the Right Car Seat for Your Child: Tips and Recommendations...
- F Food and Cooking How to Get Reconfirmation of Registration?...
- C Computers and Internet How to Get Rid of Spam in ICQ?...
- A Art and Culture Who Said The Less We Love a Woman, the More She Likes Us ?...
- F Family and Home How to Get Rid of Your Neighbors?...
- S Society and Politics How Could Nobody Know About the Dead Mountaineers?...
- H Health and Medicine How to Cure Adenoids?...
Answers on questions: Computers and Technology
- M Mathematics A butcher claims that the average American eats at least 3.1 pounds of beef a month. A random sample of 60 people in the United States shows that the mean beef consumption by a person...
- M Mathematics Write the word sentence as an equation. Then solve the equation. The difference between a number p and 6 is −14 . Equation: ? Solution: p=?...
- S Social Studies Explain 3 aspects of a Jews life and faith (For example, Shabbat, the Torah, going to the Synagogue.) Include 5 key words in your paragraph. (do not have to use all of the keywords,...
Ответ:
word = input('Enter a single word: ', 's');
n = length(word);
nodupWord = [];
for i = 1:n
dup = false;
c = word(i);
for j = 1:i-1
if word(j) == c
dup = true;
break;
end
end
if ~dup
nodupWord = [nodupWord, c]; %add the non-duplicate char to end
end
end
disp(['Adjusted word: ', nodupWord])
Explanation:
The code is in Python.
Ответ:
2. Perfect technology assumption
Explanation:
Perfect technology assumption is an assumption that a system should always run under perfect operating conditions before event can be included during analysis and by doing this it make it possible to avoid system failure, which is why it is important for a system to always work under a perfect condition because in the initial stage of the system analysis, the perfect technology assumption assumes the system works in perfect condition .
Therefore Perfect Technology Assumption assume that events should be included during early iterations or analysis on condition that the system would be required to respond in an effective and efficient manner or ways.
Hence if event is included system controls checks should always be put in place to protect the integrity of the system perfect technology assumption.