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

numbers: the positive, the zero, and the negative ones. Today, we shall pay attention only to the negative ones now. Make a loop that will accept random decimal/float numbers. When the user inputs 0, the loop will terminate and then output the sum of all negative numbers inputted in 3 decimal places.

write the programme that implementes the following algorithms? start: read the total hours the employee has woked,Total hours. Read the hourly rate of pay for the employee,Hourly rate. gross salary=total hours*hourly rate. tax=gross salary *0.1 Net salary =gross salary-tax. Display net salary

Q1. Define a class Deposit that has a principal, a rate of interest, which is fixed for all 

deposits and a period in terms of years. Write member functions to

(i) alter(float) which can change the rate of interest.

(ii) interest() which computes the interest and returns it.

(iii) print() which prints data as shown below. Note that the width of each column is 20.


Q3. Define a class License that has a driving license number, name and address. Define 

constructors that take on parameter that is just the number and another where all 

parameters are present.


Q2. Assume that the cell users are two kinds – those with a postpaid option and those 

with a prepaid option. Postpaid gives a fixed free talk time and the rest is computed at 

the rate of N2.90 per pulse. Prepaid cards have a fixed talk time.

Define a class Cell_user as a base class and derive the hierarchy of classes. Define 

member functions and override them wherever necessary to

(i) retrieve the talk time left for each user.

(ii) print the bill in a proper format containing all the information for the postpaid user


Create a C++ program that will

  • Deposit cash amount in a bank account
  • Check available balance of the account
  • Withdraw cash amount from an account
  • Compute for the interest earned for balances greater than Php 10,000.00
  • Charges for having a balance below the required minimum

Maintaining balance is Php 5,000.00

Interest rate is 5%

Bank charge is 2%

PIN (Personal Identification Number) is required to do a bank transaction

The program gives the user an option to change PIN




Implement list data structure that will resize on its own

Note:

No global declarations

Make use of class and structure

Call in main the functions


You are required to create a programming to display the pricing, discounted value, who is the seller and postage company.



Please include the necessary library before typing your codes.


Item: shoe


Brand: adidas


Model: Super-star


Price (RM): 450.99


Discount (%): 25.75


Seller: DEF Sdn Bhd


Postage: Lazada pos


The output from the codes must have the command COUT for every item.



Construct the necessary script to solve the given problem.




USE THE ABOVE ESCAPE SEQUENCE IN A HELLO.CPP PROGRAM AND OBSERVE THE IMPACT THAT EACH OF THEM HAVE ON


THE PROGRAM. WRITE THE ANSWER WHAT YOU HAVE OBSERVED

Create a program that asks the user to input the full name and a number (1-10). Create two functions


One function that receives that number and print the factorial of value of that number.


Second function that print the table of that number ranges from -5 till +10, and count the negative and positive values of the multiplied number answers.


LATEST TUTORIALS
APPROVED BY CLIENTS