loop problem :
while (company != 'S' || company != 's'){...code...}

this mean:
while the statement (company != 'S' || company != 's') is true execute the code

company!='S' means if company is not equal with S
company != 's' means if company is not equal with s
|| means or.if any of the statements is true execute the code.


lets see what happens if i enter S for company.
1) company!='S' ---->false
2) company != 's' ---->true
3) or --->true,continue executing the code.

solution
=========
&& means and.if both statements are true execute the code.
so from the above we get
while (company != 'S' && company != 's')