Information Technology  >  SOLUTIONS MANUAL  >  Northern Virginia Community College Chapter 6 - Homework Solutions ITP 100 (All)

Northern Virginia Community College Chapter 6 - Homework Solutions ITP 100

Document Content and Description Below

8 Design a program that will produce the same report as in Problem 7, but, in addition, print at the end of the parts listing a count of all the records whose part number falls between AA3000 and AA39 ... 99, as well as a count of all records whose part numbers begin with the value ‘AA’. A Defining diagram Input Processing Output inventory records • record_code • part_no • part_desc • inventory_balance Read inventory record Validate inventory record Select inventory records Print selected records Calculate total_AA_records Calculate total_selected_records Print totals selected inventory records • record_code • part_no • part_desc • inventory_balance total_AA_records total_selected_records B Control structures required 1 A DOWHILE loop to control the repetition 2 IF statements to validate the inventory fields 3 An IF statement to select required records 4 Accumulators for total_selected_records, total_AA_records C Solution algorithm Process_inventory_records Set total_selected_records, total_AA_records to zero Read inventory record DOWHILE more records Set valid_record to true IF record_code NOT = 11 THEN valid_record = false ENDIF assign 1st 2 characters of part_no to alpha_part_no assign last 4 characters of part_no to numeric_part_no IF alpha_part_no NOT alphabetic THEN valid_record = false ENDIF IF numeric_part_no NOT numeric THEN valid_record = false ENDIF IF valid_record THEN IF (part_no >= AA3000 AND part_no <= AA3999) THEN Print inventory record add 1 to total_selected_records ENDIF [Show More]

Last updated: 2 years ago

Preview 1 out of 3 pages

Buy Now

Instant download

We Accept:

Payment methods accepted on Scholarfriends (We Accept)
Preview image of Northern Virginia Community College Chapter 6 - Homework Solutions ITP 100 document

Buy this document to get the full access instantly

Instant Download Access after purchase

Buy Now

Instant download

We Accept:

Payment methods accepted on Scholarfriends (We Accept)

Reviews( 0 )

$4.00

Buy Now

We Accept:

Payment methods accepted on Scholarfriends (We Accept)

Instant download

Can't find what you want? Try our AI powered Search

116
0

Document information


Connected school, study & course


About the document


Uploaded On

Apr 08, 2021

Number of pages

3

Written in

All

Seller


Profile illustration for Quiz Merchant
Quiz Merchant

Member since 4 years

146 Documents Sold

Reviews Received
30
3
3
0
5
Additional information

This document has been written for:

Uploaded

Apr 08, 2021

Downloads

 0

Views

 116

Document Keyword Tags


$4.00
What is Scholarfriends

Scholarfriends.com Online Platform by Browsegrades Inc. 651N South Broad St, Middletown DE. United States.

We are here to help

We're available through e-mail, Twitter, and live chat.
 FAQ
 Questions? Leave a message!


Copyright © Scholarfriends · High quality services·