First: Using C#, in an application called LinkedWords, prompt the user to type in a sentence. Separate their input into words, placing each word into...
View the step-by-step solution to:

Question

First:

Using C#, in an application called LinkedWords, prompt the user to type in a

sentence. Separate their input into words, placing each word into a linked list as a separate node. Once it's in the linked list, do the following:

  • Loop through the list and output the length of each word. Then, output the average length of the words in the list. For example, "I am ready for the weekend" would output "1 2 5 3 3 7: 3.5"
  • Prompt the user for a new word, and add it to the beginning of the list. Then, loop through the list and output the sentence with the new word added. 
  • Prompt the user for a word to remove from the sentence. Remove that word from the list, then loop through and output the list again.


Second:

In C#, compile a Card class that stores the suit (hearts, clubs, spades, diamonds) and face value (2 through 10 plus jack, queen, king and ace). Add whatever constructors, methods, and/or properties are necessary for the rest of the problem.

In a separate driver application (GUI or console), use a stack of Card objects to implement a simple "high-low" card game:

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes