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

You are going to the Rogers Centre to watch a baseball game. The aroma from

a hot dog cart catches your attention. Hot dogs are $2.50 each. Write a program

that asks you how much change you have in your pocket. If you have enough to

buy a hot output “Grab a hot dog.” In either case, output “Enjoy the game!” Test

your program using the values $2.00 and $3.00.


Write a program that recommends whether you should bring an umbrella to school. Your program should ask the user to enter the probability for rain in today’s weather forecast. If the probability is greater than 30% then output “Bring your umbrella today”. Otherwise, output “Leave your umbrella at home today”. Test your program using the values 50 and 20. 


You have been tasked to create a new thread that will print the multiplication table of 10 and the Main

Thread will print the table of 15, they should be communication between these two threads, in such a

way that table of 10, is printed before multiplication table of 15, to maintain an ascending order.

This path follow the last posted once:

Application Class The application class must have methods that do the following  Adds a new car  Sells a car  Decreases the price of a specific car by a percentage provided by the user  Displays the registration numbers and prices of all the cars that are not cheap.


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


Explain what is meant by a Programming Paradigm and the main characteristics of Procedural, Object oriented and Event-driven paradigms and the relationships among them. Write small snippets of code as example for the above three programming paradigms using a suitable programming language(s). you also need to critically evaluate the code samples that you have given above in relation to their structure and the unique characteristics.


 // Compute the amount in the Piggy Bank

    amtInPiggyBank = numPens * 0.01 + numNicks * 0.05 + numDimes * 0.1 + numQuarts * 0.25 + numLoons * 1 + numTwoons * 2;


    // Print out the amount in the Piggy Bank

    //*** Fix the following statement so it prints a $ and two digits

    //*** after the decimal point

    Console.WriteLine("{0} has {1} in the Piggy Bank", name, amtInPiggyBank);

    Console.ReadLine();


Using visual studio (C#) create a program, name it PRGYOURNAMEFA1, that implements a search and replace function recursively. Your program should allow a user to enter a string , a substring to be replaced in the entered string and a character/s to replace the found substring 

Program Structure

1. A main class that implements the logic of the program – name this class TestSearchReplace

2. Add a class named SearchReplace to the main class with two methods, including:

a. SearchSubstring()- return method

b. ReplaceSubString() - void method

The two method should be called using an object in the main class. DONT CREATE THE TWO METHODS IN THE MAIN CLASS

Implement C# OOP’s encapsulation, inheritance, and polymorphism using Console Application. Do not implement file handling. Mini-Inventory Management System


Write an application for a furniture company; the program determines the price of a table. Ask

the user to choose one for pine, 2 for oak, or three for mahogany. The output is the name of the

wood chosen as well as the price of the table. Pine tables cost $100, oak tables cost $225, and

mahogany tables cost $310. If the user enters an invalid wood code, set the price to zero. Save

the file as Furniture.cs


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS