
Design an application that converts miles to feet. Declare and initialize miles to 4.5. Show your miles formatted with two positions to the right of the decimal.
Feet and inches should both be shown with no positions to the right of the decimal. Once you get that portion running, modify your solution so that you also show the total number of inches. Go into your source code and change the initialization value for miles. Rerun the application.
Write an application that includes two additional methods in addition to the Main() method. One method should return a string consisting of four or five lines of information about your school. The other method should return a string consisting of asterisks. First call the method that returns the string of asterisks. Call the method that returns the asterisk a second time after you invoke the method that displays the information about your school. Items you might include are the name of your school, number of students enrolled,
and school colors. Include appropriate labels. The display should be aesthetically pleasing so include enough asterisks to surround your listing.
Design a message display application. Allow users to enter their name and favorite saying in a single method that gets invoked two times. First call the method asking for the person’s name. Send a string argument indicating what value should be entered. Invoke the method a second time to retrieve the favorite saying.
Return the string values back to the Main( ) method. Call another method, sending the name and saying. From that method, display the message showing the person’s name and their saying surrounded by rows of greater than/less than symbols.
Create a class representing a student. Include characteristics such as student number, first and last name, overall GPA, classification, and major. Write at least two constructors. Include properties for each of the data items. Create a second class that instantiates the first class with information about yourself. In the second class, create a class method that displays your name and GPA.
Using C# conditional statements, write an application that will enable you to display an aquarium’s pH level. The pH is a measure of the aquarium water’s alkalinity and is typically given on a 0-14 scale. For most freshwater fish tanks, 7 is neutral. Tanks with a pH lower than 7 are considered acidic. Tanks with a pH higher than 7 are alkaline. Allow the user to input the pH level number. Display a message indicating the health (i.e. acidic, neutral, or alkaline) of the aquarium.
Create a Month class that has a single data member of month number. Include a member method that returns the name of the month and another method that returns the number of days in the month. The ToString( ) method should return the name and number of days. Write a second class to test your Month class. The second class should allow the user to input a month number. Display the name of the month associated with the number entered and the number of days in that month. For this exercise, use 28 for February. If the user inputs an invalid entry, display an appropriate message
Use C# loops to write a program that generates 1000 random numbers between 0 and 100000. Display the number of odd values generated as well as the smallest and the largest of values. Output should be displayed in a Windows message box.
Create an application that contains a loop to be used for input validation. Valid entries are positive integers less than 100. Test your program with values both less than and greater than the acceptable range as well as non-numeric data. When the user is finished inputting data, display the number of valid and invalid entries entered.
Write a program that produces a multiplication table with 25 rows of computations. Allow the user to input the first and last base values for the multiplication table. Display a column in the table beginning with the first base inputted value. The last column should be the ending base value entered.
The first row should be for 1 times the beginning base, 1 times the (beginning base value + 1), through 1 times the ending base value. The last row should be for 25 times the beginning base, 25 times the (beginning base value + 1), through 25 times the ending base value. Base values can range from 2 through 8. Display an error message if an invalid base is entered. Display an aesthetically formatted multiplication table.
Write a program using C# arrays that reads data into an array of type int. Valid values are from 0 to 10. Your program should display how many valid values were inputted as well as the number of invalid entries. Output a list of distinct valid entries and a count of how many times that entry occurred.
Use the following test data:
1 7 2 4 2 3 8 4 6 4 4 7
The Ion Realty Sales Corporation would like to have a listing of their sales over the past few months. Write a program that accepts any number of monthly sales amounts. Display the total of the values. Display a report showing each original value entered and the percentage that value contributes to the total. You may prompt the user for the number of values to be inputted.
Write a program that uses array and that allows any number of values between 0 and 10 to be entered. When the user stops entering values, display a frequency distribution bar chart. Use asterisks to show the number of times each value was entered. If a given number is not entered, no asterisks should appear on that line. Your application should display error messages if a value outside the acceptable range is entered or if a non-numeric character is entered.
Write a program that uses array and that allows any number of values between 0 and 10 to be entered. When the user stops entering values, display a frequency distribution bar chart. Use asterisks to show the number of times each value was entered. If a given number is not entered, no asterisks should appear on that line. Your application should display error messages if a value outside the acceptable range is entered or if a non-numeric character is entered.
N will be input by user. And there will be two arrays with N size, one is for positive numbers and the other one is for negative numbers.
And all numbers in both arrays will be 0 as default. And N numbers will be guessed by your program (you can use Random()).
Those guessing numbers will be between -100 and 100. If one number guessed and if this number is positive,
it will be stored to positive number array and if this number is negative, it will be stored to negative number array.
If the guessed number is zero then it will guess again.
After N numbers are guessed your program will find position sum of numbers. Position sum of numbers are calculated
by adding two number in the same position of two arrays.
Output will be to show the positive and negative arrays and position number array.
EXAMPLE:
Input:
N=5
Let us say Random numbers example: -2,3, 5, -5,-2
Output
Positive numbers(5 of them): 3, 5, 0, 0, 0
Negative numbers (5 of them): -2, -5, -2, 0, 0
Position sum of numbers: 1,0,-2
N will be input by user. And there will be two arrays with N size, one is for positive numbers and the other one is for negative numbers.
And all numbers in both arrays will be 0 as default. And N numbers will be guessed by your program (you can use Random()).
Those guessing numbers will be between -100 and 100. If one number guessed and if this number is positive,
it will be stored to positive number array and if this number is negative, it will be stored to negative number array.
If the guessed number is zero then it will guess again.
After N numbers are guessed your program will find position sum of numbers. Position sum of numbers are calculated
by adding two number in the same position of two arrays.
Output will be to show the positive and negative arrays and position number array.
EXAMPLE:
Input:
N=5
Let us say Random numbers example: -2,3, 5, -5,-2
Output
Positive numbers(5 of them): 3, 5, 0, 0, 0
Negative numbers (5 of them): -2, -5, -2, 0, 0
Position sum of numbers: 1,0,-2
Write an application that is using C# 1-Dimnensional and C# 2-Dimensional Arrays and which creates and returns a one-dimensional array containing all the elements in the two-dimensional array. Store the values in a row major format. For testing purposes, you may do a compile-time initialization of a 12 x 5 two-dimensional array. Display both the two-dimensional and the one dimensional array. Be sure the values in the array are number aligned.
Each seven-letter word corresponds to exactly one seven-digit telephone number. The restaurant wishing to increase its take-home business could surely do so with the number 825-3688 (i.e., “TAKEOUT”).
Each seven-digit phone number corresponds to many separate seven-letter words. Unfortunately, most of these represent unrecognizable juxtapositions of letters. It’s possible, however, that the owner of a barber shop would be pleased to know that the shop’s telephone number, 424-7288, corresponds to “HAIRCUT.” The owner of a liquor store would, no doubt, be delighted to find that the store’s telephone number, 233-7226, corresponds to “BEERCAN.” A veterinarian with the phone number 738-2273 would be pleased to know that the number corresponds to the letters “PETCARE.”
Write a C# program that, given a seven-digit number, writes to a file every possible seven-letter word corresponding to that number. Avoid phone numbers with the digits 0 and 1.
Each seven-letter word corresponds to exactly one seven-digit telephone number. The restaurant wishing to increase its take-home business could surely do so with the number 825-3688 (i.e., “TAKEOUT”).
Each seven-digit phone number corresponds to many separate seven-letter words. Unfortunately, most of these represent unrecognizable juxtapositions of letters. It’s possible, however, that the owner of a barber shop would be pleased to know that the shop’s telephone number, 424-7288, corresponds to “HAIRCUT.” The owner of a liquor store would, no doubt, be delighted to find that the store’s telephone number, 233-7226, corresponds to “BEERCAN.” A veterinarian with the phone number 738-2273 would be pleased to know that the number corresponds to the letters “PETCARE.” Write a C# program that, given a seven-digit number, writes to a file every possible seven-letter word corresponding to that number. Avoid phone numbers with the digits 0 and 1.
Each seven-letter word corresponds to exactly one seven-digit telephone number. The restaurant wishing to increase its take-home business could surely do so with the number 825-3688 (i.e., “TAKEOUT”).
Each seven-digit phone number corresponds to many separate seven-letter words. Unfortunately, most of these represent unrecognizable juxtapositions of letters. It’s possible, however, that the owner of a barber shop would be pleased to know that the shop’s telephone number, 424-7288, corresponds to “HAIRCUT.” The owner of a liquor store would, no doubt, be delighted to find that the store’s telephone number, 233-7226, corresponds to “BEERCAN.” A veterinarian with the phone number 738-2273 would be pleased to know that the number corresponds to the letters “PETCARE.” Write a C# program that, given a seven-digit number, writes to a file every possible seven-letter word corresponding to that number. Avoid phone numbers with the digits 0 and 1.
Instructions:
Print a 2-Dimensional Chessboard
Continually ask the user for coordinates
Always overwrite the destination with the target
Always replace the target with an empty string
End the program if any of the coordinates are out of range
Technical Requirements
The board must actually be a 2-Dimensional Array of strings.
The board you display must be a true representation of the 2D Array.
Instructions:
Print a 2-Dimensional Chessboard Continually ask the user for coordinates Always overwrite the destination with the target Always replace the target with an empty string End the program if any of the coordinates are out of range Technical Requirements The board must actually be a 2-Dimensional Array of strings. The board you display must be a true representation of the 2D Array.
Instructions:
Print a 2-Dimensional Chessboard Continually ask the user for coordinates Always overwrite the destination with the target Always replace the target with an empty string End the program if any of the coordinates are out of range Technical Requirements The board must actually be a 2-Dimensional Array of strings. The board you display must be a true representation of the 2D Array.
Instructions:
Print a 2-Dimensional Chessboard Continually ask the user for coordinates Always overwrite the destination with the target Always replace the target with an empty string End the program if any of the coordinates are out of range Technical Requirements The board must actually be a 2-Dimensional Array of strings. The board you display must be a true representation of the 2D Array.
Instructions:
Print a 2-Dimensional Chessboard Continually ask the user for coordinates Always overwrite the destination with the target Always replace the target with an empty string End the program if any of the coordinates are out of range Technical Requirements The board must actually be a 2-Dimensional Array of strings. The board you display must be a true representation of the 2D Array.
Instructions:
Print a 2-Dimensional Chessboard Continually ask the user for coordinates Always overwrite the destination with the target Always replace the target with an empty string End the program if any of the coordinates are out of range Technical Requirements The board must actually be a 2-Dimensional Array of strings. The board you display must be a true representation of the 2D Array.
Instructions:
Print a 2-Dimensional Chessboard Continually ask the user for coordinates Always overwrite the destination with the target Always replace the target with an empty string End the program if any of the coordinates are out of range Technical Requirements The board must actually be a 2-Dimensional Array of strings. The board you display must be a true representation of the 2D Array.
Instructions:
Print a 2-Dimensional Chessboard Continually ask the user for coordinates Always overwrite the destination with the target Always replace the target with an empty string End the program if any of the coordinates are out of range Technical Requirements The board must actually be a 2-Dimensional Array of strings. The board you display must be a true representation of the 2D Array.
C# is an excellent programming language. It’s the main language in the .Net family of languages, and as such, it allows you to program some truly amazing solutions. So, congratulations on choosing to learn this amazing language. :-)
As it is common among beginner programmers, the enthusiasm to learn often is not enough to make the leap from beginner to intermediate.
The bad news is: code fear is real, and it hinders, or even stops your progress. The good news is: you can learn to eliminate it! And all it takes is a little practice and determination. And that’s where this course will help you greatly!
The course goes over variety of C# programming exercises and projects. I show you how to put the theory you learned into practice by showing you how to solve each exercise and walking you through all the Why’s and How’s.
You and I will go on a journey to program simple solutions using basic programming techniques, all the way to more complex ones, such as multi-dimensional arrays, structure of arrays, and OOP solutions.
In the process, you will learn a lot about C# language. You will learn how to translate the project requirements into a working code. You will learn to use many different programming concepts, such as Conditional Statements, Loops, Arrays, Multi-dimensional arrays, OOP… and pick the right one for your solution. But above all, you will learn to think like a programmer!
This course is all about practice. Therefore, to benefit from this course, you need to be an active student. It doesn't matter if you are self-taught or attend a programming course. What matters is the time and effort you are willing to put into learning and practicing your skills.
There are no lectures in this course. However, I do my best to explain what I am trying to accomplish with each line of code, and touch on common pitfalls, too.
This is a course for beginner C# .net programmers who need to put the concepts and theory they learned into practice and for people who prefer to learn by doing.
If that's you, then let's start coding!