تم الحل ✓
categoryبرمجة وتطوير البرمجيات
schoolبكالوريوس
event_available2026-07-15
السؤال
Transcribed Image Text:
(histogram.cpp) Write a pseudocode and C++ program that reads numbers from an array (use another
function to initialize the array with random values between 1 and 20 inclusive) and graphs the information in
the form of a bar chart or histogram-each number is printed, then a bar consisting of that many asterisks is
printed beside the number. Here is a sample run of the program:
Value
12
Histogram
************
*****
***
****************
*******
Element
0
1
5
2
3
3
16
4
7
5
6
6
9
********
7
681
9
1
*
15
***************
**********
10
******
check_circle الجواب — حل مفصل خطوة بخطوة
hourglass_top
🔒
الحل الكامل متاح للمشتركين
اشترك في أرشيف الأسئلة لعرض هذا الحل وآلاف الحلول المفصلة خطوة بخطوة من معلمين معتمدين.