Programming & Computer Science Answers

C++ 9913
Python 5288
Java | JSP | JSF 3611
C 1680
C# 1362
Computer Networks 989
Algorithms 652
Databases | SQL | Oracle | MS Access 641
HTML/JavaScript Web Application 588
Other 537
Visual Basic 358
Assembler 209
Software Engineering 202
AJAX | JavaScript | HTML | PHP 166
MatLAB 150
MatLAB | Mathematica | MathCAD | Maple 124
Action Script | Flash | Flex | ColdFusion 112
UNIX/Linux Programming 89
Web Development 73
Excel 36
ASP | ASP.NET 23
Delphi | Pascal 21
Perl 16
Prolog 9
Functional Programming 9
MathCAD 5
Wolfram Mathematica 4
WPF 4
Ruby | Ruby on Rails 3
NodeJS Web Application 2

Questions answered by Experts: 26 876

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

Build a category gui that adds different kinds of categories to arraylist. Then populate this data to JCombobox in another gui frame.


Write a function that takes 4 coordinates of the Rectangle and a point P as a parameter. Your function should be able to tell whether P lies inside the Rectangle, On the Rectangle, or Outside rectangle. Sample Input:

P1 0 0

P2 2 0

P3 2 2

P4 0 2

P 1 1

Output: P lies inside Square


10.Write a function which takes as input 4 points and tell whether these points


are the coordinates of Square, Rhombus, Rectangle, Parallelogram or


Quadrilateral. NOTE: Make separate functions for each case checking whether


its square / rhombus / rectangle / parallelogram. i-e (isSquare, isRhombus,


isRectangle, isParallelogram)


Sample Input:


P1 0 0


P2 1 0


P3 1 1


P4 0 1


Output: It’s a square


Write a function which takes as parameter 3 points and tell whether these



points are the coordinates of isosceles or equilateral or right angled or scalene



triangle. NOTE “Make separate functions as isEquilateral, isRightAngled and



so on... ”.



Sample Input: P1 0 0



P2 1 0



P3 1 1



Sample Output: Right Angle Triangle

Write a c++ program that computes the monthly net pay of the employee for a steel factory. The input for this program is the hourly rate of pay, the number of regular and the overtime hour work. The tax-deductible rate is 20%. You need first to calculate the gross pay, which is the sum of the wages earned from regular hours and overtime hours, the overtime is paid at 1.5 times the regular rate. Then you subtract the tax from the gross pay to get the net pay of the employee.


You are living off-campus and drive your car to ODU campus everyday of a week. You wonder how many mileages you travel in a week (just to campus and back home) and how much you need to pay for the gas. You log your travel mileage every day during a week (just to campus and back home). This information has been saved in an input file called “mileage.txt”.

Design an algorithm and write a C++ program to do the following:

  • Output the mileage for each day.
  • Prompt user to enter the price for one-gallon gas.
  • Calculate and output the total cost of your travel in the week. Your car's Miles per Gallon (MPG) is 35.
  • Save the output in a file named “cost.txt”.

a)     Typically, the stock market opens at 9:15 hours and closes at 15:30 hours. Each stock is defined by an opening price and a closing price which are the prices it opens and closes with. Within the operating hours, the stock price touches a maximum and minimum which are the highest and lowest prices achieved by the stock in the working hours of the stock market. You have access to ten years of monthly stock price data with the Open, High, Low and Close price and the number of stocks traded for each day given by the feature Volume. On some days when there is no trading, the parameters Open, High, Low and Close remain constant and Volume is zero.

 

Furthermore, your manager also claims that the model prediction is too bad since the data is polluted. Try to impress your new boss by preprocessing the data and by giving a proper rationale behind the steps you would follow. The two datasets should be merged before preprocessing. 



4.Read the given data ‘TIPS.csv’ as a dataframe named Tips and answer the following question.

a) In the tips dataframe, for the variable “total bill” what is the 3rd quartile and maximum value? 

b) The range of the variable “TotalBill”?


7. From the given below boxplot identify the median value and the outlier.



Develop a Java program for a car dealership shop that allows the dealer to enter the buying price of 5 cars and their models. the program then computes and displays the selling price and profit of each car the rate for selling price is 240% of buying price. Selling price = buying price * rate , profit = selling price - buying price .


4)Mr Caleb the Hoc of 200 level computer science in Caleb university bought the following goods in one of the warehouse in Lagos where prices of these goods or products are displayed exclusive


*One bag of rice @ 30,000.00 naira


*A 25 litre of groundnut oil @15,000 naira each


*50kg of beef @5,000 naira each


a)Write a C++ program to find the total amount paid by Caleb HOC if VAT was charged @17.5%


b)What is the total Expenditure of HOC is transportation

LATEST TUTORIALS
APPROVED BY CLIENTS