Design an algorithm that asks for the user for the number

Assignment Help Data Structure & Algorithms
Reference no: EM13708716

Question: BuzzButtons is a novelty item company manufacturing personalized lapel buttons. The owner is promoting his buttons by offering them at 99 cents each. He wants you to design a program asking the user for his or her name for the button, an e-mail address, and the number of buttons to order. The program should then add a 6% sales tax and a flat shipping rate of $2.00.

The program displays the information the user enters as well as the button price total, sales tax amount, shipping amount, and order total. The company contacts the user by e-mail later for shipping address information.

Using pseudo code, design an algorithm that asks for the user for the number of fixed-price items to order, adds sales tax and flat-rate shipping, and displays the result.

Using JavaScript, write the button order program.

I cannot seem to get this to work for some reason could somebody provide me a code to compare and test?

Reference no: EM13708716

Questions Cloud

Plot astronomical distances and path of celestial objects : I think that one of the most interesting fields where conic sections are applied is astronomy. As a welder, I had to cut ellipse-shaped holes into the side of tanks routinely.
Explain how the components of buffers maintain ph in body : The human body contains several systems that show buffering capabilities. Why would buffering actions be vital in these systems? Write chemical equations showing how the components of these buffers maintain pH in the body.
Why use asymptotic notation instead of running time : Why use asymptotic notation instead of running time or operation counts and when does it make more or less sense?
What components of atmosphere might cause distilled water : It was mentioned that you should not expect the pH of distilled water to be 7.00 as ordinary measured in the laboratory. What components of the atmosphere might cause distilled water in the laboratory to have a pH
Design an algorithm that asks for the user for the number : Design an algorithm that asks for the user for the number of fixed-price items to order, adds sales tax and flat-rate shipping, and displays the result.
What is the pressure when the volume of the gas : At 46c a sample of ammonia gas exerts an pressure of 5.3 atm. What is the pressure when the volume of the gas is reduced to one fourth of the original value at the same experiment
Display the complete fibonacci sequence : Display the complete Fibonacci sequence until you reach a value less or equal than 1,000,000 (one million) - display the division of the number by the previous one for the complete sequence.
What is the molecular weight of a nonelectrolyte : Question- What is the molecular weight of a nonelectrolyte if 5.0 g dissolved in 100.0 g of water has a freezing point of -0.25°C?
Calculate qrxn for 1 g of sodium metal and delta hrxn : Calculate qrxn for 1 g of sodium metal, and Delta Hrxn in (KJ ) for the reaction as written. Also, assume the density of water is 1.00g/mL throughout this temperature range and that the loss of H2O is minimal

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Create a shell script the count the number of files

Create a shell script that will calculate the number of files in your account hat were last modified five or more days ago and when you run the shell script,

  Create the algorithm to read information through file

Create the algorithm which will read through file and compute numbers of married men, single men, married women and single women.

  Design binary tree in ascii mode

Design the binary tree that the following allocations create. List the nodes in the order of their visit for an NLR scan.

  Inventory tracking database

Construct a relational database of your choice. The DB should contain no more than six tables. Define three business requirements that this database will provide.

  Identifying flaws in the design

Identify flaws in design of the Report of Consumers that follows. What assumptions about users and tasks did you make in order to assess this design?

  Entity relationship diagrams

Discuss why are Entity Relationship Diagrams an important initial stage in developing databases? Who would be the initial parties interacting to develop the ERDs?

  Write an algorithm that converts a decimal number

Write an algorithm that converts a decimal number between 0 and 15 into its 4 bit unsigned binary representation.

  Creating entity-relationship model

The manager for the Clearwater Traders wishes to collect the following information for each order placed by a consumer: consumer's name and address, item's size or color if applicable and the retail price of each item.

  Develop a solution for the problem and mention algorithms

Spaces between tokens are allowed but not required. The program will convert the (user input) infix expression to postfix (RPN) form and display the converted expression on the screen.

  Use ms project to complete a gantt chart

Gantt Chart: Use MS Project to complete a Gantt Chart that shows your work to date so far on this project based on the first two team submissions. This chart should show reasonable tasks, durations, and dependencies, look professional, and be prin..

  Draw a binary search tree for an array

Draw a binary search tree for an array of element from 0 to 20

  Input a list of employee names and salaries and determine

input a list of employee names and salaries and determine the meanaverage salary as well as the number of salaries

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