Questions: 11 448

Answers by our Experts: 10 707

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 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}

 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.



Write c++ code using the following output

Enter values in first array

5

9

8

2

4

Minimum Element

2


Imagine you are developing a software system that requires users to enter their own passwords.

Your software requires that user’s password meet the following criteria:

 The password should be at least eight characters long.

 The password should contain at least one uppercase and at least one lowercase letter.

 The password should have at least one special character.

Write a program that asks for a password and then verifies that it meets the stated criteria. If it

doesn’t, the program should display a message telling the user why.


-         Design a C++ program that defines Graph class.

-         Represent graph objects by means of linked adjacency lists which are sorted.

-         Implement member functions ofthe class to manipulate directed weighted graphs with integer data items.

-         main() function should declare and create an object of this class. It should print the value of each node in depth first sequence.

-         For your first experiment create such a graph object:


 

                6

                                         10

7            9                    8   


  

 


-         Make necessary changes in your program to keep adjacency lists unsorted. Make sure that your search procedures take into account the fact that adjacency lists are unsorted now.

-         Present report with results of your experiments: The program code, outputs, some comments on using sorted and unsorted adjacency lists.


Write a program that iterates through the odd numbers less than 30, and outputs the square of each number. 


 Create a program that loops 30 times, but only outputs numbers that are not divisible by 3 or 5. Decide on the most appropriate form of a loop, and use an if statement inside it


LATEST TUTORIALS
APPROVED BY CLIENTS