Questions: 1 835

Answers by our Experts: 1 539

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

a) Write a method GetOneStudent that asks a student for both of his/her WRAV101 and

WRSC111 marks (each as a real number). The method must return both of these marks. The

method must ensure that each of the marks is in the range 0 to 100.

b) Write a method CanContinue that takes as input two marks, one for WRAV101 and one for

WRSC111. Each of these marks is in the range 0 to 100. The method must return the value

true if both of these marks are at least 50, otherwise the method must return the value false.

c) Write a method DisplayDecision that takes as input two marks, one for WRAV101 and one

for WRSC111. Each of these marks is in the range 0 to 100. If the student can continue with

the second semester modules (use CanContinue above), an appropriate message and the

average mark for the two modules is displayed, otherwise the student is informed that he may


Write a two class application that has as a data member an array that can store state



area codes. The class should have a member method that enables users to test an



area code to determine if the number is one of the area codes in the state exchange.



The member method should use one of the predefined methods of the Array



class and return true if the argument to the method is one of the state codes.



Override the ToString( ) method to return the full list of area codes with each



surrounded by parentheses. To test the class, store a list of state codes in a onedimensional array. Send that array as an argument to the class. Your application



should work with both an ordered list of area codes or an unordered list

Create three arrays of type double. Do a compile-time initialization and place




different values in two of the arrays. Write a program to store the product of the




two arrays in the third array. Produce a display using the MessageBox class




that shows the contents of all three arrays using a single line for an element from




all three arrays. For an added challenge, design your solution so that the two




original arrays have a different number of elements. Use 1 as the multiplier when




you produce the third array.

Write a program that requests the user for a year (you can assume the year will always be at


least 2000), the population of Brazil in that year (in terms of millions of people) and the annual


population growth rate (always as a real number in the range 0 – 1), and then uses the two


methods written above to determine and display the year in which Brazil’s population first


exceeded/exceeds 180 million people. The program must also display Brazil’s total population


in this year.



a) Write a method PopulationTotal that accepts 2 positive values, namely the current

population (in millions, e.g. a value of 1.5 means 1.5 million people) and the growth rate (e.g.

0.14 means 14%). The method determines and returns the total population based on the current

population and growth rate. For example, if the current population for a country is 1.165 million

people, and the annual population growth rate is 10%, then the total population is 1.2815 million

people after 1 year.

b) Write a method Over180Million that accepts a positive value representing the population (in

millions). The method determines whether the population is over 180 million people, and returns

a value of true if this is so, otherwise returns a value of false.





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.







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







Non-functional requirements:







1. You are required to use internationally acceptable coding standards. Include comprehensive comments explaining variable names, methods, and the logic ofprogramming code.






2. You are required to use classes and inheritance.






3. You must use a generic collection to store the expenses and no longer an array.






4. You must use a delegate to notify the user when expenses exceed 75% of their income.

a) Write a method PopulationTotal that accepts 2 positive values, namely the current










c) Write a method DisplayDecision that takes as input two marks, one for WRAV101 and one

for WRSC111. Each of these marks is in the range 0 to 100. If the student can continue with

the second semester modules (use CanContinue above), an appropriate message and the

average mark for the two modules is displayed, otherwise the student is informed that he may

not continue.

d) Now, write the main program that continuously does the following for any number of students

until the lecturer requests to terminate the process:

 Ask for the WRAV101 and WRSC111 marks and display a message to indicate whether

the student can continue with second semester modules or not.


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


a two dimensional array with two rows and 3 culumn


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS