introduction computingintroduction computing Question 1 Write Sample input/output (inputs are underlined): Enter a string: Smile! You are a CS student. Aren’t you? Letters which occurred 3 times or more are: a, e, s, t, u Question 2 A sequence of n > 0 integers is called a jolly jumper if the absolute values of the difference between successive elements take on all the values 1 through n-1. For instance, 1 4 2 3 is Input Each line of input contains an integer n <= 3000 followed by n integers representing the sequence. Output For each line of input, generate a line of output saying “Jolly” or “Not jolly”. Sample Input 41423 5 1 4 2 -1 6 Sample Output Jolly Not jolly Question 3 Using Introduction to Computing Before submitting your assignment, read the following instructions carefully: 1.Submit 2.The assignment should be uploaded to the portal (follow the TA’s instructions). Do NOT submit the assignment by email. 3.Assignments which are not uploaded to the portal will NOT be accepted. 4.Give a representative name for your .cpp file “e.g. question1.cpp”. 5.Deadline is firm (11:55 pm of the due date). It will NOT be postponed. 6.Copied assignments will be evaluated to ZERO. 7.Whenever you have any question or need any clarification, PLEASE ask ME or ask our TA. |
need help please computer science

0 comments