Question: Would love the code for this QUESTION 4 (S MARKS) A document, which contains entry codes, has 7 entries per line and 22 lines on
Would love the code for this
QUESTION 4 (S MARKS) A document, which contains entry codes, has 7 entries per line and 22 lines on every page. Write a program which calculates the page number, the line number and position along the line of a given entry Name your program file 'YourUsernameA1Q4.", e.g., afer023A1Q4.. Below are the first three lines the program which initialise some of the variables(you will change the value assigned to the variable, entry_ to_find, when you test your program). Paste these three lines into you program. entries_perline7 lines_per page22 entry to_find6155 Please note that the first entry is Entry number 1 (not Entry number O), the first page in the document is page 1 (not page 0), the first line in the document is line 1 (not line 0) and that the first position in a line position 1 (not position 0). Below are four example outputs from the completed program (using differe numbers for the variable, entry_to find). Your program must give the correct output in the same format as the outputs in the five examples below: Entry number 652 is on Entry number 8 is on: Page: 5 Line: 6 Page: Line: 2 Position along line: 1 Position along line: 1 Entry number 154 is on: Page: 1 Line: 22 Position along line: 7 Entry number 155 is on: Page:2 Line: 1 Position along line: 1 Entry number 6155 is on: Page: 40 Line: 22 Position along line: 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
