473,383 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Loop & variable

Hi all Im having difficulty with this problem please help or any advice would be nice
A hardware store needs to print new price tags for all of the merchandise in the store. The store has an inventory database that contains a record of each item in the store, it's quantity, and the retail price. The inventory database has the following fields:

File Name: Inventory
Fields:
Item number
Description
Quantity on hand
Retail price
Here are a few sample records from the inventory database:
Fields --> Item Number Description Quantity on hand Retail Price
Record 1 --> 6547 "Mail Box" 15 $25
Record 2 --> 9845 "#2 Screw Driver" 75 $60
Record 3 --> 1623 "Garden Hose" 26 $8


Write the pseudocode for a modularized program that will:
• Read each record from the inventory database
• Print a price tag for each item in inventory. For example, record 2 will require 75 tags.
• Count and print the total number of tags printed
• Sum and print the total retail value of the inventory in the store
Sep 18 '08 #1
1 1046
debasisdas
8,127 Expert 4TB
that seems to be an assignment /home work

kindly post what you have tried so far to continue discussion on the topic,
Sep 19 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Mahesh Kumar Reddy.R | last post by:
Hi Can any body resolve this.. In what cases one of the loop constructs better than other interms of speed , space and any other (redability). thanks mahesh
27
by: Daniel Vallstrom | last post by:
I'm having problems with inconsistent floating point behavior resulting in e.g. assert( x > 0.0 && putchar('\n') && x == 0.0 ); holding. (Actually, my problem is the dual one where I get...
4
by: D. Shane Fowlkes | last post by:
I've decided to send weekly emails to registered users ("members") on one of my sites. This will be the first time I attempted anything like this. Now I know I could use some 3rd party list...
11
by: Jeremy | last post by:
How can one stop a browser from converting & to & ? We have a textarea in our system wehre a user can type in some html code and have it saved to the database. When the data is retireved...
2
by: FP | last post by:
I have a javascript variable set to the contents of a database comments field. To set the js variable I used the PHP addslashes function which encodes the apostrophe, double quotes and the...
14
by: dawnerd | last post by:
Hi, I am developing a CMS and came across something which has never happened to me before, and I re-wrote the specific script twice, both differently, and still had the same error. I'm not sure...
14
by: Michael Moreno | last post by:
Hello, Would you know what is best practice please between say: CODE 1: TimeSpan ts; for (i=0; i<1000; i++) {
6
by: AMP | last post by:
Hello, I am trying to do the following with a loop because the amount of channels can change. uint Chan_1 = 0; uint Chan_2 = 0; uint Chan_3 = 0; uint Chan_4 = 0; uint Chan_5 = 0; uint Chan_6...
6
by: lukasso | last post by:
Hi, this is my code that should produce something like a timetable for a few days with each day divided into 30 minute pieces. It makes query from MySQL and then creates a 2d $array which then is to...
3
by: james.kirin40 | last post by:
Hi everyone, I am using Python's re module to extract some data from html. The following code never returns, and I was wondering if someone can explain to me why. Is this a problem with my...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.