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 & Filtering

Write a program that calculates and prints the bill for a cellular telephone company. The company offers two types of service: regular and premium. Rates vary based on the type of service and are computed as follows: Regular service: $10.00 plus the first 50 minutes are free. Charges for over 50 minutes are $0.20 per minute. Premium service: $25.00 plus: a. For calls made from 6:00 a.m. to 6:00 p.m., the first 75 minutes are free; charges for over 75 minutes are $0.10 per minute. b. For calls made from 6:00 p.m. to 6:00 a.m., the first 100 minutes are free; charges for over 100 minutes are $0.05 per minute. Your program should prompt the user to enter an account number, a service code (type char), and the number of minutes the service was used. A service code of r or R means regular service; a service code of p or P means premium service. Treat any other character as an error. Your program should output the account number, type of service, number of minutes the telephone


List ten different Number system, briefly explaining them, giving at least 20 examples of each.


 Display the Most Expensive Book

Displays the most expensive book from the list. For example, consider the following list of books:


Introduction to AI 1200.00 450

Reinforcement Learning 1300.99 1000

Deep Learning: Practical 1575.60 850

When we select the option, it displays the following output:

Deep Learning: Practical 1575.60 850


You may use the following header for this method:

static void showMostExpensive(String[][] books, int currentSize)


Write a program to take two strings as input then display the string which is longer. If both the strings are of same length then appropriate message will come using length().

Output:

Enter first String

Hello World

Enter second String

hello wOrLd

Both Strings are of same length


Write a c++ program to generate multiplication table of 24 (note: 24,48,72.....240)

Write a program to obtain a number (N) from the user and display whether the is a one digit number , 2 digit number, 3 digit number Or more than 3 digit number

Did you know that you can also reverse arrays and group them according to your liking with proper code?


Let's try it to believe it.



Instructions:

  1. Input a random positive integer. Then, create an integer array with a size the same as the inputted integer.
  2. Then, using loops, add random integer values into the array one by one. The number of values to be stored is dependent on the inputted odd integer on the first instruction.
  3. Print out the list's new order in this manner, with each number separated by a space per row:
  4. second-half values
  5. middle value
  6. first-half values
  7. Refer to the sample output for a clearer view on how it is to be printed out.

Input

The first line contains an odd positive integer. It is guaranteed that this integer is greater than or equal to 3.

The next lines contains an integer.

5
1
3
4
5
2

Output

A line containing grouped arrays.

{2,5}-{4}-{3,1}

Question 1: Write a program that uses java.io.BufferReader to read the lines from the text file that is stored on disk. Handle the exceptions with following two ways:

1. Using try-catch-finally block

2. By throwing it up the call stack to the caller method.


 Write a complete C program consisting of the main function and a void function. The program uses the void function to display the following menu: 1. Square root of sum 2. Logarithm to base e of sum of squares Please enter your choice The program then prompts for and reads two values x and y each of type double. It then uses a switch statement to do the following, based on the selected choice: • Choice 1: The program displays the value of sqrt(x + y) if x + y is greater than or equal to zero; otherwise it displays an appropriate error message. • Choice 2: The program displays the value of log(x * x + y * y) if x2 + y2 is greater than zero; otherwise it displays an appropriate error message.


Suppose you have to enter five customers in a bank. The bank counter comprises of three service desk so three rows and three columns were made. Write a C++ program to provide service for customers according to row and column. First customer will stand in the first row first column, then the next customer in the first row second column and so on. Create a function which takes total number of customers as input as an argument and display the seating plan using another function.



LATEST TUTORIALS
APPROVED BY CLIENTS