Reference no: EM131585616
(1) Prompt the user for a string that contains two strings separated by a comma.
Examples of strings that can be accepted:Jill, Allen
Jill , Allen
Jill,Allen
Ex:
Enter input string: Jill, Allen
(2) Report an error 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.
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.
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.
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
Find a minimum-weight spanning tree of the graph
: Find a minimum-weight spanning tree of the graph given in Example. First use any method you like, then do it using Kruskal's algorithm.
|
Find a minimum weight matching
: Now suppose that the information given in the previous problem is listed in preference order, i.e., the book the student desires most is listed first.
|
Conduct a search online for tutorials about normalization
: Conduct some research online for tutorials on Relational Database design. Conduct a search online for tutorials about normalization.
|
Financial and strategic parameters
: Analyze the Comcast's company's performance, both on financial and strategic parameters.
|
Prompt the user for a string that contains two strings
: Prompt the user for a string that contains two strings separated by a comma - Store the strings in two separate variables and output the strings
|
How time stamps will play a role in backtracking in time
: Describe how time stamps will play a role in backtracking in time until the point of entry for the worm is located watching the worm travel across the network.
|
Describe what behaviors seem related to retention
: Describe what behaviors seem related to retention of undergraduates on campus.compare those two variables for the two groups.
|
Case related to the crossword puzzle
: Consider the mini-sudoku puzzle of Figure 10.24, in which each row, column, and quadrant needs to contain the numbers 1, 2, 3, 4.
|
Explain what service would you recommend and why
: Would this cloud structure work regardless of how many students enroll? Based on your table, what service would you recommend and why?
|