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

Huge Integers(We have to use strings int this using int is restricted)

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: ==, <, >


Create a program that will ask the user to input an integer and intify the integer is an odd or even.

LOOPS

If diff is 0, then guess is correct and the program outputs a message indicating that the user guessed the correct number. if not

1. If diff is greater than or equal to 50, the program outputs the message indicating that the guess is very high (if guess is greater than num) or very low (if guess is less than num).

2. If diff is greater than or equal to 30 and less than 50, the program outputs the message indicating that the guess is high (if guess is greater than num) or low (if guess is less than num).

3. If diff is greater than or equal to 15 and less than 30, the program outputs the message indicating that the guess is moderately high (if guess is greater than num) or moderately low (if guess is less than num).

4. If diff is greater than 0 and less than 15, the program outputs the message indicating that the guess is somewhat high (if guess is greater than num) or somewhat low (if guess is less than num).

Give the user no more than five tries to guess the number.


How do i make the circuit for the above code?


perfect number is an integer that is equal to the sum of its factors. write down a c++ program that takes an integer x as an input and prints all perfect numbers from 1 to x.


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



Display the basic salary, bonus and the total salary (basic salary + bonus) for the week.

Write a c++ program segment to assign data to members of a structure called employee having name ,age and salary then display it.


Write a program to print the area of a rectangle by creating a class named'area' having two function . First function named as 'read data' take the length and breadth of the rectangle as parameters and the second function named as 'calculate area' return the area of the rectangle

How can you impliment debit and credit statements to get profit and loss result accordingly using if else and goto statements in C++?. My project is account management with profit and loss, Thanks.


Create a program that will ask a user to enter 5 positive numbers.

The program will then display the largest and the smallest value that was entered by the user.


LATEST TUTORIALS
APPROVED BY CLIENTS