Lost Password?

Go Back   CodeCall Programming Forum > Software Development > Visual Basic Programming

Visual Basic Programming Discussion forum for Visual Basic, an event driven programming language and associated development environment from Microsoft for its COM programming model.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-11-2008, 01:19 PM
Rjog Rjog is offline
Newbie
 
Join Date: May 2008
Posts: 1
Rep Power: 0
Rjog is on a distinguished road
Default Modules Help!!

hey so im in a introduction to scripting class and im totally lost any help would be great just to show me an example of what this would look like and any tricks heres the problem




Apply your knowledge of modules and database file processing.

Part A. A pet store maintains an inventory database of all of the items in the shop. The shop manager wants a report that details the profit value of each inventory item on hand. The database contains the following fields:

File name: Inventory
Fields:
Stock Number
Description
Wholesale price
Retail Price

Here are a few sample records from the inventory database:
Fields --> Stock Number Description Wholesale price Retail Price
Record 1 --> 1234 "Dog Bone" $5 $10
Record 2 --> 3451 "Gold Fish" $2 $4
Record 3 --> 5643 "Fish Food" $2.50 $5
Write the pseudocode for a modularized program that will:

* Read each record from the inventory database
* Compute the profit for each record
* Print the record item's description, retail price and profit amount

Be sure to:

* Include a comment at the beginning of each module that describes the purpose of that module. A line containing a comment should begin with a single-quote (').
* Choose descriptive module and variable names
* Properly format your pseudocode (indentation)
* Use a structured loop to read the records

Last edited by Rjog; 05-11-2008 at 01:22 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 05-11-2008, 03:28 PM
Xav's Avatar   
Xav Xav is offline
Guru
 
Join Date: Mar 2008
Location: London, England
Posts: 3,069
Last Blog:
Reading Jet Databases ...
Rep Power: 27
Xav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to all
Send a message via MSN to Xav
Default Re: Modules Help!!

Um - so why would you need a module?
__________________
Xav, the power of youth
Worship the Creator... not his creations
Web Site | Beta Site
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Joomla! Tutorial #2: Joomla! Extensions takercena Tutorials, Classes and Code 0 02-22-2008 09:54 PM


All times are GMT -5. The time now is 01:01 AM.

Contest Stats

dargueta ........ 93.00000
John ........ 87.50000
Xav ........ 70.00000
MeTh0Dz ........ 20.00000
gaylo565 ........ 18.00000
Johnnyboy ........ 3.00000

Contest Rules

Ads