1) Write a program hot.c that prompts the user for a word and reads it into a 50-character array. If the word contains the lower-case letters ’h’, ’o’, and ’t’, in order though not necessarily consecutively, print “Hot”, otherwise print “Not”.EX: (˜)$ a.outWord: hotelierHot(˜)$ a.outWord: hypnotistHot(˜)$ a.outWord: shoplifTerNot(˜)$ a.outWord: PHILANThRoPIStHot(˜)$ a.outWord: philandererNot2. Write a program rotate.c that prompts the user for the size of a matrix and then for each of its rows. Rotate the matrix one notch clockwise around its center. Use a 2-dimensional array of the same size as the matrix, and make sure you rotate all elements correctly as in the size-4 example below.EX:a.outMatrix size: 1Row 1 digits: 9After clockwise rotation:9(˜)$ a.outMatrix size: 2Row 1 digits: 8 4Row 2 digits: 2 7After clockwise rotation:2 87 4(˜)$ a.outMatrix size: 3Row 1 digits: 5 0 4Row 2 digits: 7 3 5Row 3 digits: 4 1 2After clockwise rotation:7 5 04 3 41 2 5(˜)$ a.outMatrix size: 4Row 1 digits: 7 2 3 8Row 2 digits: 4 7 2 1Row 3 digits: 9 1 4 0Row 4 digits: 3 6 2 5After clockwise rotation:4 7 2 39 1 7 83 4 2 16 2 5 0Hint: Note that the matrix rotation consists of “circles” inside the matrix. These circle rotations can be performed separately, where each circle rotation can be accomplished by four loops, one for each side of the square. Also remember that when you move elements around, you may need to temporarily save one of the elements and then restore it.3.  Write a program escape.c that reads a 5 by 5 floor plan, one row at a time. Each row consists of ’#’, ’.’, and ’S’, where ’#’ represents a wall or an obstacle, ’.’ represents a clear location, and ’S’ represents a student who needs to escape the space. There is exactly one student on the whole floor, and he/she can walk horizontally or vertically, but not diagonally. Determine if the student can escape the building in case of fire. For a realistic view, after asking for “5X5 layout”, print a new line.EX: a.out5X5 layout:###.####.##S..###########Escape!(˜)$ a.out5X5 layout:#######S.##…###########Sorry.(˜)$ a.out5X5 layout:########.#S…###########Escape!(˜)$ a.out5X5 layout:########..#.S.####.####.#Escape!(˜)$ a.out5X5 layout:.###.#.#.##.S.#.##.#####.Sorry.Hint: One relatively simple approach is to iteratively consider the square and mark more and more locations that the student get reach. In the first iteration, consider the 3X3 interior of the square (ex-3cluding the boundary). If the student is in the interior, mark all its immediate neighbors that are free (namely ’.’, but not ’#’) as ’S’ (meaning the student can go there). Then repeat the process and in each subsequent iteration again consider just the 3X3 interior, and mark all neighbors of any ’S’ (either the original student, or those marked ’S’ in previous iterations) as ’S’ as well. It is easy to see that if the student can escape, then after a small number of iterations (you can figure out how many), there will be an ’S’ on the boundary, and you could check if that has occurred.




Why Choose Us

  • 100% non-plagiarized Papers
  • 24/7 /365 Service Available
  • Affordable Prices
  • Any Paper, Urgency, and Subject
  • Will complete your papers in 6 hours
  • On-time Delivery
  • Money-back and Privacy guarantees
  • Unlimited Amendments upon request
  • Satisfaction guarantee

How it Works

  • Click on the “Place Order” tab at the top menu or “Order Now” icon at the bottom and a new page will appear with an order form to be filled.
  • Fill in your paper’s requirements in the "PAPER DETAILS" section.
  • Fill in your paper’s academic level, deadline, and the required number of pages from the drop-down menus.
  • Click “CREATE ACCOUNT & SIGN IN” to enter your registration details and get an account with us for record-keeping and then, click on “PROCEED TO CHECKOUT” at the bottom of the page.
  • From there, the payment sections will show, follow the guided payment process and your order will be available for our writing team to work on it.