Questions: 1 835

Answers by our Experts: 1 539

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write a program that will accept the currency value and the name of the country and will display the equivalent in U.S. dollar, based on the given list:


COUNTRY CURRENCY U.S. DOLLAR EQUIVALENT

British Pound 0.6 U.S. dollar

Canadian Dollar 1.3 U.S. dollar

Japanese Yen 140 U.S. dollar

German Mark 1.7 U.S. dollar

Philippines Peso 53 U.S. dollar


Write a program using string functions that will accept the name of the country as input value and will display the corresponding capital. Here is the list of the countries and their capitals.


COUNTRY CAPITAL

Canada Ottawa

United States Washington D.C.

U.S.S.R. Moscow

Italy Rome

Philippines Manila


6.2. Write a program using string functions that accepts a coded value of an item and display its equivalent tag price. The base of the key is: 0 1 2 3 4 5 6 7 8 9 ----- X C O M P U T E R S Sample input/output dialogue: Enter coded value: TR.XX Tag price: 68.00


Write a program using standard string functions that accepts a price of an item and display its coded value. The base of the key is: X C O M P U T E R S 1 2 3 4 5 6 7 8 9 Sample input/output dialogue: Enter price: 489.50 Coded value: PRS.UX


In this exercise, you’ll implement a generic PriorityQueue<T> class that is parameterized by the type of object it contains. The priority queue will be used as a container of objects of type T. Implement Priority Queue in the following three ways

Create a small console application which provides a demo of various operations and its effect on the PriorityQueue object. There is no need for the application to be user interactive.

 




you are creating a small game for school kids. Game has multiple steps:

1Display following message to user: “Enter any number from 1-5"

2User enters an option from 1-5, show the exact message to user for the number selected

1Enter even number

2Enter odd number

3Enter a prime number

4Enter a negative number

5Enter zero

for e.g. if user has selected 1, then show “Enter even number”,

If user does not enter correct number from 1-5 show error message. and then -> GOTO step 1

3.If user has entered correct number, then show success, else show error. -> after this GOTO step 1

 

To validate type of user input, there should be a validation method, which will return true if user input is correct, else validation method will throw different exception for different failure scenario.

Create a CustomException class.

Also, when user has played this game for 5 times, show a message to user you have played this game for 5 times. Handle this also using exception.

 


Get all the files from a given directory and perform the following actions

1.       Return the number of text files in the directory (*.txt).

2.       Return the number of files per extension type.

3.       Return the top 5 largest files, along with their file size (use anonymous types).

4.       Return the file with maximum length


Get all the files from a given directory and perform the following actions

1.       Return the number of text files in the directory (*.txt).

2.       Return the number of files per extension type.

3.       Return the top 5 largest files, along with their file size (use anonymous types).

4.       Return the file with maximum length


Extension methods on IEnumerable<T>. All of them taking a delegate

1.       CustomAll - Should work as All operation of Linq, with custom logic passed as delegate

2.       CustomAny - Should work as Any operation of Linq, with custom logic passed as delegate

3.       CustomMax - Should work as Max operation of Linq, with custom logic passed as delegate

4.       CustomMin - Should work as Min operation of Linq, with custom logic passed as delegate

5.       CustomWhere - Should work as Where operation of Linq, with custom logic passed as delegate

6.       CustomSelect - Should work as Select operation of Linq, with custom logic passed as delegate

 


Extension methods on IEnumerable<T>. All of them taking a delegate

1.       CustomAll - Should work as All operation of Linq, with custom logic passed as delegate

2.       CustomAny - Should work as Any operation of Linq, with custom logic passed as delegate

3.       CustomMax - Should work as Max operation of Linq, with custom logic passed as delegate

4.       CustomMin - Should work as Min operation of Linq, with custom logic passed as delegate

5.       CustomWhere - Should work as Where operation of Linq, with custom logic passed as delegate

6.       CustomSelect - Should work as Select operation of Linq, with custom logic passed as delegate

 


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS