Find Jobs
Hire Freelancers

Introduction to C#

$30-250 USD

Completed
Posted over 12 years ago

$30-250 USD

Paid on delivery
All programs have to be done in console application. Program 1, 2 and 3 are due on 2/11/12 Program 4, 5, and 6 are due on 2/18/12 Program 7, 8, and 9 are due on 2/25/12 Program 10 and 11 are due on 3/3/12 Program 1 You must create a simple math calculator. This calculator will start with the total of zero and allow the user to perform as many addition, subtraction, multiplication, and division operations as they desire. All operations will be applied to the total. So, for example, if the total is zero and the operations is addition, then a user specified amount will be added to total. For this project you must: Create and use a method that allows the user to enter an operator: +, -, *, or /. This method will return a char representing the operator that the user entered. Use the following function header: char GetOperator(); Create and use a method that allows the user to enter an amount (like 12.34). This method will return the amount that the user entered as a float. Use the following function header: float GetValue(); Use [login to view URL]() to get input from the user. Get the operator from the user Get the value from the user Calculate the new total from the user inputs Use [login to view URL]() to display prompts and results for the user. Prompt for user to operators and values Display an updated total after each operation. Program 2 You must write a C# program that acts as a math tutor for simple division problems. Your program will generate simple division math problems (where the dividend, divisor, and quotient are all integers – i.e. for [a / b = c], a, b, c will all be whole numbers) – the numbers will be selected “randomly”. The program allows the user to enter answers for each problem until they get the answer correct - the program will indicate to the user whether or not their answer is correct. When the user gets the correct answer, they will be asked if they want to quit or answer another problem. When the user says that they do not want to be given any more problems, the program will display the total number of correct answers, and the total number of incorrect answers that the user gave – then the program will end. For this project you must: Create and use a method that takes two integers as arguments (a minimum value and a maximum value) and returns a random integer value between the minimum and the maximum (inclusive). Create and use a method that takes two integer arguments (a dividend and a divisor) and displays a division math problem for the user with the given dividend and divisor. Create and use a method that prompts the user for their answer to a division problem and returns the user’s answer. Create and use a method that poses a new division math problem to the user. This method must use the method that gets a random integer to get two random integers be used to create the division problem. This method will then call the method that displays a division math problem to display the newly created math problem for the user. This method will then call the method that get the user’s answer. This method will then test to see if the user’s answer is correct. If the user’s answer is not correct then the program the problem will be redisplayed and the user will be prompted for another answer. If the user’s answer is correct will tell the user that their answer is correct, and then this function will exit. Create and use a class scoped global variable to store the number of correct answers and another class scoped global variable to store the number of incorrect answers. Program 3 You must write a C# program that allows the user to input 10 integers. These 10 integers will be stored in an array. The program will then calculate and display the minimum number and maximum number in the array, as well as the sum, and the average of all the numbers in the array. For this project you must: Create an int array variable in your main method. Create and use a method that prompts the user to enter an integer and that re
Project ID: 1435583

About the project

1 proposal
Remote project
Active 12 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
ready to do the project .please see pm
$30 USD in 1 day
5.0 (2 reviews)
1.8
1.8

About the client

Flag of UNITED STATES
Philadelphia, United States
5.0
11
Payment method verified
Member since Feb 8, 2012

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.