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

You are supposed to construct a class Date that shall contains the following private members



such as:



 Day: integer type data.



 Month: integer type data.



 Year: integer type data.



You are supposed to perform operators overloading on the following operators



 > : greater than operator.



 < : less than operator.



 == : equal operator.

A car park has the following charges. The 1st hours cost RM2.00. The sub sequent hours cost RM1.00 per hour. Write a program for this problem. 


A student’s letter grade is calculated according to the following schedule:

Using this information, write, compile, and run a C++ program that accepts a student’s numerical grade, converts the numerical grade to an equivalent letter grade, and displays the letter grade.


For this assignment, you will write a program that will read in the data from a text file (provided) and store it in two arrays. The first two lines (student’s first name and last name) will be stored in a string array (that contains 2 columns). The last 5 lines (homework average, quiz average, exam average) will be stored in a double array (that contains 3 columns). The class can have up to 30 students enrolled (so you will have to allow for up to 30 students but track how many are read in). The program will average each student’s grade using the formula average = hw * 0.1 + quiz * 0.1 + exam * 0.8. Then it will determine the letter grade for the student. The output for each student will be FirstName LastName: Letter Grade. You need to do exception handing for the end of file and making sure the file exist. The file is formatted so that it has 5 lines per student. The files name is “Students.txt”. Do not change the name. • First Name • Last Name • Homework Average • Quiz Average • Exam Average in c++



Write a class Account with following parameters: accountTitle (string), accountHolder (string), accountNumber(string), amount(double). Write public getters and setters for each class variable. You are also required to write following functions 


1. withdrawAmount The user should be able to withdraw amount from his/her account. The withdrawAmount member function.


2. deductTax At every withdrawal, The program should be able to deduct tax (2.5%) from user amount. 


Write main() function where program should provide following options to the user:

a. create account

b. set account title

c. set account holder name

d. set account number

e. set amount

f. get account title

g. get account holder name

h. get account number

i. get amount

j. withdraw amount

k. deduct taxes



Write a C++ program that converts a decimal number to a binary, octal, and hexadecimal equivalents. First, the program will ask to fix a range for the lower and upper limit in which the conversion is required. The lower limit should not be less than 0 and greater than the upper limit. For example, if you enter a negative number or greater than the upper limit, then the program should print a message for the invalid input and will ask you again to enter a decimal number within the range. If you correctly specify the upper and lower limits, then the program will print a table of the binary, octal and hexadecimal equivalents of the decimal numbers in the range of lower limit through upper limit.

1. Create a 'for' loop that will display numbers: 100 90 80 70 60

2. Create a 'for' loop that will display all EVEN numbers from 1 to N. (N is a positive number entered by the user.)

3. Create a 'while' loop that will accept numbers but stops when it encounters a negative number.


There are 15 students in the class. Students had their mid term result



in INT105 and teacher from CSE domain wants to find the average



marks of the class for course code INT105 and display it. Write a



program using C++ programming language that consists of an class



having name Student containing one integer array data member which



stores the total marks of 15 students and float data member that



calculate the stores average marks to 10 students. Use constructor to



initialize data members and member functions to calculate and display



average marks.

using dev c++ please

(Hardware Inventory) You are the owner of the hardware store and need to keep an inventory that can tell you what different tools you have, how many of each you have on hand and the cost of each one. Write a program that lets you input the data concerning each tool, enables you to list all your tools, lets you delete a record for a tool that you no longer have and lets you update any information in the file. The tool identification number should be the record number. Use the following information to start your file.


RECORD#

TOOL NAME

QUANTITY

COST

3

Electric Sander

7

57.98

17

Hammer

76

11.99

24

Jig Saw

21

11.00

39

Lawn Mower

3

79.50

56

Power Saw

18

99.99

68

Screwdriver

106

6.99

77

Sledge Hammer

11

21.50

83

Wrench

34

7.50



Write a function to calculate and return the roots of a quadratic equation ax2 + bx + c = 0.



Return x1 and x2 through



parameter of the function. The prototype of this function is defined by:



void solveEquation(int a, int b, int c, float *x1, float *x2);




LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS