Please write a function named palindromes, which takes a string argument and returns True if the string is a palindrome. Palindromes are words which are spelled exactly the same backwards and forwards. Please also write a main function which asks the user to type in words until they type in a palindrome: Please type in a palindrome: python that wasn't a palindrome Please type in a palindrome: java that wasn't a palindrome Please type in a palindrome: oddoreven that wasn't a palindrome Please type in a palindrome: neveroddoreven neveroddoreven is a palindrome! NB:, the main function should not be within an if name Sample output _main__": block
Q: Think about trying out the computer hardware sales industry. In your opinion, new college grads are…
A: Computer hardware, to put it simply, is the actual equipment needed to run a computer system.…
Q: Answer the following question: Why would a network administrator want to filter certain ports when…
A: The answer is given below step.
Q: Provide an example to illustrate each of the following: Keys of Nature Primary Keys That Combine…
A: The primary key isn't always the case. Natural keys are made up of real data, and they are commonly…
Q: What is the one most essential trait for a Software Test Engineer to have?
A: A software tester is a person that tests software for bugs, errors, defects or any problems that…
Q: How is a catastrophic fault conceivable in a two-tier client-server architecture? What is the answer…
A: In a two-tier client-server architecture, a catastrophic fault could occur if the server component…
Q: e two justifications for using layered
A: Solution - In the given question, we have to mention two justifications for using layered protocols.
Q: Data stripping and cylinder both need to be defined, thus a. b) Attempt to carve out some time.
A: Dispersed Data Files and many other data types often include a great deal of information. This data…
Q: What function does RTOS play in IoT?
A: The Answer is in given below steps
Q: How does the Compiler handle all of the steps? Is there any way to provide a working sample of each…
A: In this question we need to explain how a compiler handle all steps involved. We also need to…
Q: Can you name a few scenarios where SSH might be useful? What does SSH stand for and what do its…
A: SSH (Secure Shell) is a network protocol that allows secure remote login and other network services…
Q: Do you comprehend the differences between TLS and SSL? Do we need to make any distinctions? Could…
A: SSL, or Secure Sockets Layer, is a well-liked security method that establishes an encrypted…
Q: Object-oriented programming and procedural programming are contrasted and compared. What personality…
A: The answer to the question is given below:
Q: Just what is an OS, and how does it function, exactly? The batch OS might be described in a single…
A: An operating system is software that controls hardware and software resources and provides common…
Q: Why is it necessary to have SCM in place, and what exactly is it?
A: Management of Software Configuration: SCM (Software Configuration Management) is the process of…
Q: Give a thorough breakdown of what an embedded system is and offer your opinion on what features…
A: The answer is given below step.
Q: The lexicon of computer science contains terms such as Data Dictionary and Contrast Repository.
A: A Data Dictionary is a component of a Database Management System that describes how a database is…
Q: What exactly does "application partitioning" mean?
A: Developing programs that may share their logic across several computers inside an organization is…
Q: In SQL Server, you may choose between three distinct character data types: NVARCHAR, NVARCHAR, and…
A: Introduction: When a SQL developer creates a table, he or she must determine what data will be…
Q: The Exception shape triggers User Alerts received when only when logged into AtomSphere.
A: The Exception shape provides the ability to terminate the data flow down a path and define the…
Q: What are the two kinds of data processing methods employed in modern systems?
A: 1. A database management system (or DBMS). It is essentially just a computer-based data storage…
Q: When it comes to robust programming languages, what do you value the most?
A: Syntax, documentation, error messages, and exception handling are the basic features of an excellent…
Q: Can bugs be fixed by using clever programming techniques? Does it have positive or negative…
A: A bug is a mistake, defect, failure, or fault in a computer programme or software system that…
Q: You need these three things to have a reliable and productive network: Give me an explanation of…
A: Nodes in a computer network, such as computers, routers, and switches, can be connected through…
Q: To what extent do the concepts of cohesion and coupling vary when applied to the field of software…
A: The coupling is defined as the measure of interdependence between modules. The modules become…
Q: What are the most important considerations that must be made while establishing a physical database?
A: The answer to the question is given below:
Q: Which is better, Transport Layer Security (TLS) or Secure Sockets Layer (SSL)? Is there a meaningful…
A: Previously, SSL: * Secure Sockets Layer security technology was used, which contains the domain name…
Q: When faced with a cyberattack from a Generation 6 system, what should be done to defend yourself?
A: Manage the Extent of the Damage Isolate the infected systems and quarantine them in order to control…
Q: What is the difference between a thread and a process in a computer system?
A: What is a Process? A process is the execution of a programme that enables you to carry out the…
Q: An company plans to collect and store a sizable amount of information on its IT infrastructure. List…
A: Data storage refers to the process of retaining digital information in a computer or other…
Q: Try to summarise some key features of Linux using your own words. Why go into such into about these…
A: Required: Describe some of Linux's features in your own words. It is necessary to go into…
Q: What are the benefits of both vertical and horizontal partitioning?
A: Given:- What benefits can vertical and horizontal partitioning offer?
Q: What are the most critical factors to consider while doing performance testing?
A: Introduction: Performance testing is a method of determining how fast, responsive, and stable a…
Q: What is the first reaction to "Data vs Information"?
A: Data Vs Information Data Data is an unorganized fact that required to be processed to make it the…
Q: Can you name a few scenarios where SSH might be useful? Explain each of the SSH acronyms.
A: The answer of both parts are given below with explanation
Q: Contrast Repository with Data Dictionary.
A: A major component of the ABAP workbench, the ABAP Dictionary stores and organises all of the…
Q: What is the purpose of Database as a Service (DaaS), and how does it work? Why is it important to…
A: The answer is discussed in the next step
Q: Is there anything that differentiates multiple processes from numerous threads? Explicate this to me…
A: Diagram of ComparisonBASIS FOR COMPARISON MULTIPROCESSING MULTITHREADING Adding more central…
Q: Just what do the terms "hardware" and "software" refer to?
A: The answer is discussed in the below step
Q: What function does RTOS play in loT?
A: Please check the solution below
Q: Can a corporation utilise an intrusion detection or intrusion prevention system to prevent…
A: An intrusion detection or intrusion prevention system may be used to prevent unauthorised access…
Q: Compiler architectures on the backend may be compared and contrasted.
A: The front end and back end of the compiler are separated into two modules. Front-end components…
Q: Do you know what a typical operating system's kernel consists of?
A: A kernel is main heart of system which has full control over system. Kernel directly interacts with…
Q: Give a thorough breakdown of what an embedded system is and offer your opinion on what features…
A: IoTEmbedded systems are customised computer systems that incorporate software and hardware to…
Q: What is the purpose of Database as a Service (DaaS), and how does it work? Why is it important to…
A: In this question we need to explain purpose of Database as a Service (DaaS) and how does it…
Q: Try to summarise some key features of Linux using your own words. Why go into such into about these…
A: Describe a few qualities of Linux in your own words. It is necessary to describe these traits in…
Q: Can bugs be fixed by using clever programming techniques? Does it have positive or negative…
A: Definition: An error, defect, failure, or fault in a computer programme or software system is…
Q: Provide an example to illustrate the meaning of each of the following terms: ready-made software and…
A: In this question we need to explain ready-made and bespoke software. We also need to explain why we…
Q: Get a hard copy of update.txt printed if you can't remember where you stored it.
A: For the Purpose of Locating the File If you don't know where the file is located but you do know its…
Q: Give an in-depth description of the concert's organisational context and the advantages of a…
A: In this question we need to explain concert's organizational context and advantages of a top-down…
Q: Computer graphics is a handy technique or tool for delivering computer-generated charts, diagrams,…
A: The discipline of computer graphics may be seen as a subfield of computer science that is…
Can you use Python
Thanks
Step by step
Solved in 4 steps with 2 images
- // write a function that takes the input string and reverses it// example// argument: Hello// return: olleHfunction reverseThisString(string){ } // write a function that takes the input string and switches all uppercase characters to lowercase and lowercase charcaters to uppercase// example:// argument: Hello World// return: hELLO wORLDfunction swapCase(string) { } //convert array of numbers from farenheit to celcius// example:// argument: [23, 32, 41, 50, 59]// return: [-5, 0, 5, 10, 15]// hint: use Array.mapfunction toCelcius(array){ } //write a function that takes an input array and returns an array of booleans (>=75) or fail (<75)// example:// argument: [20, 30, 50, 80, 90, 100]// return: [false, false, false, true, true, true]// hint: use Array.mapfunction passOrFail(array){ } //write code that loops through the two variables returns an array ['2 is zwei', '3 is drei', '4 is vier', '5 is fünf', '6 is sechs']// example:// return: ['2 is zwei', '3 is drei', '4 is vier', '5 is…Make a function is_palindrome that takes a string as an argument that returns True if the given string is a palindrome, and False otherwise. A string is a palindrome if it is the same if you reverse it. For example: "racecar" "kаyak" "otto" "redivider" "wontloversrevoltnow"Write a function that prompts the user to input a sentence. Then checks the sentence to make sure the following rules have been followed: • the entire first word of the sentence should be capitalized • the sentence ends with a punctuation mark (any) If the sentence meets these requirements, print and return the string RULES CONFIRMED (exactly as shown). If the sentence does NOT meet the requirements, the function should fix the sentence such that it will pass the rules, print the type of error(s) and then return the fixed sentence. Examples Examples of function being called fixer ("THIS is a test?") Example of function output RULES CONFIRMED ERROR: First word is not translate ("this is capitalized a test") ERROR: Missing ending punctuation mark translate ("THIS is ERROR: Missing ending a test") punctuation mark translate ("This is First word is not a test!") capitalized Example of string returned by function RULES CONFIRMED THIS is a test. THIS is a test! THIS is a test!
- Create a function that accepts a string (of a person's first and last name) and returns a string with the first and last name swapped. Examples NameShuffle("Donald Trump") - "Trump Donald" NameShuffle ("Rosie O'Donnell") - "O'Donnell Rosie" NameShuffle ("Seymour Butts") - "Butts Seymour" • There will be exactly one space between the first and last name. In c#1- Write a function that takes a word less than 25 characters long and returns the letter that word starts with (in capital letters). Frank starts with the letter F. 2- Write a function that has a string as formal parameter. The function then replaces all spaces and punctuation marks in the string with the asterisk (*). Here is a sample run: Nothing is impossible, the word itself says 'I'm possible'! Nothing*is*impossible**the*word*itself*says**I*m*possible** 3- Write a function that takes as input one line and reverses the words of the line. For example, birds and bees Reversed: bees and birds 4- Write a function that takes nouns (a string) as inputs and forms their plurals based on these rules: a. If noun ends in "y", remove the "y" and add "ies". b. If noun ends in "s","ch", or "sh", add "es". c. In all other cases, just add "s". (Test on the following: chair dairy boss circus fly dog church clue dish) chairs dairies bosses circuses flies dogs churches clues dishes Now create the…please code in python Write a function that receives a string and a number (n) as parameters and returns a new string that contains only every nth letter from the given string. print(everyNth('banana', 2)) # should return aaaprint(everyNth('carrot', 3)) # should return rtprint(everyNth('pear', 1)) # should return pear
- Write a function that reverses a string. The header of the function is: def reverse(s):Write a test program that prompts the user to enter a string, invokes the reverse function, and displays the reversed string.in javas Write a function that accepts string as its argument. The function should count the number of vowels appearing in the string and return that number. Write another function that accepts a string as its argument. This function should count the number of consonants appearing in the string and return that number. Demonstrate these two functions in a program that performs the following steps: The user is asked to enter a string. The program displays the following menu: A) Count the number of vowels in the string B) Count the number of consonants in the string C) Count both the vowels and consonants in the string D) Enter another string E) Exit the program The program performs the operation selected by the user and repeats until the user selects E to exit the program.In Python, program a function called "capitalizePhrases", with the following heading: # capitalizePhrases: str -> str# It receives a string with several sentences separated by ".", Where all its letters are in # uppercase and delivers the same string but with the first letter of each sentence in uppercase# and the others in lowercase:# Example: capitalizePhrases("HELLO.THAT WELL IT DIDN'T RAIN SO MUCH TODAY.BE CAREFUL."),# must deliver: "Hello.That well it didn't rain so much today.Be careful."# Observation: both in entry and exit, there is no space after a point.# Also suppose that both input and output do not include accents. (á, ó, etc.)def capitalizePhrases(upperText):
- Create a function that takes a string of words and returns the word with the highest score. Each letter of the word gets points according to its position in the alphabet: a = 1, b = 2, C = 3, etc. Examples wordRank ("A quick brown fox.") → "brown" wordRank ("Nancy is very pretty.") "pretty" wordRank ("Come back tomorrow, man!") → "tomorrow" wordRank ("Wednesday is hump day.") "Wednesday" Solution in JS 10For each function, describe what it actually does when called with a string argument. If it does not correctly check for lowercase letters, give an example argument that produces incorrect results, and describe why the result is incorrect. # 1 def any_lowercase1(s): for c in s: if c.islower(): return True else: return False # 2 def any_lowercase2(s): for c in s: if 'c'.islower(): return 'True' else: return 'False' # 3 def any_lowercase3(s): for c in s: flag = c.islower() return flag # 4 def any_lowercase4(s): flag = False for c in s: flag = flag or c.islower() return flag # 5 def any_lowercase5(s): for c in s: if not c.islower(): return False return True The code and its output must be explained technically whenever asked. The explanation can be provided before or after the code, or in the form of code comments within…PYTHON Problem Statement Implement a function which takes two arguments: the first is a string and the second is a single character (as a string). This function should move every instance of the given character in the string to the end of the string, and then return (do NOT print) the final string. NOTE: Only write code within the function. You do not need to utilize the "input()" function. The autograder passes inputs directly to the function as arguments, and the checked output is the returned value from the function. Sample Input "hello how are you?", "o" Sample Output "hell hw are yu?ooo" Starter Code def move_character(word, character):