[solved] – Question 79030

You are writing a Python e-commerce program that reminds users of the contents of their wish list in the order that they put the items in. Which data structure best simulates the behavior you want to achieve?

Expert Answer


[solved] – Question 79046

1Write a program to find prime numbers using class and objects.

2 Write a program to find factorial of a number using class and object in C++.

3 Create a C++ program to check a number is palindrome or not using class and object.
Hint: It can be read the same backwards as forwards, e.g. madam

4 Write a program which can if number is even or odd using class and object in C++.

5 Write a program to find an Armstrong number. You can do it in simple way without using
class.
Hint: it is an integer such that the sum of the cubes of its digits is equal to
the number itself. For example, 371 is an Armstrong number since 3**3 + 7**3 + 1**3 = 371.

6 Write a program to find largest number using OOP concepts.

7 write a program to find C++ program to check whether a character is vowel or consonant
whether using classes and objects or not.

Expert Answer


[solved] – Question 79076

write a program in c++that defines inheritance use atleast 5 classes to show inheritance

Expert Answer


[solved] – Question 791

Assume that a variable named plist refers to a list with 12 elements, each of which is an int . Assume that the variable k refers to a value between 0 and 6 . Write a statement that assigns 15 to the list element whose index is k .

and

Assume that a variable named plist has been defined and is associated with a list that consists of 12 elements. Assume further that k refers to an int between 2 and 8 . Assign 22 to the element just before the element in plist whose index is k .

Expert Answer


[solved] – Question 79149

In Python, indentation is used to indicate the extent of a block of code. What is the output of the following Python?
first = 3
second = 5
if first < second:
print ( “but this time” )
print ( “first is bigger” )

Expert Answer


[solved] – Question 7915

You are to write a program to compute grades for computing program. Your program
should perform the following;
1. Accept input (in marks) from users
2. Calculate final mark taking into account exam and incourse marks as follows;
a. System must prompt the user for one’s name, student id, exam and incourse
marks. [You may assume the weightage for exam and incourse is 50%
respectively]
b. Display final mark (see 3(b) for other conditions)
3. Display final grade
a. The possible grades are:
0 <= average mark < 50 – NN
50 <= average mark < 60 – PA
60 <= average mark < 70 – CR
70 <= average mark < 80 – DI
80 <= average mark <= 100 – HD
b. A student would have failed if marks obtained is less than 50 for either the exam
or incourse component in which case the final mark for the student would be the
lower of the two.
Example:
Exam Mark (%): 40
Incourse Mark (%): 60
Final Mark (%): 40

Expert Answer


[solved] – Question 79185

1.Write a function called isOddthat accepts one(1) positive integer as its argument. It returns a boolean that indicates whether the argument is an odd integer or not. For example,

Expert Answer


[solved] – Question 79213

i have a webpage which contains html dynamic content as well as multiple pdf files(in iframes). how to print all this by one button click.
i dont know how to print multiple iframes. so please help me with that.

Expert Answer


[solved] – Question 79215

Consider a physical memory of size 2128 KB which is managed by buddies’ scheme. Suppose a set of four programs namely P, Q, R and S demand memory requirement of size 1030KB, 520KB, 70 KB and 130 KB respectively. What would be the size of the memory blocks allocated to these four programs? Is it fair allocation? Justify.

Expert Answer


[solved] – Question 79231

I am trying to figure out the formula for this question. I tried but i can’t figure it out:

create a calculated field with the column label Discount Price that subtracts the Price times the Current Discount from the Price.

Expert Answer