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

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- Consider the following set of processes, with the length of the CPU-burst time given in

milliseconds:


Process burst Time Priority

P1 10 3

P2 1 1

P3 2 3

P4 1 4

P5 5 2


a. Draw a Gantt chart to show how these processes would be scheduled.

b. Give the turnaround time (total time from first arrival into ready state until CPU-burst

is completed) of each process.

c. Give the waiting time (total time spent in the Ready state) of each process.

d. Give the average waiting time of all the processes.

e. Create Program for SJF for above data.


2- Suppose the following three processes arrive for execution at the arrival times

indicated.


Process Arrival Time Burst Time

P1 0.0 8

P2 0.4 4

P3 1.0 1


a. Develop code for SJF scheduling using above given data.


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".

Write 3 paragraphs where you explain the below


Concept.


Using Logging and Tracing  [20]

Using Application Profiling [20]

Using Performance Counters [20]


Each paragraph should at least have 250 words. Reference your work using Harvard style.


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

Write a program that declares a simple structure, declare at least two



variables with different data types and a static method in c#

“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.

Create a program to Delete and copy a file in C#.


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS