Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

project is to make a horizontal and vertical histogram in Cusing videostudio. im

ID: 3608900 • Letter: P

Question

project is to make a horizontal and vertical histogram in Cusing videostudio. im trying to make the x and y axis with numbers.i figured out how to do the y axis for the horixontal but thevalues start at 0 then go down increasing instead of highest valueto 0. and i have no idea how to do the x-axis help please mine does this 0| 1| 2| 3| 4| 5| should look like this 7| 6| 5| 4| 3| 1|    ______________________    0 1 2 3 4 5 6 7 8 9 0 1                                               1 1 let me know if my code is needed     project is to make a horizontal and vertical histogram in Cusing videostudio. im trying to make the x and y axis with numbers.i figured out how to do the y axis for the horixontal but thevalues start at 0 then go down increasing instead of highest valueto 0. and i have no idea how to do the x-axis help please mine does this 0| 1| 2| 3| 4| 5| should look like this 7| 6| 5| 4| 3| 1|    ______________________    0 1 2 3 4 5 6 7 8 9 0 1                                               1 1 let me know if my code is needed    

Explanation / Answer

please rate - thanks #include<stdio.h>
#include <conio.h>
int main()
{int i,maxx,maxy,x,y;
printf("Enter the largest value for the y axis: ");
scanf("%d",&maxy);
printf("Enter the largest value for the x axis: ");
scanf("%d",&maxx);
for(i=maxy;i>0;i--)
    printf("%2d| ",i);
printf(" ");
for(i=0;i<=maxx;i++)
    printf("__");
printf("    ");
for(i=0;i<=maxx;i++)
    printf("%d ",i%10);
printf("    ");
for(i=0;i<=maxx;i++)
     if(i<10)
        printf(" ");
     else
        printf("%d",i/10);   
getch();
}