Jukebox HeroIn C#

Jukebox HeroIn C# 1

Jukebox HeroIn this problem, you will be creating a dictionary that will store album names and a list of songs on that album.First, start by creating a Dictionary that will use a string of the album name as the key. The Value Pair will be a string list. This list will contain each song’s name as an element.There must be at least (4) song names on every album.Then create at least (4) elements in the dictionary. These can be any Album & it’s matching songs that you would like.Explain to the user that you will be showing them a list of album names and prompt them to choose a name to get the songs on that album. Remember to validate this prompt to ensure they are typing in a valid album name.Then create a loop that will cycle through the List (value pair) and print out the names of the songs.User Inputs:The chosen Album NameResult To Print Out:“The album X has the following songs:Song1Song2Song3Song4Song5, etc..”Where X is the Album name.
Where Song1-5 are the names of the songs on that album.
These variables must use the Key and Value Pair from the Dictionary.

Loan Agency #

Loan Agency # 2

Loan Agency wants to get some account information from banks . They need data like account number , account holder name , bank name and balance . They will need this information in specified file format .Write a program to write the content to the file.In ‘Main’,Get the account number , account holder name , bank name and balance from the user.Write these content to the file, output.csv in comma seperated.Sample Input:Enter Account No : 234567Enter Account Holder Name : PeterEnter Bank Name : SBIEnter Bank Balance:40000Sample Output:Bank Information written to file successfully.The file “output.csv” should contain the bank information234567,Peter,SBI,40000

Calculator C#

Calculator C# 3

Create a class called Calculator which contains methods for arithmetic operations such as Addition, Subtraction ,Multiplication and Division. Division method should return the Quotient and Remainder(hint:use out parameter).Follow the method signatures as given below:public int Addition(int a, int b)public int Subtraction(int a, int b)public int Multiplication(int a, int b)public double Division(int a, int b, out double remainder). //The method should return the Quotient and Remainder should be passed through the out parameter.The methods should return the appropriate result.Create a class Program with Main Method . Prompt for 2 operands and operator from the user, Call the appropriate method for operation and display the results.Note:Don’t create any new namespace.Create classes with pubic access specifierSample InputEnter the operator+Enter the operands1210Sample OutputResult of 12 + 10 is 22Sample InputEnter the operator/Enter the operands112Sample OutputResult of 11 / 2 is 5Remainder =1Sample InputEnter the operator&Enter the operands1210Sample OutputInvalid Operator


PassTask3 4

In this section, you will create a new Console Project which contains a Transaction class
and a TransactionMode enumeration.
Each Transaction will:
■ Know its transaction number
■ Know its date
■ Know its amounts
■ Know its points gained
■ Know what transaction mode it belongs
■ Can be constructed with a given transaction number, date, amounts, and transaction
■ Can update the points based on the transaction amount (For every transaction amount
of RM10 is equivalent to 1 point)
■ Can be printed, which returns a message depending on the transaction mode.
These are the following Transaction Mode, and they return the indicated messages:
■ Online
o “That’s a wise choice with more rewards”
■ Offline
o “You have secured some points”

GuessNumberGame C#

GuessNumberGame C# 5

Make sure to complete the Setup Confirmation assignment. It will walk you through how to prepare a Visual Studio project.
Rules: Create a program that explains the rules of the game.
Player 1 Picks a number between 0 and 100
Player 2 gets 5 guesses to find Player 1’s number.
After Player 2 guesses correctly or loses the game, the game will provide the option to start over.
At any time, the users can opt to exit out of the game by typing “quit” or “exit”
Player 1: User will input a number between 0 and 100.
The program should validate that:
Player 1 did input a number and not anything else
If the number is ***** than 0, make it 0.
If the number is ***** than 100, make it 100.
If Player 1 did not input a number, ask the player to please stick to only numbers.
The program will then ask Player 2 for their guess.
Player 2: User will input a number between 0 and 100
The program should validate this input the exact same way using the same criteria
If the guess is correct, the game will tell the player how many guesses it took to get it right.
If this is the last guess, the game will tell the player that they have run out of guesses and have lost the game.
If the guess is too high or too low, the game will relay that information to the player and also provide how many guesses are left.

Write a program named HoursAndMinutes

Write a program named HoursAndMinutes 6

Write a program named HoursAndMinutes that declares a minutes variable to represent minutes worked on a job, and assign a value to it.Display the value in hours and minutes. For example, if 98 is assigned to the minutes variable, the output would be: 98 minutes is 1 hours and 38 minutes.Note: For final submission assign 197 to the minutes variable



You have been contracted to create an application that can be used to determine the discount awarded for preferred customers. Because of the time limitation, you should focus your attention on the preferred customer class. Include data members of customer ID, customer name, and customer purchase. Define appropriate constructors and properties for the class.
Include a method that returns the discount percentage based on the following:
• When a preferred customer spends a minimum of $500, he or she gets a 5 percent discount
• When a preferred customer spends a minimum of $1,000, his discount is 6 percent
• When a preferred customer spends a minimum of $1,500, his discount is 7 percent discount
• When a preferred customer spends at least $2,000, he or she gets a 10 percent discount
Include an additional instance method that returns the actual reduced discounted price. Override the ToString( ) method to return the customer name, his purchase amount (formatted as currency), discount percentage (if any),and the reduced purchase price (formatted as currency).
Define the 2nd class to test your preferred customer class. You may instantiate your objects with literal data sent as arguments to the constructors. You do not have to input the data. USE YOUR OWN NAME AS THE CUSTOMER NAME FOR ONE OF THE OBJECTS THAT YOU INSTANTIATE. Before instantiating an object of the class, check to make sure the purchase amount entered is a positive integer. If the value entered for the purchase amount is negative, display an error message indicating the input is in-valid. Modularize your solution.
Sample output might look like:
Customer: Barbara Doyle
Purchase Amt. $1,423.78
Discount Percent: 6%
Discounted Amt.: $1,338.36
Customer: Sarah Wang
Purchase Amt. $401.28
Discount Percent: 0%
Discounted Amt.: $401.28


Screenshot 1-15

Create an application that simulates rolling a pair of dice. When the user clicks a button, the application should generate two random numbers, each in the range of 1 through 6 inclusive, to represent the value of the dice. Use PictureBox controls to display the dice. Use the dice images provided in the module or find your own dice images to use.


Screenshot 1-5

In the English measurement system, 1 yard equals 3 feet and 1 foot equals 12 inches. Use this information to create an application that lets the user convert distances to and from inches, feet, and yards. The user should enter the distance to be converted into a TextBox. A ListBox should be used to allow the user to select the units being converted from, and another ListBox should be used to allow the user to select the units being converted to.Be sure to handle the situation where the user picks the same units from both list boxes. The converted value will be the same as the value entered.A sample application form can be found in the text on page 265.


Screenshot 1-10

A painting company has determined that for every 115 square feet of wall space, one gallon of paint and eight hours of labor will be required. The company charges $20.00 per hour for labor.

Write a program that asks the user to enter the square feet of wall space to be painted and the price of the paint per gallon. The program should display the following data:

The number of gallons of paint required
The hours of labor required
The cost of the paint
The labor charges
The total cost of the paint job

New Download