Questions
use c++ (1) Prompt the user for a string that contains two strings separated by a...

use c++

(1) Prompt the user for a string that contains two strings separated by a comma. (1 pt)

  • Examples of strings that can be accepted:
    • Jill, Allen
    • Jill , Allen
    • Jill,Allen

Ex:

Enter input string:
Jill, Allen


(2) Print an error message if the input string does not contain a comma. Continue to prompt until a valid string is entered. Note: If the input contains a comma, then assume that the input also contains two strings. (2 pts)

Ex:

Enter input string:
Jill Allen
Error: No comma in string.

Enter input string:
Jill, Allen


(3) Extract the two words from the input string and remove any spaces. Store the strings in two separate variables and output the strings. (2 pts)

Ex:

Enter input string:
Jill, Allen
First word: Jill
Second word: Allen


(4) Using a loop, extend the program to handle multiple lines of input. Continue until the user enters q to quit. (2 pts)

Ex:

Enter input string:
Jill, Allen
First word: Jill
Second word: Allen

Enter input string:
Golden , Monkey
First word: Golden
Second word: Monkey

Enter input string:
Washington,DC
First word: Washington
Second word: DC

Enter input string:
q

In: Computer Science

write C++ program using functions (separate function for each bottom) Write a program to find if...

write C++ program using functions

(separate function for each bottom)

Write a program to find if a number is large word for two given bottom base - bottom1 and bottom2. You can predict that a number, when converted to any given base shall not exceed 10 digits. .

the program should ask from user to enter a number that it should ask to enter the base ranging from 2 to 16 after that it should check if the number is palindrom or not
Sample Input:

A number is called a word if it's represented in its bottom. e.g. Let  bottom1 = 6 and bottom2 = 2 as it is not a word in base 5(1010)(as the reciprocal of the number isnt a palindrome).
bottom is base of a number
take bases as input from user
bases can go from decimal-hexadecimal.

for bottom1 = 3 & bottom2 = 4, then the number 130 (in base 10) will be called a large_word, as it is word in bottom 3 (11211) as well as in bottom 4 (2002). However, it is not a large_word for bottom1 = 3 and bottom2 = 5 as it is not a word in bottom 5(1010).

Number: 51

bottom(base) 1: 6

bottom(base) 2: 2

Sample Output:
51 is not large word

hint:
bottom is basically base of a number

A large _word is a word, phrase, number, or other sequence of characters which reads the same reverse or straightward.

word==palindrome

use function in the program at all time

In: Computer Science

POST #1 (DISCUSSION) I POST IT TWICE, DONT ANSWER TO BOTH POSTS. DO NOT COPY YOUR...

POST #1 (DISCUSSION)

I POST IT TWICE, DONT ANSWER TO BOTH POSTS. DO NOT COPY YOUR ANSWER TO BOTH POSTS. I NEED TWO DIFFERENT VIEW. Thanks

YOUR ANSWER WILL BE CHECK FOR PLAGIARISM.

***PLEASE DO NOT UPLOAD PHOTO FOR ANSWER

***** DO NOT COPY FROM ANY WEBSITE. USE YOUR OWN WORD. DO NOT ANSWER IF YOU ARE NOT COMFORTABLE FOR ANY RESON.

****USE YOUR OWN WORD

****USE YOUR OWN WORD

****USE YOUR OWN WORD

****USE YOUR OWN WORD

--------------------------------------------------------------------------------------------------------------

Discussion

Discuss what you would consider part of the growing Special Populations. In addition, what specific issues and concerns do you have about emergency planning in respect to our Special Population?

In: Economics

Use winHex to become familiar with different the types. Follow these steps 1) Locate or create...

Use winHex to become familiar with different the types. Follow these steps

1) Locate or create Microsoft Excel(xlsx), Microsoft Word (docx), gif , jpg, and mp3 files if you are creating a word document or an excel spreadsheet save its as a word or excel file.

2) Start WinHex

3) Open each file type in WinHex. Record the hexadecimal codes for each file in a text editor , such has Notepad or Worded. For example for the Word document , record Word Header:50 4B 03 04.

4) Save the file , and then print it to give to your instructor.

Note ) this is forensic class not operation Management class bcoz chegg doesn’t have an option of forensics class so i have to choose operation Management

In: Computer Science

Managers of three divisions- A, B and C- of Reagan Ltd. delivered following data to Nola...

Managers of three divisions- A, B and C- of Reagan Ltd. delivered following data to Nola Smith, Chief Executive Officer (CEO). Looking at the data Nola states, “I know headquarters want us to evaluate performance of our divisions based on return on investment, but how come we have missing information!!”

Comparative data:

Departments

A

B

C

Sales (a)              

$300,000

$250,000

$?

Net operating income (b)             

$42,000

$35,000

$?

Average operating assets (all investments in operating assets are expected to earn a minimum return of 9%)

$150,000

$?

$500,000

Margin (b) Ă· (a)

     ?

?

3.5%

Turnover (a) Ă· (c)            

     ?

?

2.0

Return on investment (d) (ROI)  

     ?

7%

?

Residual Income

     ?

?

?

Required 4.1

Fill in the missing information above. Show your calculation.                                                     

Departments

A

B

C

Add column and/or row if required.

Show your workings here (expand the space as required):

   

Word count =

Required 4.2

Comment on the relative performances of the three divisions in as much detail as the data permit. Make specific recommendations about how to improve the ROI.                                                       

[Word limit: 150 words. Note the word count at the end of your answer]

Your answer (expand the space here):

Word count =

Required 4.3

What advantages are there to breaking down the ROI computation into two separate elements, margin and turnover?                                                                                                                                   

[Word limit: 150 words. Note the word count at the end of your answer]

Your answer (expand the space here):

Word count =

Required 4.4

Identify accounting items such as investment, profit, revenue and expenses that Division A should control if it is to be fairly evaluated as a separate profit centre within Reagan Ltd. using either ROI and RI.

                                                                                                                                                                      

[Word limit: 50 words. Note the word count at the end of your answer]

Your answer (expand the space here):

Word count=

In: Accounting

**To Be Written in Python for Beginners** Overview Do you know what an alternade is? Of...

**To Be Written in Python for Beginners**

Overview Do you know what an alternade is? Of course you don’t, no one does! According to Wikipedia, an alternade: “is a word in which its letters, taken alternatively in a strict sequence, and used in the same order as the original word, make up at least two other words. All letters must be used, but the smaller words are not necessarily of the same length. For example, a word with seven letters where every second letter is used will produce a four-letter word and a three-letter word.” In most cases, the alternade is formed by looking at letters that are two spaces apart, with the first word starting at position 0, and the second from position 1. For example, the word “pained” is an alternade, because using the rules above we produce 2 words: “pie” and “and” Your job is to write a Python program that asks the user to make one of two choices
destruct or construct. If the user chooses destruct, prompt them for an alternade, and then output the 2 words from that alternade. If the user chooses construct, prompt them for 2 words, and then output the alternade that would have produced those words. You must enforce that the users enter real words
or at least not blatant non-words. So if their input contains numbers, whitespace, punctuation, etc., you should prompt them for input until correct input is provided. **You can assume the word entered is of even length, but if you want a challenge, figure out how to implement if the length of the word is even or odd.** If you manage to get all that done, then implement the following: the words output by your program must be in alternating case, starting with uppercase. So, for example, if you wanted to output the word “happy”, it should be displayed as “HaPpY.”

In: Computer Science

Use this constant dictionary as a global variable: tile_dict = { 'A': 1, 'B': 3, 'C':...

Use this constant dictionary as a global variable:

tile_dict = { 'A': 1, 'B': 3, 'C': 3, 'D': 2, 'E': 1, 'F': 4, 'G': 2, 'H': 4, 'I': 1, 'J': 8, 'K': 5, 'L': 1, 'M': 3, 'N': 1, 'O': 1, 'P': 3, 'Q': 10, 'R': 1, 'S': 1, 'T': 1, 'U': 1, 'V': 4, 'W': 4, 'X': 8, 'Y': 4, 'Z': 10 }

Implement function scrabblePoints(word) that returns the calculated points for the word based on the tile_dict above. The word parameter is a string. This function takes the string and evaluates the points based on each letter in the word (points per letter is set by the global dictionary). P or p is worth the same points. No points calculated for anything that is not A-Z or a-z.

[You may use upper() and isalpha() ONLY and no other method or built-in function]

Examples:

word = “PYTHON”

print(scrabblePoints(word))

returns:

14

word = “hello!!”

print(scrabblePoints(word))

returns:

8

word = “@#$=!!”

print(scrabblePoints(word))

returns:

0

Note: This function relies on scrabblePoints. Function you solved in Question 2.

Implement function declareWinner(player1Word = “skip”, player2Word = “skip”) that returns either “Player 1 Wins!”, “Player 2 Wins!”, “It’s a Tie”, “Player 1 Skipped Round”, “Player 2 Skipped Round”, “Both Players Skipped Round”. The player1Word and player2Word parameters are both type string. Assume input is always valid. This function should call on the function scrabblePoints to earn credit.

[No built-in function or method needed]

Examples:

player1Word = “PYTHON”

player2Word = “Pizza”

     print(declareWinner(player1Word, player2Word))

     returns:           

     Player 2 Wins!

              print(declareWinner(player1Word))

              returns:           

              Player 2 Skipped Round

In: Computer Science

Calculate the following 1) a. Give examples of each: A hex dword, a binary word, and...

Calculate the following
1) a. Give examples of each: A hex dword, a binary word, and decimal byte
c. If x is a word, which command(s) are legal ?
movzx eax,x movzx ah,x movzx ax, x
d. How many bits in a word?
e. Put 12345h in DWORD format.

In: Computer Science

linux use the command dmesg, use grep to filter and then redirect just the lines with...

linux

use the command dmesg, use grep to filter and then redirect just the lines with the word Linux in them from the output generated by the dmesg command. redirect this output to a file at the path PutFileHere/Dmesgoutput.txt. What command did you use to do this, if there is no output choose a different word to grep for in the output of this command and substitute that word.

In: Computer Science

Write in detail about: The deïŹnition, types and causes/etiology of UTI. should be as an essay...

Write in detail about:

  1. The deïŹnition, types and causes/etiology of UTI. should be as an essay the word limit is not less than 400 word

In: Nursing