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

Write a program which prompts user to enter

the following student data and convert all this information to store in a single variable (see sample run).

Use bitwise AND, OR and SHIFT operators. Also use if-else where needed. (20 marks)


Write a menu driven program which has the following options:

1. Factorial of a number

2. Prime or not

3. Odd or Even

4. Exit

Once a menu item is selected the appropriate action should be taken and once 

this action is finished, the menu should reappear. Unless the user selects the “Exit” 

option the program should continue to work.


While purchasing certain items, a discount of 10% is offered if the quantity

 purchased is more than 1000. If quantity and price per item are input through the

 keyboard, create a program on it


You found an exciting summer job for five weeks. It pays Php150.00 per hour. Suppose that the total tax you pay on your summer job income is 14%. After receiving your pay, you spend 10% of your net income to buy new clothes and other accessories for the next school year and 1% to buy school supplies. After buying clothes and school supplies, you use 25% of the remaining money to buy savings bonds. For each peso you spend to buy savings bonds, your parents spend Php 0.50 to buy additional savings bonds for you. Write a program that prompts the user to enter the number of hours you worked each week. The program then outputs the following:





Your income before and after taxes from your summer job




The money you spend on clothes and other accessories




The money you spend on school supplies




The money you spend to buy savings bonds




The money your parents added for your savings bonds.




The money left from your income for the week





You found an exciting summer job for five weeks. It pays Php150.00 per hour. Suppose that the total tax you pay on your summer job income is 14%. After receiving your pay, you spend 10% of your net income to buy new clothes and other accessories for the next school year and 1% to buy school supplies. After buying clothes and school supplies, you use 25% of the remaining money to buy savings bonds. For each peso you spend to buy savings bonds, your parents spend Php 0.50 to buy additional savings bonds for you. Write a program that prompts the user to enter the number of hours you worked each week.

Lowest and Highest score

The teacher gave out the scores of the science quiz conducted last week and asked the ones with the lowest and highest scores to group up. Print the names of the students with minimum and maximum scores, respectively.


Note: In case of a tie, choose the name which comes first in the (dictionary order).


Sample Input1

2

shakti 24

disha 26

Sample Output1

shakti disha


Sample Input2

3

ajay 23

bijay 24

sanjay 23

Sample Output2

ajay bijay



Alex is found of doing string programs. One day his professor gave him a string based question to solve in a linear time complexity. The program is to change a strit to its diagonal string inter the form of X ( I. e Diagonal from left right and from right left) help him finish it


In this task, you are being asked to write a loop in Java.

Write a program that uses while loops to perform the following steps:

a) Prompt the user to input two integers: startingNum and endingNum (startingNum must be

less than endingNum).

b) Output all even numbers between startingNum and endingNum.

c) Output the sum of all even numbers between startingNum and endingNum.

d) Output the numbers and their squares between startingNum and endingNum.

e) Output the sum of the square of the odd numbers between startingNum and endingNum.

1. Create a program called WhileLoops.java. All loops will be written in this file.

2. Create appropriate variables and assign values using a Scanner object.

3. Correctly display appropriate messages.


Write and use utility functions power(x,n) and fact(n), which returns the nth power of x and factorial of n respectively. Write a driver that read and stores input value of x in an integer pointer and finds its exponential. Use as many terms as needed to improve the accuracy of the result.


Write an instance method daysTillXmas that will be placed inside the Date class. The method returns how many days away the Date object is from Christmas, December 25, in the same year. For example, Nov. 22 is 33 days away, Sep. 3 is 113 days away, Dec 25 is 0 days away, and Dec 31 is -6 days away.


LATEST TUTORIALS
APPROVED BY CLIENTS