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

Create a python code about this

Choices:

a. Calculator

b. Odd or Even

c. Positive or Negative Number Enter your choice: b Enter a number: 80 80 is an even number.


given a number of days(N) as input,write a program to convrt N to years(Y),weeks(W),and days(D).


create a python program

Choices:

a. Calculator

b. Odd or Even

c. Positive or Negative Number Enter your choice: a Enter first number: 10 Enter second number: 5 The sum of 10 and 5 is 15 The difference of 10 and 5 is 5 The product of 10 and 5 is 50 The quotient of 10 and 5 is 2




Read in the contents of a file of real numbers for which the file length is not known ahead of time and could be large. Write the numbers to a new file in reverse order.




Note: Store the data in a vector before writing the numbers to the output file in reverse order.

A company dealing with marketing wants to manage the data of its employees. Each employee has a full name, unique employee number (2019000 to 2019999) and the number of hours he worked and her hourly wage (price).




Write a program in C++ that creates a class vect, which contains a pointer to an integer (int *ptr) and an integer (size).The integer pointer (ptr) will point to a dynamic array of integers and size represents the total capacity of that dynamic array. The class vect should behave as an array with practically unlimited entries.

a) Write a default constructor that will initialize integer pointer (ptr) to NULL

and integer variable (size) to zero.

b) Write a parameterized constructor that will initialize integer variable (size)

to a value passed as parameter. Initialize the integer pointer (ptr) to a

dynamic array of size that equals to the parameter that is passed to

constructor.


Write a program to declare three classes a1, a2, a3. The classes have private data member variable of string type. Assign the first name and surname of a student to member variable of class a1 and a2 respectively. Perform concatenation of two strings and store it to data member variable of class a3. Print the full name to the output screen using member function. 


Design a class Student. Include data members rollno, name, city and age. Write member functions:

i) To accept information of ‘n’ students

ii) To display information of ‘n’ students

iii) To search details of a student using rollno

(use array of objects)

Iv. Calculate Average age.


Write a Program to declare examination results. Design three classes: Student, Exam, Result. The Student class has the data members such as Rollno and name. Create the class Exam by inheriting the Student class. The Exam class includes the data members representing the marks scored in six subjects. Derive the Result from Exam class and it has its own data members such as Total marks as well as calculate the grade based on total marks. Display the result with all the student information in descending order of their grade.


Roll an N-sided die until the sum of the numbers drawn is greater than X (N and X chosen by the user)


LATEST TUTORIALS
APPROVED BY CLIENTS