Post: CIS 101 Homework Flow Chart need help
03-14-2013, 08:34 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Flowchart Assignment

The Problem:
You have a file that contains records of vehicles; your supervisor wants a count of the
different vehicles found on the file and the percentage ratio of each.
There is a code on each record that indicates the type of vehicle, the codes are:

A = automobile
T = trucks
B = buses
M = motorcycles
O = other

The output should be a count for each type of vehicle and the percentage of the total.
Example: automobiles: 25 14%
Trucks 30 15%

Use the symbols in the handout and from the book to create a flowchart
to count and calculate the vehicle percentages.

How do I create a flow chart with NO given numbers or anything? I am so confused please help out ASAP!!

---------- Post added at 08:34 PM ---------- Previous post was at 08:31 PM ----------

Can anyone help me PLEASE?!?!
(adsbygoogle = window.adsbygoogle || []).push({});
03-18-2013, 04:30 AM #2
Izl
Do a barrel roll!
What kind of file is it?
I haven't done flow charts in forever so i'll just say what i'd do.

declare 5 variables (cars, trucks, busses, etc) that equal 0.

read 1st vehicle
- if A, add 1 to 'cars'
- if T, add 1 to 'trucks'
- if B, add 1 to 'busses'
etc

then read the next vehicle. keep going until there are no vehicles.

at the end you'll have 5 variables with numbers corresponding to how many there are, ex:
cars = 4
trucks = 2
busses = 1
etc

just add them up and divide for the percentage

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo