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

SPTL You have been hired by a company that makes keyboards. The company is doing

ID: 3858291 • Letter: S

Question

SPTL You have been hired by a company that makes keyboards. The company is doing a test to see which keys on the keyboard are used the most and the least. The assumption is the keys used the most will have to have better hardware and the keys used the least can have cheaper hardware. In order to be competitive in the marketplace, it is important to obtain data on the use of the keys on the keyboard The program will have the following menu: 1. Type up to 100 characters from the keyboard 2. Display how many of each key that has been pressed (in order from high to low) 3. Display the key that have never been pressed 4. Display the key that has been pressed the most 5. Quit 1. Design tool 2. Program look and feel and layout 3. Use of Functions (program should be written using individual functions) 4. Use of Arrays 5. Passing the array to a function to store characters from the keyboard 6. Sorting the Array Function

Explanation / Answer

NOTE: Please check the code and let me know if you face any issues. I will revert back within 24 hours.

Code:
http://pasted.co/9323f15d

Since output is bigger than screen size i am copying the output here.

Execution and output:
Unix Terminal> cc key_check.c
Unix Terminal> ./a.out

====================
Keys Calculator Menu
====================
1. Type up to 100 characters from the keyboard
2. Display how many of each key that has been pressed(in order from high to low)
3. Display the key that have never been pressed
4. Display the key that has been pressed the most
5. Quit
Enter your choice? (1/2/3/4/5) 1

Start typing upto 100 characters without space and press enter to Stop...
lksajflkasjfdlasjflas;fjals;kfjaslk;fjas;lkfjaslk;fjasl;fkjsalf;kjasdfl;kjasfpiuo3qprwoqputqpoetyqerotipuyqpotuyqertvxnfznx,v.nsv,mnav,.nds,.mndsf,.mnds,.nds,m.n,mv.xzbz,.vbz,.z223094820-4280-4892530-90967523476109626=86-020-48672067813

====================
Keys Calculator Menu
====================
1. Type up to 100 characters from the keyboard
2. Display how many of each key that has been pressed(in order from high to low)
3. Display the key that have never been pressed
4. Display the key that has been pressed the most
5. Quit
Enter your choice? (1/2/3/4/5) 2

Keys with number of times they are pressed are:
s=17
f=14
a=13
j=11
l=11
k=9
n=9
0=9
2=9
.=9
;=8
6=7
d=6
p=6
q=6
v=6
8=6
m=5
o=5
t=5
z=5
3=5
4=5
9=5
-=5
u=4
7=4
e=3
r=3
x=3
y=3
b=2
i=2
1=2
5=2
w=1
==1
=1

====================
Keys Calculator Menu
====================
1. Type up to 100 characters from the keyboard
2. Display how many of each key that has been pressed(in order from high to low)
3. Display the key that have never been pressed
4. Display the key that has been pressed the most
5. Quit
Enter your choice? (1/2/3/4/5) 3

Keys not Pressed are:

c = 0
g = 0
h = 0
A = 0
B = 0
C = 0
D = 0
E = 0
F = 0
G = 0
H = 0
I = 0
J = 0
K = 0
L = 0
M = 0
N = 0
O = 0
P = 0
Q = 0
R = 0
S = 0
T = 0
U = 0
V = 0
W = 0
X = 0
Y = 0
Z = 0
~ = 0
! = 0
@ = 0
# = 0
$ = 0
% = 0
^ = 0
& = 0
* = 0
( = 0
) = 0
_ = 0
+ = 0
` = 0
/ = 0
< = 0
> = 0
? = 0
: = 0
" = 0
' = 0
{ = 0
[ = 0
} = 0
] = 0
| = 0
====================
Keys Calculator Menu
====================
1. Type up to 100 characters from the keyboard
2. Display how many of each key that has been pressed(in order from high to low)
3. Display the key that have never been pressed
4. Display the key that has been pressed the most
5. Quit
Enter your choice? (1/2/3/4/5) 4

Key that has been pressed the most are: s = 17
====================
Keys Calculator Menu
====================
1. Type up to 100 characters from the keyboard
2. Display how many of each key that has been pressed(in order from high to low)
3. Display the key that have never been pressed
4. Display the key that has been pressed the most
5. Quit
Enter your choice? (1/2/3/4/5) 5