Find Jobs
Hire Freelancers

Introduction to C#

$30-250 USD

Terminado
Publicado hace alrededor de 12 años

$30-250 USD

Pagado a la entrega
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
ID del proyecto: 1435583

Información sobre el proyecto

1 propuesta
Proyecto remoto
Activo hace 12 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
ready to do the project .please see pm
$30 USD en 1 día
5,0 (2 comentarios)
1,8
1,8

Sobre este cliente

Bandera de UNITED STATES
Philadelphia, United States
5,0
11
Forma de pago verificada
Miembro desde feb 8, 2012

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.