Patients with heart failure have extended lengths of stay an…

Questions

Pаtients with heаrt fаilure have extended lengths оf stay and are оften readmitted shоrtly after they have been discharged. To improve quality of care, a type of “road map” that includes all elements of care for this disease and standardized treatment to guide daily care is implemented. This road map is referred to as a 

Yоu must cоmplete this withоut tаlking or chаtting or emаiling or contacting or asking for help from other people. You may not use AI tools. You may use your books, labs, or resources on your computer etc. You may not use online resources (unless you are using your book or look up the slides). Everything you do must be on your computer's screen (so no phones).   In this final, you will be manipulating a grid. You may assume the user will enter correct input (unless it is noted you must account for something specific below). Read data that makes up a grid from a file The file must be named test.txt First two numbers in the file are the sizes of grid. The first number is the X size (so how many spots across), the second value is the Y size (how many spots down). After the sizes, the rest of the file is filled with VALUE X Y For each triple, you put the VALUE at place X, Y in the grid. Example file: (here the sizes are 5 and 5. An X should be placed at 0,0 and a Y should be placed at 4,1. See the example printout below). But the value (where the X and Y currently is) could be any single character. 5 5X 0 0Y 4 1 Spots that are not filled by the input are given dashes. Print out the contents in a grid. For the example file, the output should be X - - - - - - - - Y - - - - - - - - - - - - - - - NOTE: Your array might be transposed once you print out the data. If you cannot figure it out quickly why that is, continue on and come back. A transposed print is worth a lot less than the rest of the exam. Repeatedly loop over a menu. Options in the menu: Query a value if given the indexes. Here the user inputs an X and Y and you print out the value present at the spot. Tell the user there is nothing present if it is filled with a - . Add a value, number, number to a spot. (size of the 2d array won’t change). Ensure the value is only 1 character long. Here the user enters in a VALUE, and X, and a Y and you fill (or replace) that spot in the grid. Print the grid. Print out how many times a particular value is in the grid Here the user enters in a VALUE and you tell them how many times it is in the 2D array. Example run (using the previous example input file. NOTE: your program must account for any number of (VALUE, X, Y) triples in the file and the Xsize and Ysize can be different can also be different from the exam.). Initial Print: X - - - -- - - - Y- - - - -- - - - -- - - - -1. Give the value at a spot in the grid2. Add (or replace) a spot in the grid3. Print the grid4. determine how many of a particular thing are in the gridAny other value exits.Please enter your choice:>>1Please enter indexs:x from 0 and 4y from 0 and 4>> 1 4- is at spot 1 41. Give the value at a spot in the grid2. Add (or replace) a spot in the grid3. Print the grid4. determine how many of a particular thing are in the gridAny other value exits.Please enter your choice:>>1Please enter indexs:x from 0 and 4y from 0 and 4>> 4 1Y is at spot 4 11. Give the value at a spot in the grid2. Add (or replace) a spot in the grid3. Print the grid4. determine how many of a particular thing are in the gridAny other value exits.Please enter your choice:>>2What do you wish to add?>> IPlease enter indexs:x from 0 and 4y from 0 and 4>> 1 21. Give the value at a spot in the grid2. Add (or replace) a spot in the grid3. Print the grid4. determine how many of a particular thing are in the gridAny other value exits.Please enter your choice:>>3X - - - -- - - - Y- I - - -- - - - -- - - - -1. Give the value at a spot in the grid2. Add (or replace) a spot in the grid3. Print the grid4. determine how many of a particular thing are in the gridAny other value exits.Please enter your choice:>>2What do you wish to add?>> IPlease enter indexs:x from 0 and 4y from 0 and 4>> 1 31. Give the value at a spot in the grid2. Add (or replace) a spot in the grid3. Print the grid4. determine how many of a particular thing are in the gridAny other value exits.Please enter your choice:>>3X - - - -- - - - Y- I - - -- I - - -- - - - -1. Give the value at a spot in the grid2. Add (or replace) a spot in the grid3. Print the grid4. determine how many of a particular thing are in the gridAny other value exits.Please enter your choice:>>4What do you wish to search for?>>IWe found 2 of I1. Give the value at a spot in the grid2. Add (or replace) a spot in the grid3. print the grid4. determine how many of a particular thing are in the grid Any other value exits...Please enter your choice:>>q

Multiply.4 × 2