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

Create a class named INVOICE that contains fields for an item number, name, quantity, price, and total cost. Create instance methods that set the item name, quantity, and price. Whenever the price or quantity is set , recalculate the total (price times quantity ). Also include a DISPLAYLine() method that displays the item number, name, quantity, price for each INVOICE. Save the class as INVOICE.java


Sample output

item # : 111

Item name: chips

Quantity:2

Price: 1.00

Total Cost: 2.00


Name your database using your names as: “db_first_last_studentNumber”. ∙ Name all your tables in your database using this format: “tbl_tableName”. ∙   

∙ This mini-project is worth 20 marks (10 marks for a working GUI, 10 marks for performing CRUD  operations on a DB through the GUI). 

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.





Write a program in c++ that initiative an array of given 10 real numbers. The program should sort the number in awaiting / descending order using bubble sort method. It should print the given list as well as sorted list


Matrix Rotations

You are given a square matrix A of dimensions NxN. You need to apply the below given 3 operations on the matrix A.

Rotation: It is represented as R S where S is an integer in {90, 180, 270, 360, 450, ...} which denotes the number of degrees to rotate. You need to rotate the matrix A by angle S in the clockwise direction. The angle of rotation(S) will always be in multiples of 90 degrees.

Update: It is represented as U X Y Z. In initial matrix A (as given in input), you need to update the element at row index X and column index Y with value Z.

After the update, all the previous rotation operations have to be applied to the updated initial matrix.

Querying: It is represented as Q K L. You need to print the value at row index K and column index L of the matrix A.




Sample Input 2


2

5 6

7 8

R 90

Q 0 1

R 270

Q 1 1

R 180

U 0 0 4

Q 0 0

-1


Sample Output 2


5

8

8


i want exact sample outputs




Create a program based on the attached 3 outputs below. Using a while loop is required in your program



Sample output 1:


Choices


E or e for Even


O or o for Odd


X or X for Exit



Enter your choices: e


.........This program is for Multiplication of even numbers........



Enter a number:20


1 * 2=2


2 * 4=8


3 * 6=18


4 * 8=32


5 * 10= 50


6 * 12=72


7 * 14=98


8 * 16=128


9 * 18=162


10 *20= 200




Sample output 2:



Choices


E or e for Even


O or o for Odd


X or X for Exit



Enter your choice:o



.....This program is for Multiplication of Odd numbers....



Enter a number:10



1 * 1=1


2 * 3=6


3 * 5=15


4 * 7=28


5 * 9=45




Sample output 3:


Choices


E or e for Even


O or o for Odd


X or X for Exit



Enter your choice:X


Your program will now exit.




The tap code, sometimes called the knock code, is a way to encode text messages on a letter-by- letter basis in a very simple way. Tap code has been one of the most basic communication protocols and still used to convey SOS messages and other urgent communication. The tap code uses a 5×5 grid of letters representing all the English alphabets, see Figure 1. To communicate the word "water", the cipher would be the following (with the pause between each number in a pair being shorter (single space) than the pause between letters (two spaces)),

Your task is to design a program that can

i) convert any given string into a Tap code sequence

Prototype: char* convertToTapCode(char*)

ii) and A Tap code sequence to a string (char*)

Prototype: char* convertToString(char*)


Note: You are not authorized to use string data type; however, you can use char*


Addition of Big Integer

In this problem, you have to take two char arrays of numbers (e.g., “1203009954” and

“109876201453”) from the user and add these two numbers and store answer in a third char array digit by digit (“111079211407”).

char* additionOfBigInteger(char * Num1, char* Num2)


Subtraction of Big Integer

In this problem, you have to take two char arrays of numbers (e.g., and “1203009954”

“109876201453”) from the user and subtract these two numbers and store answer in a third char array digit by digit (“-108673191499”).

char* subtractionOfBigInteger(char * Num1, char* Num2)


Multiplication of Big Integer

In this problem, you have to take two char arrays of numbers (e.g., and “1203009954”

“109876201453”) from the user and multiply these two numbers and store answer in a third char array digit by digit (“132182164055668263162”).

char* multiplicationOfBigInteger(char * Num1, char* Num2)



Write a C++ recursive function PrintPattern1 to print following pattern using recursion. No

loops allowed whatsoever, and you can write other helping (recursive) functions. For example, calling your function with these argument PrintPattern1(1,10) should print following pattern. Your function prototype must be as follows:

void PrintPattern1(int start, int end);

pattern:

*

*

*

*

*

*

*


Create a program based on the sample output using the do-while loop.


--Choices--

1-EVEN 2-ODD 3-EXIT


Enter Your Choice Above : 2


Enter a Number : 16

Odd Numbers : 1 3 5 7 9 11 13 15


Enter Your Choice Above : 1


Enter a Number : 8

Odd Numbers : 2 4 6 8


Enter Your Choice Above : 2


Enter a Number : 0


Your Program is about to exit...

Thank You!


Create a program based on the sample output using while loop.


--Choices--

E or e for Even

O or o for Odd

X or x for Exit


Enter your choice : X

Your Program will now exit.


LATEST TUTORIALS
APPROVED BY CLIENTS