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

Milestone:

For this unit, you are required to develop a GUI application using Java. The application should connect to a database and should be able to perform any CRUD operation.


Main goal: 

Develop a Java application with GUI for a primary school called Duka.


Functional Requirements:

The application should allow: 

i. A shop attendant to be able to login to upload stock of items (with prices). ii. A buyer be able to search for items, get their prices and make an order.


Non-functional Requirements:

The application should:

i. Have a user-friendly GUI for both shop attendant and buyer.

ii. Not crash in case a user makes a mistake, instead it should provide a clarification/warning.


Construct a class called Rectangle. A Rectangle has both a length and a width (both positive integers). Access to them should be only inside the class and within the inheritance hierarchy. Then implement the following:

  • lone constructor that accepts two integers for the length and the width. Prints "Rectangle Constructor"
  • getters and setters
  • area - prints "Rectangle Area" and returns the area of the rectangle
  • perimeter - prints "Rectangle Perimeter" and returns the perimeter of the rectangle


Square construction prints "Square Constructor" and accepts one integer which is the length of a side. The version of the area and perimeter of Square prints "Square Area" and "Square Perimeter", respectively.

Input

A positive integer representing the length of the side of a Square.

2

Output

The message of the constructors when called, the area, and perimeter of Square.

Rectangle·Constructor
Square·Constructor
Square·Area
Area:·4
Square·Perimeter
Perimeter:·8






Create a class hierarchy that will represent trips, including member variables to store trip details. Create member functions that will:

  • compute the cost of the trip, and
  • display the details of the trip: origin, destination, distance and cost


Study the sample output carefully so you can correctly implement the trip hierarchy. 

Input


5
1·Zamboanga·Cagayan·494·5
1·Tagbilaran·Panglao·20·10
2·Cebu·Tagbilaran·90·800
3·Manila·Davao·1500·4500
3·Clark·Iloilo·751·2300

Output


Trip·Constructor
Bus·Constructor
Bus·Trip:·Zamboanga·to·Cagayan,·494·km,·P5·base·fare
Trip·Constructor
Bus·Constructor
Bus·Trip:·Tagbilaran·to·Panglao,·20·km,·P10·base·fare
Trip·Constructor
Boat·Constructor
Boat·Trip:·Cebu·to·Tagbilaran,·90·km,·P800·base·fare
Trip·Constructor
Plane·Constructor
Plane·Trip:·Manila·to·Davao,·1500·km,·P4500·base·fare
Trip·Constructor
Plane·Constructor
Plane·Trip:·Clark·to·Iloilo,·751·km,·P2300·base·fare
Total·Cost·of·trips:·10950




(bubble sort)smaller values gradually “bubble” their way upward to the top of the array like air bubbles rising in water, while the larger values sink to the bottom. The bubble sort makes several passes through the array. On each pass, successive pairs of elements are compared. If a pair is in increasing order (or the values are identical), we leave the values as they are. If a pair is in decreasing order, their values are swapped in the array. The comparisons on each pass proceed as follows the 0th element value is compared to the 1st, the 1st is compared to the 2nd, the 2nd is compared to the third, the second-to-last element is compared to the last element. Write a function named bubblesort that accepts the unsorted array and the size as its parameter. The bubblesort function


sorts an array of 10 integers.Call the function in the main program with array argument and size to test its correctness. Note that the top of the array is the first element at index 0 and the bottom of the array is at index size-1

Write a program that takes two strings and outputs the longest string. If they are the same length then output the second string.


Ex. If the input is:


almond pistachio

the output is:


pistachio


Write a program that takes in three integers as inputs and outputs the largest value.

Ex: If the input is:

1 2 3

and the outut must be 3



Convert Temperature Using a drop down. If drop down selection is Fahrenheit to Celsuis , convert Fahrenheit to celsuis. if drop down selection is celsuis to Fahrenheit, convert Celsuis to Fahrenheit. All while also using a button to execute.


Write a program to take a String name as input without using array and display the name in the format that even words will be first letter only.

Enter a String

Hun leij cenr xanf ewasn

Hun l. cenr x. eswasn

Hint: Use trim(), indexOf(), lastIndexOf(), charAt(), substring() if necessary.

Don't use Character class and split


write a program using delphi to calculate and store the average obtained by 5 students and print the student that made the highest mark


Objective:

Write a program that uses a structure named Student to store the following information about a student:

• Student ID

• Student Name

• Major

• Year Passed

The program should create two Student variables, store values in their members, and pass each one, in turn, to a function that displays the information about the student in a clearlv formatted

manner.


LATEST TUTORIALS
APPROVED BY CLIENTS