Input: Kean
Output:
K
Ke
Kea
Kean
Kea
Ke
K
In: Computer Science
2.
Palindromes
A palindrome is a word that reads the same forwards
and backwards. For example,
\aibohphobia" (the irrational fear of palindromes) is
a word that reads the same
forwards and backwards. Write a function
called
isPalindrome()
that accepts a
string as a parameter and returns True if the string
is a palindrome, False otherwise.
Using the function you created, write a
program
Python home work
Python
In: Computer Science
Java Ask the user to input a letter grade in either upper or lower case. You are to output a message depending on the grade. When the input is A or a, output the word "Excellent!" When the input is B or b, output "Very Good" When the input is C or c, output "Satisfactory" For any other input you must output the word "Fail".
In: Computer Science
Sally is a 3-year-old girl presenting to the PCP’s office. Sally’s mother states she is having “temper tantrums.”
Subjective Data
Mother states Sally eats well
Sleeps 11-12 hours/day
Speaks in four- to five-word sentences
Objective Data
Birth weight: 3 kg
Today’s weight: 13 kg
Height: 90 cm
Speaks in three- to four-word sentences with a 300-word vocabulary
Questions:
In: Nursing
3. Write a Java program that discover all anagrams of all wordslisted in the input file, “dict.txt”. An anagram of a work is a rearrangement of its letters into a new legal word. Your program should do the following:
a. Read in the given “dict.txt” file and sort it in each word’s canonical form. The canonical form of a word contains the same letters as the original word, but in sorted order
b. Instead of putting the “dict.txt” in the code, ask the user to enter the file name
c. Retrieve a word’s canonical form and write a Comparator to compare words by using their canonical forms.
In: Computer Science
Please provide Python code that does the following:
2) A palindrome is any sequence of characters that reads the same backwards as forwards. One-word examples include:
|
Dad |
madam |
rotor |
|
Kayak |
redder |
noon |
For the sake of this exercise, the following may also be considered one-word palindromes:
|
1881 |
zap4554paz |
That is, numeric strings and “nonsense” strings that read the same backwards as forwards should be classified as palindromes.
Write a program that takes as input a string and determines if it’s a one-word palindrome. Here’s a sample output.
Please enter a string: redder
redder is a palindrome.
Please enter a string: zap4554paz
zap4554paz is a palindrome.
Please enter a string: hello
hello is not a palindrome.
In: Computer Science
In: Computer Science
1. Microsoft sold 300 copies of a word document in the month of April for $10/copy, 200 copies of PowerPoint for $25/copy, and 140 copies of excel for $30/copy. In the month of May, they sold 200 copies of a word document for $15/copy, 150 copies of PowerPoint for $30/copy, and 150 copies of excel for $40/copy. What is the GDP deflator index for the month of April based on the April pricings? (our answer should only be a number ex. 15000) *
2 points
50
95
100
115
2. Microsoft sold 300 copies of a word document in the month of April for $10/copy, 200 copies of PowerPoint for $25/copy, and 140 copies of excel for $30/copy. In the month of May, they sold 200 copies of a word document for $15/copy, 150 copies of PowerPoint for $30/copy, and 150 copies of excel for $40/copy. What is the real GDP for the month of May using April costs? (our answer should only be a number ex. 15000) *
In: Economics
Suppose that an analyst used text mining to study a pool of “true or false” questions that appeared in exams and quizzes, and had the following observations:
80% of all statements are true
10% of all statements contain a cue word in the set {“Always”, “Never”, “All”}
2% of true statements contain a cue word and 40% of false statements contain a cue word
False statements tend to be brief (i.e., containing less than 10 words) and true statements tend to be long. Specifically, 30% of false statements are brief and only 5% of true statements are brief.
Use Bayes Theorem and Naïve Bayes method to answer the following questions.
Given that a statement contains a cue word, what is its probability of being a true statement? (7 credits)
How would you classify the following statement using Naïve Bayes principle, i.e., is it a true statement
or a false statement? Show your calculations. (8 credits)
Statement: “All models are wrong.”
In: Statistics and Probability
Evaluate the course registration system at your university. List the basic steps of a user’s dialog with the system. What are some of the problems with the system from the perspective of ease of learning and ease of use? In what ways is the system inflexible? In what ways is needed information not available? Is too much information provided that distracts from the task at hand? [1] 2. Create a word processing document using your favorite word processor. At the top of the document put your name, course, lab number and date. 3. Answer the questions listed in the problem description. 4. Save your document in the word processors default format using the following name: Unit08Lab_. 5. Save (or export) your document again, using the naming convention described above, but this time in PDF format. So Marilyn Monroe's document would look like this: Unit08Lab_mmonroe.pdf. This document can be read by my system no matter what kind of operating system you have or what kind of word processor you use.
In: Computer Science