Question: In c# please!!!!! Write a simple program that has a loop in which the user is prompted for a single character and a value. If

In c# please!!!!!
Write a simple program that has a loop in which the user is prompted for a single character and a value. If the character has not been entered before, the character and value will be stored. If the character has been entered previously, the user will be shown the value currently associated with that character. The user will then be asked whether to replace the existing value with the new value. If the user selects 'Y', the value will be replaced. Otherwise, the value will be left as is. If the user types 'Q', the loop will end. The program will then print the (unordered) character/value pairs and then sum all of the values.
There are numerous ways you could implement this, but I expect you to use a Dictionary, of course.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!