Questions: 1 362

Answers by our 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 & Filtering

The user should enter the following values: Gross monthly income (before deductions) Estimated monthly tax deducted,Estimated monthly expenditures in each of the following categories,Groceries,Water and lights Travel costs (including petrol),Cell phone and telephone,Other expenses. 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 % 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 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. NB:MAKE USE OF GENERIC CLASSES


You will continue working on the application created in Part 1. Implement the feedback provided by your lecturer on Part 1 before continuing with Part 2. Marks will be awarded for this (10%).



The application must still perform all the functions from Part 1, with the following features added: 1.



The user shall be able to choose whether to buy a vehicle.



2.



If the user selects to buy a vehicle, the user shall be required to enter the following values



for vehicle financing:



a. Model and make. b. Purchase price.



c. Total deposit.



d. Interest rate (percentage).



e. Estimated insurance premium.



3.



The software shall calculate the total monthly cost of buying the car (insurance plus loan



repayment). Assume that all cars will be repaid over a period of five years.



4. The software shall notify the user when the total expenses exceed 75% of their income,



including loan repayments.



Display the expenses to the user in descending order by value.

Make a class named Fruit with a data member to calculate the number of fruits in a basket. Create twoother class named Apples and Mangoes to calculate the number of apples and mangoes in the basket.Print the number of fruits of each type and the total number of fruits in the basket. c#


When should you use a structure?Why?

“Our state of the art algorithm allows you to simply input the width and height of your skyscraper, and using a specially trained machine learning model, it would automatically generate a “star” (*) image of the entire structure. Specifically, the foundation of the building would always be width + 2 stars wide, while the top of the tower contains 1 star if the width is an odd number, or 2 stars if the width is an even number. Are you ready to see how it works?”



Apart from the base and the top level of the tower, every level starts and ends with a white space(" ").




The first line will contain a message prompt to width of the skyscraper.




The second line will contain a message prompt to height of the skyscraper.





The succeeding lines will contain the skyscraper pattern.



For example:





Output:





Enter·width·of·skyscraper:·5




Enter·height·of·skyscraper:·10




*




*****




*****




*****




*****




*****




*****




*****




*****




*******

The first line will contain a message prompt to input the number of rows.


The second line will contain a message prompt to input the number of columns.


The succeeding lines will prompt to input the elements of the matrix.


The last line contains the matrix elements from a spiral form to a straight line.

Write a user defined method named getMark that can be used to get a valid mark from the user.


Your method must continuously ask the user for a mark, until a valid mark is entered (valid marks


are between 0 and 100). If a user enters an invalid mark, display an error message before asking


for a valid mark to be entered. The method must return the valid value to the calling program.


Write a user defined method named isPass that can be used to determine whether a mark is a


pass mark (greater or equal to 50). The method must take as input a mark, and return a boolean,


indicating whether the mark was a pass mark.


Write a program that reads in 5 marks by using the getMark method to ensure that valid marks are


processed. You need to calculate the sum and the average of the marks. Your program must also


use the isPass method to determine the number of pass marks entered. When the 5 marks have


been processed you need to display the sum, average and number of passes (from these marks).

1. A one-dimensional array that contains six (6) names of your classmates. Then, print the names using a foreach loop.



2. A two-dimensional array with two (2) rows and three (3) columns. Then, initialize the array with the first six (6) letters of the alphabet as its elements.



3. A string with any message. Then, determine if the message contains the string, "hello".

Suppose you’re developing an application which stores a user’s browser history. Explain which collection class will help to retrieve information of the last visited page?

Write a program to declare a structure and inside it is a non-static


method that returns the area of a rectangle.


Test Data and Sample Output:


Input the dimensions of a rectangle:


Length: 60


Width: 30


Expected Output:


Length: 60


Width: 30


Area: 1800

LATEST TUTORIALS
APPROVED BY CLIENTS