2. Where's the Biggest One?
by CodeChum Admin
We've already tried comparing 3 numbers to see the largest among all, so let's try a more complicated mission where we locate the position of the largest among 5 numbers. There are only 4 possible cases for this mission:
- if the largest digit is the first digit, print "Leftmost"
- if the largest digit is the third digit, print "Middle"
- if the largest digit is the last digit, print "Rightmost"
- if none of the above is correct, print "Unknown"
Now, show me how far you've understood your lessons!
Input
A line containing a five-digit integer.
1·4·6·3·2
Output
A line containing a string.
Middle
Create flowchart that will read the values of A & B. Compare the two values of A & B then print which of the values is higher including the remark "Higher".
Write a program which can read your name (separated by a space), and ensures that all the letters are capital (replacing the small letters with capital letters). In the presence of characters that do not belong to the alphabet (ä, ü ... 1, 2, ..., $, #, ...), the program returns an error message. indications: - You declare a string of character size 20: (char string [20];) - Note the difference between (scanf ( "% s", &string);) a (gets (string);) at the reading of a string that contains a space. - You can add the instruction (fflush(stdin);) That can empty the buffer in case of multiple readings. - To go from "a" to "A", we must subtract 32 ASCII (97-32 = 65). - chain [i-1] is the ith character of the string. - A string ends with the character '\0'
Write a function in this file called nine_lines that uses the function three_lines (provided below) to print a total of nine lines.
Now add a function named clear_screen that uses a combination of the functions nine_lines, three_lines, and new_line (provided below) to print a total of twenty-five lines. The last line of your program should call first nine_lines and then the clear_screen function.
you own a club on eerie planet. the day on this planet comprises of h hours. you appointed c crew members to handle the huge crowd that you get, being the best club on the planet. each member of the crew has fixed number of duty hours to work. there can be multiple or no crew members at work at any given hour of the day. being on weird planet, the rules of this club cannot be normal. each member of the crew only allows people who are taller than him to enter the club when he is at work. given the schedule of work and heights of the crew members, you have to answer q queries. each query specifies the time of entry and height of a person who is visiting the club. you have to answer if the person will be allowed to enter the club or not.
Check values in the Array is a String
https://drive.google.com/drive/folders/1kXJXOrjz0_j-RGv5nvMhCspFi0dH54LD?usp=sharing
Please fill the code in "write your code here"
They were just sample outputs. There are other test cases too which should be passed
Square at Alternate Indices
https://drive.google.com/drive/folders/1vXgw6-3c1Dq3ZuCh_NgesMayQmSLC_wb?usp=sharing
Please fill the code in "write your code here"
They were just sample outputs. There are other test cases too which should be passed
Array of Strings to UpperCase
https://drive.google.com/drive/folders/1vgGYsjWf_Nd2Ou4n7_Kl3QAizcaBfVos?usp=sharing
Please fill the code in "write your code here"
They were just sample outputs. There are other test cases too which should be passed
String Slicing
https://drive.google.com/drive/folders/1KPus4l0U5mppjMI4uysBd7nYyosJWCej?usp=sharing
Please fill the code in "write your code here"
They were just sample outputs. There are other test cases too which should be passed
Series of Operations
https://drive.google.com/drive/folders/1DdFpwKNXcblQ23MLLwVtX15M0gyNlkWY?usp=sharing
Please fill the code in "write your code here"
They were just sample outputs. There are other test cases too which should be passed