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

Elle Joy Vasquez


Preliminary Test 03


Create a Python function that takes a list and returns a new list with unique elements of the first list.


Sample List: [1,2,3,3,3,3,4,5]


Unique List: [1, 2, 3, 4, 5]

Create a class called Employee to represent the details of an Employee. a) Include the following data members to the Employee class. EmpId, name, address (all are string data) b) Your class should have a constructor that initializes all instance variables. c) Include a method called void Read() which will input the above values from the keyboard d) Include a method called void Print() to display the properties


Write c++ program to implement Recursion, use your names as variable names, by the use of RAM diagrams show demonstration of how these code execute

Receive a number and determine whether it is odd or even.

Receive a number and determine whether it is odd or even.





2. Obtain two numbers from the keyboard, and determine and display which (if either) is the larger of the two numbers.





3. Receive 3 numbers and display them in ascending order from smallest to largest





4. Add the numbers from 1 to 100 and display the sum





5. Add the even numbers between 0 and any positive integer number given by the user.





6. Find the average of two numbers given by the user.





7. Find the average, maximum, minimum, and sum of three numbers given by the user.





8. Find the area of a circle where the radius is provided by the user.





9. Swap the contents of two variables using a third variable.





10. Swap the content of two variables without using a third variable.





11. Read an integer value from the keyboard and display a message indicating if this number is odd or even.





12. read 10 integers from the keyboard in the range 0 - 100, and count how many of them are larger than 50, and display this result







A C++ program to print the area of a rectangle by creating a class named Area having two functions, first function named as Setdim takes the length and width of rectangle as parameters and second function named as getArea returns the area of the rectangle, length and width are entered through keyboard.

your friend gave you an encrypted text. He encrypted the text using the Alphabet Square cipher. It is a simple substitution cipher that make use of a square grid. The letters a-z written into the grid, with i and j typically sharing a slot (as there are 26 letters and Only 25 slots).This cipher generally takes a plain text as input and gives encrypted text as output.

To encipher a message ,each letter is merely replaced by its row and columns numbers in the grid.

Your given an encrypted string S as input print the decrypted text using the Alphabet Square.

NOTE:The input contains lowercase letters as the string.


C program to initialize the value as 5.800000

The function below calculates and returns the sum of integers between 1 and n (inclusive) where n is an integer accepted by the function i.e.

If n = 3;

then the function returns 6 (1+2+3). int sum(int n) { int sum = 0;

while (n > 0) { sum = sum + n; --n; } return sum;

}


Rewrite the body of the sum function using a single do-while loop instead of a while-loop


Write a C++ program that accepts an input value in Tambala from the user and

then the program should convert the value to equivalent value in Kwacha and

Tambala.

(For example, if the user enters 112 as input value, the program should display:

1 Kwacha and 12 tambala


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS