Produce a c program to calculate the total price for order

Assignment Help C/C++ Programming
Reference no: EM13760121

Question 7
Your friend has just opened a computer appliances shop at Changloon. He asked your help to develop a computer program which can be used at the counter. Your program should be able to input the customer's order which could be more than one item. Produce a C program to calculate the total price for the order. 

You must implement array in your program. The program must have at least one function to calculate the total price of the order.

Use the price from Table 7 for the calculation.


Table 7

itemNo. Items Price
1. Hewlett Packard laptop RM 3999
2. Longitech Optical Mouse RM 31.80
3. Lenovo laptop RM 4400
4. Acer laptop RM 1999
5. Samsung Tablet RM 1499
6. Apple Tablet RM 2333
7. Memory card Altek RM 79.00
8. Portable Hardisk 260GB RM 280
9. Portable Hardisk 80GB RM 150
10. Pendrive 4GB RM19.00 

Reference no: EM13760121

Questions Cloud

Microsoft project file work breakdown structure : Update the Microsoft Project file you created in (Work Breakdown Structure) with the following changes.
Write a brief description of phonemic awareness and syntax : write a brief description of Phonemic awareness, Concepts about print, Letter knowledge, Knowledge of alphabetic principle and Syntax.
Identify possible actors and use cases : 1. Identify possible actors and use cases involved in Personal Trainer's operations. 2. Create an object relationship diagram for the Personal Trainer information system.
Use a cluster architecture to provide rapid scalability : Describe how you might use a cluster architecture to provide rapid scalability for a Web-based company experiencing rapid growth?
Produce a c program to calculate the total price for order : Your friend has just opened a computer appliances shop at Changloon. He asked your help to develop a computer program which can be used at the counter. Your program should be able to input the customer's order which could be more than one item. Produ..
The owner of a hardware store and need to keep an inventory : You are the owner of a hardware store and need to keep an inventory that can tell you what tools you have, how many you have and the cost of each one. Write a C program to create a file named storage.dat and write the data shown in the Table 1 into t..
What does victory-and failure-say about a person : What does victory-and failure-say about a person and their quest?
Main burst in manhattan and flooded the building : An underground water main burst in Manhattan and flooded the building where Acme Inc. has an electricity supply substation. A fire resulted and disrupted electric power for four days. This occurred during the biannual "Buyers Week," when merchandiser..
Write a journal on a quotation related to buddhism : Write a Journal on a quotation related to Buddhism.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Prepare a program in c++ using the class as defined

Prepare a program in C++ using the class as defined below - Then write the main program in another file that will read in some numbers and test out whether your functions all work.

  Create a template class

Create a template class, SVector, that implements a constructor

  Create a function that subtracts two vectors

Create a function in C++ that subtracts two vectors - prepare a program to subtract two vectors and provide all the code.

  Declare and define constructor

Declare and define constructors and Declare and define destructors - Describe what is an attribute or data member of a class

  In psuedocode, design an application

In psuedocode, design an application that has an array of at least 20 integers. It should call a module that uses the sequential search algorithm to locate one of the values

  This function should accept a two-dimensional

getLowestInRow. This function should accept a two-dimensional array as its argument and an integer as its second argument. The second argument should be the subscript of a row in the array. The function should return the lowest value in the specif..

  Two types of constructors

Explain what constructors do and when they are executed. Explain the two types of constructors. Provide an example class that includes both types of constructor functions and demonstrate how an object would be instantiated using both types of constru..

  Sockets for this problem you will implement a client-server

sockets for this problem you will implement a client-server version of the rock-paper-scissors-lizard-spock game which

  To deal with deadlocks we can either use prevention or

to deal with deadlocks we can either use prevention or avoidance or detection followed by recovery. but which is a

  Afunction that raises an integer to a positive integer

Write a function that raises an integer to a positive integer power. Call the function x_to_the_n, taking two integer arguments x and n.

  Calculate the modified value of the first character of input

To calculate the modified value of the first character of input we add its mapped value to the mapped value from the first character of the encryption string.

  Write a program that inputs two characters

Write a program that inputs two characters from the keyboard and passes them to function packCharacters.

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