Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 3 Iteration and Arrays Display Bar chartInformation is often easier to digest when it is displayed graphically, with the bar chart beingone of the

Task 3 Iteration and Arrays Display Bar chartInformation is often easier to digest when it is displayed graphically, with the bar chart beingone of the most popular.For example, consider a local education authority that wishes to record how well all thestudents who have studied in the local area have performed at A level.The names of each bar should be stored in one array, the corresponding values are stored inanother array.caption array:A*ABCDEvalue array:501001201206010Here we see that 50 students obtained an A* whereas 10 students received an E. In this casethe captions are the Grades and the values are the student numbers.Write a program that displays this information where a bar of + symbols represent the valuesas follows:A*++++++++++++++++A +++++++++++++++++++++++++++++++++B ++++++++++++++++++++++++++++++++++++++++C ++++++++++++++++++++++++++++++++++++++++D ++++++++++++++++++++E +++The maximum length of a bar is 40. You will first need to find the largest value in the arrayand set this to 40. All other bars should be proportional in length. For example, for the barcorresponding to D the length is 20.Creat a flowgorithm

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions