Create a program for a windows company

Assignment Help Data Structure & Algorithms
Reference no: EM132125704

The scenario is to create a program for a windows company. The program should display the total amount a customer owes, given the number of windows ordered and the price per window.

Total owed is calculated by multiplying the number of windows ordered by the price per window. Several times during the year, the company has a BOGO( buy one, get one free) offer.

Additional information:

Examples using regular pricing-

number of windows =11

price per window = 300

total owed (11 * 300): 3300.00

Examples using BOGO pricing-

Number of Windows :15

Price per window: 200

total owed ( 8 * 200): 1600.00

The program also has to be modified by changing the 2 void functions used to get regular price and to get the BOGO price, to value returning functions

Edit: language is C++

Reference no: EM132125704

Questions Cloud

Design a program that let the user enter the total : SDEV 140 : Design a program that let the user enter the total rainfall for each of 12 months into an array.
How many entries will be considered before discovering : How many entries will be considered before discovering that the entry is not present? (Note that the list is in alphabetical order.)
Find the full names of supervisors together with the total : Find the full names of supervisors together with the total number of employees directly supervised by each one of them.
Analyze the complexity of is-perfectly-balanced : We say that a binary tree T is perfectly balanced if, for each node n in T , the number of keys in the left and right subtrees of n differ at most by 1.
Create a program for a windows company : The program should display the total amount a customer owes, given the number of windows ordered and the price per window.
Find the solution to the recurrence in big-oh notation : Find the solution to the recurrence in big-Oh notation and prove it using the substitution method.
Find the parent process : Find the parent process (write the name down as you'll need it later) that is starting the bombs and kill it.
What should be the type of the return value of the method x : Consider the statement if ((a! = null)&&(a.x()))a.y(); What feature of the a && b makes it classify as a control structure? Rewrite this as 2 nested
How many ways are there for sally to select her 12 pieces : Sally goes into a candy store and selects 12 pieces of taffy. The candy store offers 75 varieties of taffy.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  What are the potential benefits of knowledge management

What are the potential benefits of knowledge management projects

  Identify a common task that might occur regularly

Identify a common task that might occur regularly. The task should be one that might occur in a business setting rather than one in someone's personal life.

  Find prefix and postfix forms of an arithmetic expression

Explain how to use preorder, in order, and post order traversals to find the prefix, infix, and postfix forms of an arithmetic expression.

  What is the running time of your algorithm

Given an n-element unsorted array A of n integers and an integer k, describe a recursive algorithm for rearranging. What is the running time of your algorithm?

  Creating visual studio.net web application

Make a Visual Studio.NET 2005 web application with one aspx form. Place a CheckBoxList, TextBox, Button, and Label control on the form.

  Implement bucket sort suing two-dimensional array

Where n is number of values to be sorted. Each row of two-dimensional array is referred to as bucket. Write class named BucketSort containing method called sort.

  Creating villian

Announce a new Villian called sharpay who has a wit of 24, a stealth of sixteen, and who has currently claimed three victims: Chad, Troy, and Gabriella.

  You have been hired as an information systems consultant to

you have been hired as an information systems consultant to examine state health centre a fictitious multi-centre state

  Find the strongly connected components of a directed graph

Describe an algorithm based on depth-first search to find the strongly connected components of a directed graph.

  What is the quick sort algorithm

Which of the following would give the fastest run time when an array is sorted using the quick sort algorithm: a fully sorted array, an array of random values.

  Describe two different algorithms for finding spanning tree

Illustrate how the two algorithms you described in part (a) can be used to find the spanning tree of a simple graph, using a graph of your choice.

  Access to inherited public and protected members

Access to inherited public and protected members in a derived class is determined by the kind of inheritance-public, private, or protected.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd