Questions
A palindrome is a word or a phrase that is the same when read both forward...

A palindrome is a word or a phrase that is the same when read both forward and backward. Examples are: "bob," "sees," or "never odd or even" (ignoring spaces). Write a program whose input is a word or phrase, and that outputs whether the input is a palindrome.

Ex: If the input is:

bob

the output is:

bob is a palindrome

Ex: If the input is:

bobby

the output is:

bobby is not a palindrome

Hint: Start by just handling single-word input, and submit for grading. Once passing single-word test cases, extend the program to handle phrases. If the input is a phrase, remove or ignore spaces.

IN JAVA

In: Computer Science

1. A rise in planned inventories is a leading indicator of an expansion. True / False?...

1. A rise in planned inventories is a leading indicator of an expansion. True / False? Explain 40 word max

2. A rise in the unemployment rate is a concurrent indicator of a recession   True / False? Explain 40 word max

3. Published data show that during the previous quarter (3 months) employment has risen that demand-pull inflation is rising. These indicators suggest that the growth of GDP is likely to increase in this or the next quarter. True / False? Explain 40 word max

4. A good leading indicator of changes in the rate of inflation during economic cycles is the change in the growth rate of the money supply. True / False? Explain 40 word max

5. The  index of consumer sentiment is usually a leading indicator. True / False? Explain 40 word max

In: Economics

WordBoss, Inc. uses 4 word processors and 2 desk-top computers to generate reports. The marginal product...

WordBoss, Inc. uses 4 word processors and 2 desk-top computers to generate reports. The marginal product of a word processor is 50 pages per hour and the marginal product of a desk-top computer is 500 pages per hour.

If the rental price of a word processor is $1 per hour and the rental price of a desk-top computer is $10 per hour, is WordBoss utilizing word processors and desk-top computers efficiently?

If the price of each page produced is $0.10, what is the value marginal product of a word processor?

If the price of each page produced is $0.10, what is the value marginal product of a desk-top computer?

If the rental price of a desk-top computer decreases to $5 per hour, how should WordBoss respond?

In: Economics

Write a 3 page essay using EDUCATION as your topic definition. You must decide your overall...

Write a 3 page essay using EDUCATION as your topic definition. You must decide your overall purpose or mode of discourse. It will probably be either to inform or explain (exposition) or to persuade (argument).
The paper might include the etymology (the origin of the word – you can find this info. in a dictionary a connotative definition, or a definition by negation (what the word is not).
You may want to use a number of modes (or patterns) of development (description, example, narration, process analysis) to develop the definition.
Remember, too, that the paper does not have to be scholarly and serious. It can be a lighthearted discussion of the meaning of a term. You may create whatever tone you want.

*REQUIRE 2-3 PAGES
*THE TOPIC IS TO INFORM ABOUT THE WORD " EDUCATION"
*THE WORD TO DEFINE IS "EDUCATION"
*HISTORY OF "EDUCATION"
•IFORM THE ORGIN WORD OF "EDUCATION

In: Nursing

4. The Hawaiian alphabet has twelve letters: five vowels (a, e, i, o, and u) and...

4. The Hawaiian alphabet has twelve letters: five vowels (a, e, i, o, and u) and seven consonants (h, k, l, m, n, p, and w). For the purpose of this exercise we will define an n–letter “word” as an ordered collection of n of these twelve letters with repeats allowed. Obviously, most such “words” will be nonsense words.

a) How many possible four–letter Hawaiian “words” are there?

b) What is the probability a randomly selected four–letter “word” has no repeated letter?

c) What is the probability a randomly selected four–letter “word” contains three different consonants and one vowel?

d) What is the probability a randomly selected four–letter “word” starts with a consonant?

e) What is the probability a randomly selected four–letter “word” contains exactly one consonant?

In: Statistics and Probability

Read the words in from the binary file and figure out how many times each word...

Read the words in from the binary file and figure out how many times each word appears in the file. Display the results to the user.

Use ObjectInputStream to read binary file

Use a HashMap with the word as a key (String) and an Integer as the value. For each word, first check to see if it already exists in the Map. If not, add the word as key with a value of 1 for the Integer value. If it does, get the current value and increment by 1 – replace the old key,value with the new key, value. After all the words are processed and the HashMap is complete. Iterate through the Hash map and display the results in a user -friendly fashion.

Create an easy to read table and print to the console. Hint: Use tabs (/t) (values are not from file)

Example:

Word                     Count

A                             190

Apple                        6

Etc

In: Computer Science

Complete the function, MycountWords in C++, which will count the number of words in a string....

Complete the function, MycountWords in C++, which will count the number of words in a string. We will have different word separators(such as newline(\n), spaces, special symbols(? | \ , . : ;) ) That will separate the words in the giving istringstream. Remember if a words is separated by a hyphen and followed by a new line, they're still one word. The function has an option to be sensitive to case and also avoid duplicates. for duplicates, this is a boolean value that checks whether a word is repeated or not if its set to true and sensitive case is if the word count is sensitive to case and differentiates two words based on their case. even though they have different cases, they are the same word hence duplicates.

complete this function based on the description above.

unsigned int MycountWords(istringstream & iss, bool Duplicate=false, bool SenstiveCase =false) {

}

In: Computer Science

Create the infrastructure for building a word cloud application by (1) Reading the content of a...

Create the infrastructure for building a word cloud application by

(1) Reading the content of a text file and creating a binary tree of words in that file. When a duplicate word is encountered. we simply increase the frequency count of that word in its corresponding node. In other words, the nodes in the tree have two parts. One part maintains the word, and the other maintains the frequency count. It should also be noted that words will not be case sensitive, hence three variations of the word (hello, Hello, HELLO), should be stored in the same node in the tree, and it should have a frequency of 3.

(2) Once the binary tree of words (including their frequency) has been created, we need to print the words and their frequency count (one word per line). (Use InOrder() traversal to display the words and their frequency count)

I have additional files,

  • blacklist.txt (Links to an external site.)
  • testfile.txt (Links to an external site.)
  • datafile.txt

if I have the code I can try link the files

In: Computer Science

In C++ Language English/Spanish Translation Program. Create a menu driven program that translates English to Spanish...

In C++ Language

English/Spanish Translation Program.

Create a menu driven program that translates English to Spanish and Spanish to English.

Your translation program should use arrays for this program. You will need to populate the arrays with the contents of the English and Spanish data files provided. The two files are ordered such that each word in the one file corresponds to the respective translation in the other (i.e.: the first word in the ENG.txt file corresponds to the first word in the SPAN.txt file; the second word in the ENG.txt file corresponds to the second word in the SPAN.txt file, and so on).

Read each file into an array, one array for English words and one for Spanish words. The text files provided each have 100 words. Use a menu driven process.

A message should be displayed if the selected word is not in the dictionary and an error message is displayed if you select an incorrect menu option. Your program must be in a loop so that you can make multiple selections without having to restart your program each time.

In: Computer Science

Code in Java Create a class named DictionaryWord as: DictionaryWord - word: String                            &n

Code in Java

Create a class named DictionaryWord as:

DictionaryWord

- word: String                                                             
- meanings: String

+ DictionaryWord (String word, String meanings)
+ getWord(): String
+ setWord (String word): void
+ getMeanings(): String
+ setMeanings(String meanings): void

Write a program with the following requirements:
Creates 8 DictionaryWord objects with:

  • Word and meanings as the table:

word

meanings

bank robber

Steals money from a bank

burglar

Breaks into a home to steal things

forger

Makes an illegal copy of something

hacker

Breaks into a computer system

hijacker

Takes control of an airplane

kidnapper

Holds someone for ransom money

mugger

Attacks and steals money from someone

murderer

Kills another person

  • Ensure that there is no duplicate DictionaryWord objects (02 DictionaryWord objects a and b are equal when a.word=b.word).

Displays all DictionaryWord with the format as:

<<no>.<<word>>
<<meanings>>

<<no>.<<word>>
<<meanings>>

Where: <<no>>=1,2…

Hint:

  • class DictionaryWord implements Comparable to order 2 DictionaryWord objects.
  • override equals(..) method to compare 2 DictionaryWord objects.
  • override toString()
  • use Set to ensure no duplicate.
  • Do not use TreeSet (to show the differences between the Set and TreeSet that Set still remove the duplicate but won't sort the elements)

In: Computer Science