1 Write a program to demonstrate static variables, methods, and blocks.
2 Write a program in C# Sharp to create a user define function.
3 Write a program in C# Sharp to create a user define function with parameters.
4 Write a program in C# Sharp to create a function to display the n number Fibonacci
sequence.
5 Write a program in C# Sharp to create a function to calculate the sum of the
individual digits of a given number.
Enter a number: 1234
Expected Output:
The sum of the digits of the number 1234 is: 10
6 Write a program to calculate the roots of Quadratic equations using encapsulation.
7 Write a program for calculating Matrix Operations.
1. Addition.
2. Multiplication.
Write a C# console app that will input a text file of numbers. For these numbers, find the number of numbers (one per line), the largest of these numbers, the smallest of these number, and the average of these numbers.
Also determine the number of numbers in the range 00000 - 09999, 10000 - 199999, 20000 - 29999, etc. all the way through 90000 - 99999.
Create a program that asks the user to input 5 numbers. The numbers should be stored in a list, after which, your program should determine the lowest number on the list using a loop then it will display the lowest number. Comment your code below. Sample Output: Enter 5 numbers: 6 3 2 1 4 Lowest Number is 1
.Write a class called LoanProcess with Loan_ No, Customer Name, LoanAmount, EMI_ Amount, Account_Balance as its members. Create a method calculate_EMI() for the LoanAmount, with the rate of interest as 13% for a total of 3 years and store it in the EMI_ Amount. The rest of the information to be passed through constructors. Write another function CheckBalance() which checks if the Account Balance is less than the EMI_AMount. If yes then throw a custom exception. Display "Not Sufficient Balance to repay Loan" in the finally. Give explanatory comments.
Techworld is a technology training center, providing training to their clients on various technologies.They need to automate the process of allocating instructiors for different courses.An instructor is identified by his/her name and may be skilled in multiple technologies .Assume that the skills of an instructor are stored in an array.
Write a program to calculate the bonus of the employee given the basic salary of the employee.
The bonus will be calculated based on the below category.
if Basic Salary-15000 and less than 20001 calculate bonus as 17% of basic+1500 if Basic Salary>10000 and less than 15001 calculate bonus as 15% of basic+1200 If Basic Salary<10001 calculate bonus as 12% of basic+1000 for rest calculate bonus as 8% of basic+500
Business rule:
1) If the salary given is a negative number, then print -1
2) if the salary given is more than 1000000, then print -2.
3) All the test cases has the calculated bonus as integer value only.
Create a class named UserProgramCode that has the following static method public static int calculateBonus(int input1) Create a class named Program that accepts the inputs and calls the static method present in the UserProgramCode.
1. Write a c# program contains “Car” as abstract class and an instance variable reg no, one concrete method openTank (), two abstract methods steering (int direction, int angle), braking (int force) and its implementation sub classes Tata, Mahindra which overlies above methods. Implement the above scenario and use all access specifiers
write a program that enters an 8-digit string for a birthdate. The first two digits in the string are the month of birth, the next two are the day and the remaining four are the year in
The software shall calculate the monthly home loan repayment for buying a property
based on the values that the user entered. (See
https://www.sivavula.com/read/maths/grade-10/finance-and-growth/09-finance-and
growth-03 for more information on how to calculate this).
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.
7.
The software shall calculate the available monthly money after all the specified deductions
I have been made.
8.
The software shall not persist the user data between runs. The data shall only be stored in
memory while the software is running.
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 the property
b. Total deposit
c. Interest rate (percentage)
d. Number of months to repay (between 240 and 360)