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

A series XYZ is given below. First three elements (element no. 0 to element no. 2) of the series are 1, 2 and 3 respectively. After that, any ith element of the series (for i>2) is the sum of the previous three elements. For example, 6 = 1+2+3 and 68 = 11+20+37. Your task is to write a program that prints the first 10 elements of this series.

You may use arrays but you are not allowed to use linkedlist.

XYZ Series: 1, 2 , 3 ,6 ,11 ,20 ,37 ,68 ,125 ,230 ,423 ,778 ,1431 ,2632 ,4841


define mesure of an array is computed as follows. count the number 1s in the array.let this count be n. the define array measure is number of times that n appears in the array. for example , the station ,measure of {1,4,3,2,1,2,3,2,} is 3because 1 ocurs 2 time in the array and 2 occurs 3 times.


(Pointers to objects)

Define a class 'Item' that is used to store and display the information regarding the item

number and its price. Write a program to store and display the details of one

items by using both normal object and pointer to object separately. Display

appropriate message wherever necessary.


(only by if-else or nested if-else)

Write a program that displays the following menu to the user:


Press 1 for Permanent Employee

Press 2 for Daily wages Employee


After selecting the appropriate employee calculate salary and medical charges for the employees. Following 

menu would be displayed:


Press a to calculate Salary

Press b to calculate medical charges.


The daily wages employees are paid 400 per hour while permanent employees are paid 800 per hour. 

When you would calculate the salary, first you need to ask for the number of hours for which the 

employee has worked so far. The permanent employees are paid 5% medical charges of their total 

salary while daily wages are paid 3% of medical charges. For calculating medical allowance no further 

selection/input is required.


(only by if-else and nested if- else)

Write a program that ask the users to enter three characters. Then the program should display the 

following menu

1. Sort in Ascending order

2. Sort in Descending order

The program should perform sorting of these three characters in ascending or descending order as per the 

user requirement.


(only by if-else or nested if-else) (not by loops)

Write a program which calculates the monthly Budget of a person. The program will read the

monthly salary of the person. Then give following options:


Press 1 to calculate gas bill charges

Press 2 to calculate electricity bill charges

Press 3 to calculate fueling charges.

Press 4 to calculate house rent charges


His monthly gas bill charges are 10% of his salary, electricity bill charges are 5% of his salary. His monthly

fueling charges are 10% of his salary, and his house rent charges are 15 %. Your program will calculate and

display the corresponding charges based on the selection (1, 2, 3, or 4)


Write a program that reads 10 integers from user and then finds and prints all the Odd numbers that are divisible by 5.



(Please Only DO it by IF-Else or Nested if else) (not by loops)

Write a program which takes your age as an input and output of your program should b like this


You are 24 years old


One year ago,you were 23


In one year you will be 25

Given a three-digit integer N and an integer K, returns the maximum possible three-digit value that can be obtained by performing at most K increases by 1 of any digit in N.

Write a non-member function that that takes 2 linked lists as

constant arguments and returns a new linked list that contains

every number the two lists do NOT have in common. If list1

contains the numbers 3, 2, 4, 9, 8, 1, 0, 5 and list2 contains the

numbers 0, 1, 7, 6, 4, 5, 9, then the function should return a list of

the numbers 2, 3, 6, 7, 8 in any order. The time complexity of

function should be O(N).


LATEST TUTORIALS
APPROVED BY CLIENTS