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

Give the number of the month , write a program to print the name of the month


Input will be a single line Containing a integer N

Q: Suppose there is link list as follows:


Element : Address

5 : 1000

10 : 1500

15 : 2000

20 : 3000


You need to write a pseudo code to insert new node after (15) and set its value as

18. You can suppose the values of address.


A prime number is called an Additive prime if the sum of its digits is also a prime


number. Write a program that will display the N (user input) number of additive prime numbers


and displays the output in the following format:


Prime number


Sum of its digits


2


2


3


3


...


11


2


using user-defined functions



Sample output:


Enter an integer: 10


Prime number Sum of Digits


2 2


3 3


5 5


7 7


11 2


23 5


29 11


41 5


43 7


47 11

Write program that implements a function with the following header to display all

the even digits in an integer:

void displayEven(int number)

For example, displayEven(345) displays 4. Write a test program that prompts the

user to enter an 

integer and displays the even digits in it. Using User define functions


Sample output:

Enter an integer: 123456789

8 6 4 2



Write a c++ program that implements the functions with the following headers:

// Return the sum of the cubes of the digits in an integer,

// i.e., cubeOfDigits(131) returns 13 + 33 + 13 = 29

int cubeOfDigits(int number)

// Displays if integer is an Armstrong integer

void isArmstrong(int number)

Use cubeOfDigits to implement isArmstrong. An integer is an Armstrong integer(order of 3) if the sum of the cubes of its digits is equal to the number itself. Write aprogram that will print all the 

Armstrong numbers within the range of 1 up to 1000.


Example program:

1

153

370

371

407


Did you know that in lotteries, a 3-digit number with the same numbers in all digits like 777 will hit the jackpot in a casino? In the same manner, let's make a program that will test if a certain 3-digit number hits a jackpot or not by identifying if all the digits of a given number is the same as the second inputted number. If it is, print "Jackpot!"; else, print "Nah".


Let's try this out now!


Write recursive procedures for the following problems :


1)Factorial


2)Print linked list


3)Print reverse linked list

Define username and password as array variables

In the program, set an initial value for the variables

  • Username: default
  • Password: admin

The user should be able to login using the default credentials

The program should be able to change the default values of the array

If the user tries to login using wrong credentials he will be asked to re-login but after 3 wrong attempts the program will display "You've exceeded the allowable number of tries! Try again later"

If the user successfully logged in, the message "Welcome to my World" should be displayed on screen

If this can done in a user-define function, it would be better but not required for now.

SCREEN LAYOUT / DESIGN

(prompt 1)

Username: default

Password: admin


Change Username and Password

[Y/N]: Y

(prompt 2)

Username: correct UN

Password: correct PW


Welcome to my World


(prompt 3)

Username: wrong UN

Password: wrong PW

(for the 3rd time)


You've exceeded the allowable number of tries! Try again later

Write a query to create a view that finds the salesman who has the customer with the highest order at least 3 times on a day. 

 

Relation1: Customer

customer_id | cust_name | city | grade | salesman_id

-------------+----------------+------------+-------+-------------

3002 | Nick Rimando | New York | 100 | 5001

3007 | Brad Davis | New York | 200 | 5001

3005 | Graham Zusi | California | 200 | 5002

3008 | Julian Green | London | 300 | 5002

3004 | Fabian Johnson | Paris | 300 | 5006

3009 | Geoff Cameron | Berlin | 100 | 5003

3003 | Jozy Altidor | Moscow | 200 | 5007

3001 | Brad Guzan | London | | 5005

 

Relation2: elitsalesman

 

salesman_id | name | city | commission

-------------+------------+----------+------------

5001 | James Hoog | New York | 0.15

5002 | Nail Knite | Paris | 0.13

5005 | Pit Alex | London | 0.11

5006 | Mc Lyon | Paris | 0.14

5007 | Paul Adam | Rome | 0.13

5003 | Lauson Hen | San Jose | 0.12


Write a program to create a class shape with functions to find volume of the shapes and display the name of the shape and other essential component of the class. Create derived classes sphere , cuboid and cone each having overridden functions area and display. Write a suitable program to illustrate virtual functions and virtual destructor

LATEST TUTORIALS
APPROVED BY CLIENTS