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

Write a C# program to allow a user to guess a number( from 1 to 6) that will be randomly generated by computer.
The user is asked to input his/her number. Then the number will be compared with the random number. See the example below:
Enter your number: 2 
You lost.




this is prac 3:

Task You need to implement a program for a car salesman who wants to keep record of the cars he has for sale. For each car he keeps the following: Registration Number (always unique), Model,Colour and Price Implement the following classes Class Car It must have a constructor, the necessary Get and Set methods, as well as the following methods:public boolean isCheap()// returns TRUE if the car is selling for under R10000.00 public void decreasePrice(double Amount)// decreases the selling price by Amount public void Display()// displays the Registration Number and Price of a car Class CarList It must contain the standard methods you would expect in a list class. The class must be able to interact with a data file (in other words, get initial data from a data file, and write the final data to a data file), and uses ArrayLists to implement a list Application Class The application class must have methods that do the following


This part continues with last one:

Now add the following functionality  Add a SortedState variable to your CarList class. SortedState = 1 if the list is sorted in ascending order of price, SortedState = 2 if the list in sorted in ascending order of Registration number and SortedState = 0 otherwise.  Add a BinarySearch method to your list class (based on the Registration number). Adapt the existing Find method (in the list class) to use the BinarySearch method when the list is sorted in ascending order of Registration number, otherwise the LinearSearch method should be used.  Use a sorting algorithm effectively in a new method in the application class that displays the details of the cheapest car.  Change the add method in CarList to keep the list sorted in ascending order on price even when a new car is added to the list


This task is based on your prac 3, where you needed to implement a program for a car salesman who wants to keep record of the cars he has for sale. For each car he keeps the following: Registration Number (always unique), Model, Colour and Price You can carry on with your own solution, and update it to do the following:  Cars should be classified as cheap if the selling price is < R50 000  Make use of the CarPracSkeletonCode file, to implement the methods in CarList related to sorting. Test whether your sorting is valid by calling the public sorting methods from the application class. Alternatively, you can start a new Console application, create the required classes and copy the partial code from the CarPrac SkeletonCode document to the relevant classes  Then implement the methods in Carlist related to sorting. Test whether your sorting is valid by calling the public sorting methods from the application class. 


Consider the following unsorted list of integers 8 3 1 12 5 9 a) Show the content of the array after each pass when using the Bubble Sort, to sort the list in ascending order. b) Show the content of the array after each pass when using the Selection Sort, to sort the list in descending order. c) Show the content of the array after each pass when using the Insertion Sort, to sort the list in ascending order. 


Write a C# program that enters 5 elements to an array. Display all the odd numbers and even numbers separately.


Write a C# program to detect key presses. If the user pressed number keys( from 0 to 9), the 

program will display the number that is pressed, otherwise the program will show "Not allowed". 


A library charges a fine for every book returned late. For first 5 days the fine is 50 Rs, for 6-10 days fine is 100 rupee and above 10 days fine is 150 rupees. If you return the book after 30 days your membership will be cancelled. Write a program C# to accept the number of days the member is late to return the book and display the fine or the appropriate message.


Create a menu to calculate the area and perimeter of different figures

Triangle, Oval, Trapezium, Hexagon, Circle, Pentagon, Cone, Decagon in windows form


Create a Midi Parent form



Create a class library project called 'BankLibrary' with the following classes:

* SBAccount class * SBTransaction class

- AccountNumber - TransactionId

- CustomerName - TransactionDate

- CustomerAddress - AccountNumber

- CurrentBalance - Amount

- TransactionType


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS