C# Answers

Questions answered by Experts: 1 362

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

1.The user shall be able to enter the following values: a.Gross monthly income (before deductions). b.monthly tax deducted. c.monthly expenditures in each of the following categories: i.Groceries ii.Water and lights iii.Travel costs (including petrol) iv.Cell phone and telephone v. Other expenses 2.The user shall be able to choose between renting accommodation or buying a property. 3.If the user selects to rent, the user shall be able to enter the monthly rental amount. 4.If the user selects to buy a property, the user shall be required to enter the following values for a home loan:a.Purchase price of property. b.Total deposit. c.Interest rate (percentage). d.Number of months to repay (between 240 and 360) 5.The software shall calculate the monthly home loan repayment for buying a property based on the values that the user entered.6.If the monthly home loan repayment is more than a third of the user’s gross monthly income, the software shall alert the user that approval of the home loan is unlikely.


Designing module for managing collection of product type data

This solution code should contain definition for product model along with it’s properties. The program should also provide impelementations of CRUD operations for the Product model

This exercise contains project for solution code for Product entity and Product Repository classes

  1. Product model class
  • This class should provide common properties for the Product model.
  • More on properties is provided in boilerplate code
  1. ProductRepository class
  • The primary responsibility of this class to manage CRUD operations for collection of Products
  • The boilerplate contains outline of methods for different CRUD operatoins required to be managed for products
  1. Product Storage
  • The repository class should declare field as a collection object for allowing only the Product items to be added to the collection
  • Choose the collection type basis the fact that product collection should not allow any other type of items.

Implementing File I/O for Product data

This program should define properties for Product model class. The program should also provide impelementations of CRUD operations for the Product model.

To achieve persistence, the data should be stored and read from file

This exercise contains project for solution code for Product entity, Product Repository and DataContext classes

  1. Product model class This class should provide common properties for the Product model.
  2. More on properties is provided in boilerplate code
  3. ProductRepository class The primary responsibility of this class to manage CRUD operations for collection of Products through DataContext object
  4. The boilerplate contains outline of methods for different CRUD operatoins required to be managed for products
  5. Product Storage
  6. The repository class should declare field as a DataContext object which contains the methods to read and write data of product list to file
  7. Product DataContext

Iterative Simple Interest Calculator


Write a C# program to calculate simple interest.

The program should take the inputs for simple interest and display the result.

The program should ask the user to input Y if he wants to continue, else N to stop

Every time user enters Y, the program should take the inputs and calculate interest


Menu Driven Temperature Converter


Write a C# program to design menu driven temperature converter console application.

The program should show following options for temperature conversion to user:

  1. Centigrade to Farenheit
  2. Farenheit to Centigrade

The program should then prompt user to enter the temperature value.

The given value should be converted to the required temperature unit, based on the choice inputted by user.


Designing class model for online shopping site app using OOAD


Case Study :: Online Shopping SiteHigher Level Requirements

  1. Identify the entities in the online shopping site system and model them based on OOAD (Object oriented approach and design)
  2. Identify the relationship among entities based on is-a and has-a relationship
  3. Identify the members for each of the entities with their scope
  4. Create class outline for each different class in a separate .cs file
  5. The class outline should provide the below information to the reader
  • Class body
  • Attributes declaration statements
  • Properties declaration statements
  • Methods with appropriate signatures and empty body
  1. Use OOPs features with proper justification
  2. Ensure C# code and naming conventions are strictly followed
  3. It is not expected to create a working application
  4. Provide useful comments
  5. Ensure the design implements single responsibility principle, ensuring a class handles a single responsibility

Write a program to define a two dimensional array of numbers to store 5 rows and 6 columns. 

Write a code to accept the data, assign it in array, and print the data entered by the user. 


1. Create an application named Numbers whose main() method holds two integer variables. Assign

values to the variables. Pass both variables to methods named sum () and difference(). Create the

methods sum() and difference(); they compute the sum of and difference between the values of two

arguments, respectively. Each method should perform the appropriate computation and display the

results. Save the application as Numbers.cs


Write a program that does the following for 15



students:



 Reads in 3 marks for each student (you



need to ensure that only valid marks



between 0 and 100 are processed) – your



prompt message to the user should



indicate which number is being requested



(see example image of output)



 Calculates and displays the highest mark



for each student.



Finds and displays the highest mark in the class.



(Note: The example output only shows data for 5



students, but your program must work for 15



students).

Write a program which requests a number between



1 and 50 from the user. It must repeatedly ask the



user for a number until a valid number is entered.



After receiving a valid number, the program must



display all the even numbers smaller than that number. (If the user enters 11, the numbers 2, 4, 6,



8, 10 must be displayed).

LATEST TUTORIALS
APPROVED BY CLIENTS