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

Sort the following list using the bubble sort algorithm. Show the list after each iteration of the outer

for loop.

26, 45, 17, 65, 33, 55, 12, 18


Write the array implementation of a list.


Requirements:


1)create class


2)No global declarations


3) functions


Isempty()


Delete()


Insert()


Display()


4)Call the functions in main

Write a function, reverseDigitthat takes an integer as a parameter and returns the number with itsdigitsreversed.

Forexample,thevalueofreverseDigit(12345)is54321;thevalueofreverseDigit(5600)is65;thevalueof reverseDigit(7008) is8007;andthe valueof reverseDigit(-532) is-235.



ProblemStatement1

WriteaprograminC++thatcreates thefollowingfunctions:

 

Function

Description

 

Receivesstringobjectandreturnsnumberofvowelsinit.

 

Receivesstringobjectandreturnsnumberofconsonants

init.

 

Receivesstringobjectandreturnsnumberofuppercase

lettersinit.

 

Receivesstringobjectandreturnsnumberoflowercase

lettersinit.

 

Useallofthefunctions inmainfunction.


Using while or do-while. The Area of a Circle = pi *(r*r). Where pi=3.1415 and r=Radius, Make a program that will input Radius and compute and display the Area. Your program will be terminated if input zero in the radius.


Write a C++ program that takes two integer numbers from user as

input, and display their sum.


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

Username: default

Password: admin


Change Username and Password

[Y/N]: Y


(Input new value for UN and PW.)

Username: correct UN

Password: correct PW


Welcome to my World


(If wrong credentials)


Username: wrong UN

Password: wrong PW

(for the 3rd time)


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

Task 2.

Create a class Node with

a.      attributes data, next and previous pointer

b.      accessors and mutators for this class

c.      constructor and destructor

d.     function called display.

Using the node from task 2, implement a class called DLL with following functionalities

1.      insert a node at first ,

2.      overload to Insert a node at last

3.      overload to Insert at specified position of double linked list. E.g if the position number is 6, it is inserted between node at position 5 and 7. If position number is greater than the size of list, it is prompted that the position number does not exist and therefore is being inserted at end.


1.      Create a class Node with

a.      attributes data and next pointer

b.      accessors and mutators

c.      constructor and destructor

d.     function called display

e.      search node returning true or false

f.       overload the function search to include lookAhead method.

1.      Create a class polynomial to create a linked list that uses class node with the following functionalities

a.      Insertion. This function takes as an input the size of polynomial. E.g if the size is 6, the polynomial equation is of degree 6. Then you are required to create the appropriate list.

6x6+ 12x3+5

b.      Deletion. This function deletes the list of the degree of number passed as a parameter. E.g if the number is 7, it is invalid. If it is 2, it deletes the first 2 degrees and the remaining list is 12x3+5

c.      Overload the function of deletion. This function deletes the entire list.

d.      Traversal

e.      Print equation in the following format

6x6+0x5+0x4+ 12x3+0x2+0x1+5.


suppose we have top teams they are like that with their points

pakistan=99

india=52

bangladesh=80

Nz=72

sl=45

wi=84

now we have to find the top 3 teams



LATEST TUTORIALS
APPROVED BY CLIENTS