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

Why Hadoop and Why not RDBMS for managing Big Data? Elaborate with suitable
example. [5]
Write a program that will calculate and show bills of the Electric Company. The rates vary depending on whether the use is residential (R), commercial( C) , or industrial (I). Any other code should be treated as an error.
The program should accept the subscriber ID, Subscriber Name, his total electrical consumption in a month, and the code of the consumer type.

The rates are computed as follows:

R: 50 plus .50 per kwh used
C: 100 for the first 1000 kwh and 0.45 for each additional kwh
I: 180 for the first 1000 kwh and 0.75 for each additional kwh


please use ,
#include<stdio.h>
#include<conio.h>

and,
scanf:
printf

Write a function template named maximum() that returns the maximum value of three arguments that are passed to function when it is called. Assume that all three arguments will be of the same data type.

Do Exercise 6.4 from your textbook using recursion and the is_divisible function from Section 6.4. Your program may assume that both arguments to is_power are positive integers. Note that every positive integer that has an exponent of 0 is a power of "1". This includes "0" and "1", itself.

After writing your is_power function, include the following test cases in your script to exercise the function and print the results:

print("is_power(10, 2) returns: ", is_power(10, 2))
print("is_power(27, 3) returns: ", is_power(27, 3))
print("is_power(1, 1) returns: ", is_power(1, 1))
print("is_power(10, 1) returns: ", is_power(10, 1))
print("is_power(3, 3) returns: ", is_power(3, 3))

Create a program that takes in two words, check for equality ignoring the cases, if the words are equal the print the word in upper case with an appropriate message however if the words are different then print the two words in lower case with an appropriate message.


Sample run 1: Enter two words separated by spaces: Welcome WELCOME

Output: You have only entered one word: “WELCOME”


Sample run 2: Enter two words separated by spaces: NUST Students

Output: You have entered two words: “nust” and “students” 


Given any whole number from user input, check whether it’s a positive or negative number. If the number is negative then increment it by 3 and multiply the result by 4, however if it’s a positive number then decrement by 4 and multiply it by 3. a) Create a flowchart to be followed to solve the above task b) Create a java program using your flowchart and see samples below

Sample run 1: Enter a whole number: 4

Output: The Number 4 is above zero hence,

Result of the calculations = 0


Sample run 2: Enter a whole number: -5

Output: The Number -5 is below zero hence,

Result of the calculations = -8


Write an algorithm to find the ERG character for a given employee's ERP


Create an abstract class 'Bank' with an abstract method 'getBalance'. $100, $150 and $200 are deposited in banks A, B and C respectively. 'BankA', 'BankB' and 'BankC' are subclasses of class 'Bank', each having a method named 'getBalance'. Call this method by creating an object of each of the three classes


a,b,c = int user


x=\frac{-b+\sqrt{b^2-4ac}}{2a}


flowchart, pseudocode, c++


Armstrong numbers between two intervals
Write a program to print all the Armstrong numbers in the given range A to B(including A and B). An N-digit number is an Armstrong number if the number equals the sum of the Nth power of its digits.

Input
The first line has an integer A.
The second line has an integer B.

Output
Print all Armstrong numbers separated by a space.
If there are no Armstrong numbers in the given range, print -1.

Explanation
For A = 150 and B = 200

For example, if we take number 153, the sum of the cube of digits 1, 5, 3 is

13 + 53 + 33 = 153.

So, the output should be 153.

Sample Input 1
150
200
Sample Output 1
153
Sample Input 2
1
3
Sample Output 2
1 2 3
LATEST TUTORIALS
APPROVED BY CLIENTS