6 A mobile phone has a touchscreen. The screen is represented by a grid, add to 80 rous 1280 The grid is represented by

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

6 A mobile phone has a touchscreen. The screen is represented by a grid, add to 80 rous 1280 The grid is represented by

Post by answerhappygod »

6 A Mobile Phone Has A Touchscreen The Screen Is Represented By A Grid Add To 80 Rous 1280 The Grid Is Represented By 1
6 A Mobile Phone Has A Touchscreen The Screen Is Represented By A Grid Add To 80 Rous 1280 The Grid Is Represented By 1 (42.76 KiB) Viewed 36 times
6 A Mobile Phone Has A Touchscreen The Screen Is Represented By A Grid Add To 80 Rous 1280 The Grid Is Represented By 2
6 A Mobile Phone Has A Touchscreen The Screen Is Represented By A Grid Add To 80 Rous 1280 The Grid Is Represented By 2 (42.76 KiB) Viewed 36 times
6 A mobile phone has a touchscreen. The screen is represented by a grid, add to 80 rous 1280 The grid is represented by a 20 artacean of type ECER. A anayement will be set to unless the user touches that part of the screen Many aray elements are set to 1 by a single touch of a finger or a stylus The following diagram shows a simplified touchscreen. The dark line represents a touch to the screen. All grid elements that are wholly or partly inside the outline will be set to 1. These cements are shaded The element shaded in black represents the centre point A program is needed to find the coordinates the row and column) of the centre point. The centre point on the diagram above is tow 6. columin 11 Assum the user may only touch one area at a time Screen rotation does not affect the touchscreen The programmer has started to define program modules as follows Module Description • Caled with three parameters of type TMTEGER - a row number SRO (generates test • the number of pixels to be skipped starting from column data) the number of pixels that should be set 101 • Sets the required number of pines to For example. Det 3. 6. 5 will give row 3 as in the diagram shown • Takes two parameters of type INTE a row number a start column (or 1280) SearchInow) Searches the given row from the start column (ether left to right or to for the first column that contains an element set to 1 Returns the column number of the first element in the given to that set 01 Retums - 1 no element is set to 1 • Takes two parameters of type TWEE a column number • a startow (1 or 800) Searchinco Searches the given column from the start row (either up or down for the first Tow that contains an element set to 1 Returns the row number of the first element in the given column that is set to 1 • Returns-1 no element is set to DULES 15 (a) Write pseudocode to implement the module SetRow
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply