Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Problem 1.

Create a console app-

Given the array

int[] anArray = {1,2,3,4,5,6,7,8,9}
Create a multicast delegate. This delegate will be used to call the following methods

Public static void EvenNumbers (int[] someNumbers)

Public static void OddNumbers (int[] someNumbers)

Public static void SumNumbers (int[] someNumbers)

EvenNumbers extracts the even numbers from the list and displays them, with the appropriate text

OddNumbers extracts the odd numbers from the list and displays them, with the appropriate text

SumNumbers adds together all numbers from the list and displays their total, with the appropriate text

Attach all three methods to the delegate so that all three methods are called when making the single delegate call. Call the

delegate. Now remove the SumNumbers method and call the delegate again.

Problem 2.

Create a console app named MyClasses. Create a class named SemesterClasses. Create a constructor that accepts three parameters;

semesterName=string;

courseTitle=string;

courseCredits=int;

additional parameters, not contained in the constructor, should be declared and initialized as follows;

double finalGrade=0.0;

bool graduateSemester = false;

Create get/set accessors for each of these parameters with private variables accessed through public accessors. Next, override the ToString method in the class to return all parameters with the appropriate text.

Now instantiate three objects from the class, by calling the constructor and use the following data;

#1 semesterName= Spring2015

#1 courseTitle= Programming 1

#1 courseCredits=3

#2 semesterName= Fall2015

#2 courseTitle= Programming 2

#3 courseCredits=4

#1 semesterName= Spring2016

#1 courseTitle= Excel

#1 courseCredits=3

After creating the objects, use the object's ToString to display each objects information. Now set a value for the finalGrade in each object, and set graduateSemester in the third object to true. Again using the objects Tostring to display each objects information

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91694534
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Computer Engineering

A mail order supplier advertises same-day service on every

A mail order supplier advertises same-day service on every order. Recently, the movement of orders has not gone as planned. The director of customer service has completely redone the method of order handling. The goal of ...

Use state-transition testing to solve the following testing

Use state-transition testing to solve the following testing problem. In a course registration system, students can register for a given course when the course is in the open state. At the end of the registration period, ...

The richter scale is often used to measure the strength and

The Richter scale is often used to measure the strength and potential damage caused by an earthquake. Design and write an algorithm which accepts as input a Richter scale reading and then prints a message indicating the ...

How does understanding various microsoft office

How does understanding various Microsoft Office applications enhance productivity in education, the workplace, and at home?

Question a topic related to database securityyou must pick

Question: A topic related to Database Security. You must pick one topic after reading at least 5 articles. You must provide a list of those articles you read and you must annotate each one. That is, you must write at lea ...

Help me define corporate social responsibilityhelp me

Help me define corporate social responsibility. Help me conduct research on a Fortune 500 company and how do you determine just how (or if) the company ranks from a CSR perspective. Help me understand if the findings cha ...

Why is it important to back up the dhcp database and

Why is it important to back up the DHCP database and Identify key files that make up the DHCP database?

Write a python 3 program please show all outputlambda and

Write a Python 3 Program please show all output. lambda and keyword Magic Goals A bit of lambda functions as objects keyword evaluation Task Write a function that returns a list of n functions, such that each one, when c ...

Please help me find out how to calculate stock pricewhat is

Please help me find out how to calculate stock price. "What is the price of Company A's stock.We know company A pay dividend twice a year. And its beta=1.5 Government bond's Coupon is 8.8 and Yield is 5%(which one you sh ...

What are content management systems cms describe the

What are Content Management Systems (CMS). Describe the challenges in implementing and maintaining CMS. Can internet search engines be considered as Content Management Systems - explain your answer.

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As