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

Write a program that reads a set of integers, and then finds and prints the sum



of the even and odd integers.

LOOPS

Write a program that uses while loops to perform the following steps:

  • Prompt the user to input two integers: firstNum and secondNum

(firstNum must be less than secondNum).

  • Output all odd numbers between firstNum and secondNum.
  • Output the sum of all even numbers between firstNum and

secondNum.

  • Output the numbers and their squares between 1 and 10.
  • Output the sum of the square of the odd numbers between firstNum

and secondNum.

  • Output all uppercase letters.




















Make a program that asks the user for the hours worked for the week and the hourly rate. The basic salary is computed as:



Salary = hours worked*hourly rate



Bonuses are given:


-No. of hours > 45


~No of hours > 40 and <= 45


✓No of hours > 35 and <= 40



-Bonus of 500 pesos


~Bonus of 250 pesos


✓Bonus of 150 pesos

Write a C++ Program with Object-Oriented features like Operator Overloading and friend function for the following task:


In an Academic Institute, the Students, Research Scholars, and Faculty will borrow books from the Library. Assume for students the due date is 14 days, Research Scholars 21 days, and Faculty 28 days to return their borrowed books. 


For the sake of better programming assume that Student Id starts with S, Research Scholars Id starts with R, and Faculty Id starts with F.


Write an appropriate method to display the due date based on the category and calculate the penalty for the defaulter based on the late return date/submission. For every late submission day Rs. 5 will be added to their penality amount.


Ex: 


Name: Raja    ID: S20BCE1123  Book Issue Date: 10.11.2021 Return Date: 22.11.2021 Penality: Nil


Name: Rani ID: F21CSE1234  Book Issue Date: 01.11.2021 Return Date: 22.11.2021 Penality: Nil


1.Create a datatype Rectangle, where a Rectangle is defined by Length & Width. Your Program should be capable to compute:

uArea (LxW)

uPerimeter 2(L+W)

ucompare two rectangles with respect to the area and return true if two rectangles are equal, False otherwise


1. Calculate the value of a function y=2x^2+15 with x varying from 1 to 20 in increments of 0.5.



Huge Integers

Design a class that can handle arbitrarily large integers (using strings) that otherwise do not fit in a primitive type. A string will be treated as an integer if it contains all numeric type characters only. A sign indicating positive or negative integer may precede the string e.g. “-123456789009876543210”. Provide support for basic arithmetic and relational operations (using operator overloading) that include:


 addition: + and ++ (both pre and post increment versions)

 subtraction: - (binary as well as unary) and -- (both pre and post increment versions)

 multiplication

 division

 comparison operators: ==, <, >


Cout<<12-6/2; what is the reault

Call the functions in main.


Using dynamic array implement the following :



1. Create the list. The list is initialized to an empty state.







2. Determine whether the list is empty.







3. Determine whether the list is full.







4. Find the size of the list.







5. Destroy, or clear, the list.







6. Determine whether an item is the same as a given list element.







7. Insert an item in the list at the specified location.




Make a program that asks the user for the hours worked for the week and the hourly rate. The basic salary is computed as:



Salary = hours worked*hourly rate



Bonuses are given: Bonus of 500 pesos Bonus of 250 pesos Bonus of 150 pesos No. of hours > 45 No of hours > 40 and <= 45 No of hours > 35 and <= 40 Display the basic salary, bonus and the total salary (basic salary + bonus) for the week.




LATEST TUTORIALS
APPROVED BY CLIENTS