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 small program called window.cpp to calculate the cost of a rectangular window. The total cost of a window is based on two prices; the cost of the glass plus the cost of the metal frame around the glass. The glass is 50 cents per square inch (area) and the metal frame is 75 cents per inch (perimeter). The length and width of the window will be entered by the user. The user will also enter y or n, to indicate whether or not the customer wants delivery. If the customer wants the window delivered, there is an extra charge of $50. The output of the program should be the length and width (as entered by the user) and the total cost of the window, including delivery if requested.


A customer goes and purchases some items at A & R. The store is offering discount to their customers. If a customer spends less than a $100, he/she will only get 5%. If the customer spends $100 or more, but less than $200, he/she will get 10% discount. If the customer spends $200 or more, he/she will get 20% off. Read the amount the customer spent at A&R. Calculate and print the discount amount and the final price after the discount has been deducted.


Write a program to find whether character entered is a vowel or a consonant. 


Write this assignment using data classes 

1 Create a class Person a. Initialize a class Person with FirstName, LastName, Age, Address, and Contact Number.


2. Create a class Employee 

a. Employee is a Person so Employee is a child class of Person class. Employee class constructor/__init__ method will contain all the attributes of Person class and Employee class own attributes which are EmployeeID, OrganizationName and Position.


3. Create a class CommissionEmployee

a. CommissionEmployee is a child class of Employee class. It should inherit all the attributes of

Employee class and its own attribute which is commissionRate

b. Create a method called calculateCommission, which should take input of gross sale from the

user and based on the commission rate calculate the totalEarning.

c. Create a method called displayData which should display the FirstName, LastName, Age,

Address, ContactNumber, EmployeeID, OrganizationName, Position, commissionRate and

totalEarning. 



Find the Turing machine of


1)Language contain a, b which strings are dividable by 3

Improve the source code from class lecture (see the starter code) to display error messages if the user enters non numeric values. Also, the program needs to present the user with an error message if the initial deposit is more than their financial goal ($10,000).

Note: In order to get full credit for this exercise, you need to:

  • implement robust "defensive programming" as discussed in class lecture.
  • document your source code properly

Sample Program Run:

Enter your initial deposit $: [ user enters 1800]

Your initial $1800 needs 287 years to mature to $10020.6

Another Sample Program Run:

Enter your initial deposit $:           [user enters -1]

Invalid input!

Please enter your initial deposit (less than $10K): [user enters 0]

Invalid input!

Please enter your initial deposit (less than $10K): [user enters 8000]

Your initial $8000 needs 38 years to mature to $10041.8


Write a program that use dictionaries to build tables. Complete a method that

receives 2 parameters. The first parameter states how many entries are in the dictionary and the second

number represents the multiplier for each entry.


Ex:

Input: 10, 5


Output: {1: 5, 2: 10, 3: 15, 4: 20, 5: 25, 6: 30, 7: 35, 8: 40, 9: 45}



printing sentence in decreasing order based on number

example

input= It took 13days 14nights to reach delhi by walk

output=It took 14days 13nights to reach delhi by walk (as decreasing order is 14,13 just numbers got replaced not word)


Using a while loop write a program to compute the sum of numbers between 20 and 25


How can multi-dimensional scalable architecture address the following:

a. Lack of inherent security

b. Lack of quality of service

c. Limitations in scaling

d. Limitations to support emerging networking paradigms


LATEST TUTORIALS
APPROVED BY CLIENTS