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

declare an array to store 10


Create a new application that performs a shift and replacement of the letters in a string and then prints the result. The Main method of the application is provided below. Your task is to define the Shift and Replace methods that are called from Main. static void Main(string[] args) { string sAlphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; Console.Write("Enter any word: "); string sInput = Console.ReadLine(); Console.Write("Enter n: "); int n = int.Parse(Console.ReadLine()); string sShift = Shift(sInput, n); Console.WriteLine("\n" + Replace(sShift, n, sAlphabet)); Console.Write("\nPress any key to exit."); Console.ReadKey(); } Shift accepts two parameters and returns a string in which all the characters of a string (first parameter) have been shifted n (second parameter) places to the right, with the last n letters looping back around to the beginning. For example, if the user enters ZUCCHINI for sInput and 3 for n, Shift must return INIZUCCH.


Given a M x N matrix, write a program to print the matrix after ordering all the elements of the matrix in increasing order.Input


The first line of input will contain two space-separated integers, denoting the M and N.

The next M following lines will contain N space-separated integers, denoting the elements of each list.Output


The output should be M lines containing the ordered matrix.

Note: There is a space at the end of each line.Explanation


For example, if the given M is 3 and N is 3, read the inputs in the next three lines if the numbers given in the next three lines are the following.

3 3
1 20 3
30 10 2
5 11 15


By ordering all the elements of the matrix in increasing order, the ordered matrix should be

1 2 3
5 10 11
15 20 30


2nd example


2 5

-50 20 3 25 -20

88 17 38 72 -10


result will be

-50 -20 -10 3 17 
20 25 38 72 88 

*** import numpy should not be used


Write a program that will accept an n integer from the user via the keyboard,

The dialog for this program should look as follows:

Enter number of integers to process: 3

Enter the integers: 7 20 17

Largest = 20

Smallest = 7

Median = 17

Do you want to try again? (y/n):


(156.52)8=(?)10

Each user has 100 credits, the user needs to input credits under 100 and the system needs to take the amount the user played and subtract that from the amount of credits the user had, then 3 numbers need to be randomly generated and the machine needs to check if the 3 numbers are the same. If it is the same the user wins double the credits than what they had and is added to the amount of credits they have. If yes to go again, if they won the credits must be added to start again but if they lost, credits must be lost.


For this assignment, you are required to create a 2d dynamic array that stores the

following information about multiple books:

 The book name

 Its release year

 The total number of ratings (total number of people that have rated the book)

 The number of people that have given the book a 1-star rating

 The number of people that have given the book a 2-star rating

 The number of people that have given the book a 3-star rating

You are to write the following functions:

 A function to create a 2D array according to user provided dimensions

 A function to calculate the average rating.

 Display function to display all the details of a selected book

 A function to write the 2d array to a file called “BookLibrary.txt”.


A typical company has many cars for transportation of their employees. You have to design and implement a system to show live location of all company cars along with driver names. For a company based in Lahore, make a fleet of 10 cars of different make and models (honda city model 2006 x1, model 2011 x3, model 2020 x2, corolla model 2015 x2, model 2020 x2, and 6 drivers (name them of your choice), assign each driver to one of the 10 cars and move those cars to multan, islamabad, karachi, mardan, landi kotal, and sahiwal. Then show the status of all 10 cars on the screen.


1.City 2006 - Landi Kotal (3.232323445,1.2357823633) - Maqsood Ahmad


2.…...


Classes detail.


CAR


.make


.model


.engine


.tyre[4]


.seats


.driver


.SetDriver(Driver)


.Move(Location)


ENGINE


.valves


.hoursepower


.fueltype


.type


TYRE


.diameter


.width


.height


.type


DRIVER


.first_name


.last_name


.employee_code


.age


.gender


.salary


.AssignCar(CAR)


Location


.longitude


.latitude


.LonLatToPlace() returns city


Write a program to create a class HEIGHT with feet and inches as members. Write member

functions to READ, find the maximum height (MAX), find the mimimum height (MIN) and

average height (AVG) for arrays of object.


Write a program to create a class HEIGHT with feet and inches as members. Write member

functions to READ, find the maximum height (MAX), find the mimimum height (MIN) and

average height (AVG) for arrays of object.


LATEST TUTORIALS
APPROVED BY CLIENTS