Friday, May 15, 2020

Delphi String Handling Routines

The CompareText  function compares two strings without case sensitivity. Declaration:function  CompareText(const  S1, S2:  string):  integer; Description:Compares two strings without case sensitivity. The comparison is NOT case sensitive and does not consider the Windows locale settings. The return integer value is less than 0 if S1 is less than S2, 0 if S1 equals S2, or greater than 0 if S1 is greater than S2. This function is obsolete, i.e. it should not be used in new code - exists only for backward compatibility. Example: var s1,s2 : string; i : integer; s1:Delphi; s2:Programming; i: CompareText(s1,s2); //i Copy Function Returns a substring of a string or a segment of a dynamic array. Declaration:function  Copy(S; Index, Count: Integer):  string;function  Copy(S; Index, Count: Integer):  array; Description:Returns a substring of a string or a segment of a dynamic array.S is an expression of a string or dynamic-array type. Index and Count are integer-type expressions. Copy returns a string containing a specified number of characters from a string or sub array containing Count elements starting at S[Index]. If Index is greater than the length of S, Copy returns a zero-length string () or an empty array.  If Count specifies more characters or array elements than are available, only the characters or elements from S[Index] to the end of S are returned. To determine the number of characters in string, use the Length function. A convenient way to copy all the elements of S from the starting Index is to use  MaxInt  as Count. Example: var s : string; s:DELPHI; s : Copy(s,2,3); //sELP; Delete Procedure Removes a substring from a string. Declaration:procedure  Delete(var  S:  string; Index, Count : Integer) Description:Removes Count characters from a string S, starting at Index.  Delphi leaves the string unchanged if Index is not positive or greater than the number of characters after the Index. If Count is greater than the rest of the characters after the Index, the rest of the string is deleted. Example: var s : string; s:DELPHI; Delete(s,3,1) //sDEPHI; ExtractStrings Function Fills a string list with substrings parsed from a delimited list. Declaration:type  TSysCharSet   set of  Char;function  ExtractStrings(Separators, WhiteSpace: TSysCharSet; Content: PChar; Strings: TStrings): Integer; Description:Fills a string list with substrings parsed from a delimited list. Separators are a set of characters that are used as delimiters, separating the substrings, where Carriage returns, newline characters, and quote characters (single or double) are always treated as separators. WhiteSpace is a set of characters to be ignored when parsing Content if they occur at the beginning of a string. Content is the null-terminated string to parse into substrings. Strings is a string list to which all substrings parsed from Content are added. The function returns the number of strings added to the Strings parameter. Example: //example 1 - requires TMemo named Memo1 ExtractStrings([;,,], [ ], about: delphi; pascal, programming , memo1.Lines); //would result in 3 strings added to memo: //about: delphi //pascal //programming //example 2 ExtractStrings([DateSeparator], [ ], PChar(DateToStr(Now)), memo1.Lines); //would result in 3 strings: day month and year of the currnet date //for example 06, 25 ,2003 LeftStr Function Returns a string containing a specified number of characters from the left side of a string. Declaration:function  LeftStr(const  AString: AnsiString;  const  Count: Integer): AnsiString;overload;  function  LeftStr(const  AString: WideString;  const  Count: Integer): WideString;  overload; Description:Returns a string containing a specified number of characters from the left side of a string. AString represents a string expression from which the leftmost characters are returned. Count indicates how many characters to return. If 0, a zero-length string () is returned. If greater than or equal to the number of characters in AString, the entire string is returned. Example: var s : string; s : ABOUT DELPHI PROGRAMMING; s : LeftStr(s,5); // s ABOUT Length Function Returns an integer containing the number of characters in a string or the number of elements in an array. Description:function  Length(const S:  string): integerfunction  Length(const S:  array): integer Declaration:Returns an integer containing the number of characters in a string or the number of elements in an array.  For an array, Length(S) always returns Ord(High(S))-Ord(Low(S))1 Example: var s : string; i : integer; s:DELPHI; i : Length(s); //i6; LowerCase Function Returns a string that has been converted to lowercase. Description:function  LowerCase(const  S:  string):  string; Declaration:Returns a string that has been converted to lowercase.LowerCase only converts uppercase letters to lowercase; all lowercase letters and nonletter characters remain unchanged. Example: var s : string; s:DeLpHi; s : LowerCase(s); //sdelphi; Pos Function Returns an integer specifying the position of the first occurrence of one string within another. Declaration:function  Pos(Str, Source:  string):  integer; Description:Returns an integer specifying the position of the first occurrence of one string within another. Pos looks for the first complete occurrence of Str in Source. If it finds one, it returns the character position in Source of the first character in Str as an integer value, otherwise, it returns 0.Pos is case sensitive. Example: var s : string; i : integer; s:DELPHI PROGRAMMING; i:Pos(HI PR,s); //i5; PosEx Function Returns an integer specifying the position of the first occurrence of one string within another, where the search starts at a specified position. Declaration:function  PosEx(Str, Source :  string, StartFrom : cardinal 1):  integer; Description:Returns an integer specifying the position of the first occurrence of one string within another, where the search starts at a specified position. PosEx looks for the first complete occurrence of Str in Source, beginning the search at StartFrom. If it finds one, it returns the character position in Source of the first character in Str as an integer value, otherwise, it returns 0. PosEx also returns 0 if StartFrom is greater then Length(Source) or if StartPos is 0 Example: var s : string; i : integer; s:DELPHI PROGRAMMING; i:PosEx(HI PR, s, 4); //i1; QuotedStr Function Returns the quoted version of a string. Declaration:function  QuotedStr(const  S:  string):  string; Description:Returns the quoted version of a string. A single quote character () is inserted at the beginning and end of string S, and each single quote character in the string is repeated. Example: var s : string; s:Delphis Pascal; //ShowMessage returns Delphis Pascal s : QuotedStr(s); //ShowMessage returns Delphis Pascal ReverseString Function Returns a string in which the character order of a specified string is reversed. Declaration:function  ReverseString(const  AString :  string):  string; Description:  Returns a string in which the character order of a specified string is reversed Example: var s : string; s:ABOUT DELPHI PROGRAMMING; s:ReverseString(s); //sGNIMMARGORP IHPLED TUOBA RightStr Function Returns a string containing a specified number of characters from the right side of a string. Declaration:function  RightStr(const  AString: AnsiString;  const  Count: Integer): AnsiString;overload;function  RightStr(const  AString: WideString;  const  Count: Integer): WideString;overload; Description:Returns a string containing a specified number of characters from the right side of a string. AString represents a string expression from which the rightmost characters are returned. Count indicates how many characters to return. If greater than or equal to the number of characters in AString, the entire string is returned. Example: var s : string; s : ABOUT DELPHI PROGRAMMING; s : RightStr(s,5); // s MMING StringReplace Function Returns a string in which a specified substring has been replaced with another substring. Declaration:type  TReplaceFlags   set of  (rfReplaceAll, rfIgnoreCase); function  StringReplace(const  S, OldStr, NewStr:  string; Flags: TReplaceFlags):  string; Description:Returns a string in which a specified substring has been replaced with another substring. If the Flags parameter does not include rfReplaceAll, only the first occurrence of OldStr in S is replaced. Otherwise, all instances of OldStr are replaced by NewStr.  If the Flags parameter includes rfIgnoreCase, the comparison operation is case insensitive. Example: var s : string; s:VB programmers love About VB Programming site; s : ReplaceStr(s,VB,Delphi, [rfReplaceAll]); //sDelphi programmers love About Delphi Programming site; Trim Function Returns a string containing a copy of a specified string without both leading and trailing spaces and control characters. Declaration:  function  Trim(const  S:  string):  string; Description:  Returns a string containing a copy of a specified string without both leading and trailing spaces and non-printing control characters. Example: var s : string; s: Delphi ; s : Trim(s); //sDelphi; UpperCase Function Returns a string that has been converted to uppercase. Declaration:  function  UpperCase(const  S:  string):  string; Description:  Returns a string that has been converted to uppercase.UpperCase only converts lowercase letters to uppercase; all uppercase letters and nonletter characters remain unchanged. Example: var s : string; s:DeLpHi; s : UpperCase(s); //sDELPHI; Val Procedure Converts a string to a numeric value. Declaration:  procedure  Val(const  S:  string;  var  Result;  var  Code: integer); Description:Converts a string to a numeric value. S is a string-type expression; it must be a sequence of characters that form a signed real number. The Result argument can be an Integer or floating-point variable. Code is zero if the conversion is successful. If the string is invalid, the index of the offending character is stored in Code. Val does not heed the local settings for the decimal separator. Example: var s : string; c,i : integer; s:1234; Val(s,i,c); //i1234; //c0

Wednesday, May 6, 2020

Essay on Dyslexia - 917 Words

Some of us in the world may have problems with reading, spelling, and other academics. You might not know why they cannot read or spell as well as you can because they have a disorder. This disorder is called dyslexia. People with dyslexia struggle with: listening, reading, writing, spelling, and even handwriting. However, having dyslexia doesn’t mean that they are not intelligent. Some of the greatest minds in the world have or had dyslexia. One of the most fascinating reasons for dyslexia is the dominate ear. Even though they may be different doesn’t mean that they are stupid. (Hotz, Sollier) Dyslexia is a learning disorder that is linked with problems of reading, writing, and spelling. (Britannica Company) One in five†¦show more content†¦Children that read well can process word in four hundred milliseconds, but children with dyslexia take five hundred milliseconds or more. This makes them not read as well as others and as fast as other can. (Hotz) People with dyslexia are slow, but that doesn’t mean that they are not intelligent. I think that people with this disorder have the most creative and outgoing minds in the world. People with dyslexia may have intelligent levels over one hundred. Brilliant mind come with brilliant ideas. Athletes, writers, actors, and even characters have or had dyslexia. Here are some of the brilliant minds you may know: Albert Einstein, Thomas Edison, Benjamin Franklin, Mozart, John Lennon, Tom Cruise, Magic Johnson, and Walt Disney. All of these dyslexics have come to be some of the greatest minds and just look were that put them. Don’t put people with dyslexia down encourage then to go on because some day they could do great things for are world. (Sollier) This disorder is linked to genetics of the humans’ sixth chromosome. This genetic link runs in families. It may come for both or one side of the family. Test for dyslexia could lead to the gene. Scientist were wor king to find a test that could lead to a drug to get rid of the problem, but they found that only phonetics can help the student. (Talan) Dyslexics have problems with sounds out letters which makes it harder to read andShow MoreRelatedThe Effects Of Dyslexia On Children With Dyslexia Essay1347 Words   |  6 Pagesthe case. Students world-wide struggle with the learning disability known as dyslexia. Dyslexia is known for the way it twists words and numbers in ones’ head. It’s almost as if the persons’ mind is playing a trick on itself. The person might read the text backward or even say his or her thoughts backwards. Just because one has dyslexia does not mean that he or she cannot major in any specific major. Someone with dyslexia may choose which ever major he or she may like, although it will be harder forRead MoreEssay on Dyslexia1286 Words   |  6 PagesDyslexia Imagine your childhood. Now imagine sitting in school and dreading that one moment when your elementary school teacher is going to call on you to read aloud to the class. Imagine that you dread this moment so dearly because you constantly trip over simple words and are made to feel stupid because of it. Or worse, imagine knowing that you do try your hardest but still have report cards that say that you are not living up to your full potential and need to start making an effort in schoolRead MoreThe Effects Of Dyslexia On Children With Dyslexia3439 Words   |  14 Pagesto read, or to learn to read, would be able to, right? With Dyslexia, that is not the case. Dyslexia is described as the difficulty to comprehend language through reading and writing, despite a normal level of intelligence. Dyslexia is not only the most common learning disability, but is also highly recognized. There are three proposed distinctions within dyslexia that includes auditory, visual, and attentional. Unde rstanding dyslexia would help the educational community as long as the medical communityRead MoreDyslexia Essay2856 Words   |  12 PagesRunning head: Phonological Theory of Dyslexia Phonological Theory of Dyslexia Name Course Tutor Date Introduction Learning difficulties have been a common occurrence and there are many theories established to explain this disorder. Dyslexia, the common term for learning problems, affects a large part of the population and several studies have been carried out to determine the main cause of the disorder. Psychologists have been engaged in debate as to what theory bestRead MoreEssay on Dyslexia2537 Words   |  11 Pagesof the total American population is dyslexia ( Nosek 5). We will discuss the following issues and areas surrounding dyslexia: #61623; What is dyslexia? #61623; Causes of dyslexia. #61623; Two different terms to describe dyslexia. #61623; Characteristics of someone with dyslexia. #61623; The learning process. #61623; Three areas that are affected by the disability. #61623; Focusing and behavior. #61623; Misconceptions about dyslexia. #61623; Seeking help through organizationsRead MoreEssay on Dyslexia2503 Words   |  11 PagesDyslexia Growing, developing and learning are the facts of life for all children. Each day children are faced with many new concepts and various challenges. Can you imagine how it feels for a child to face not only new challenges life has, but to face these challenges while living with a learning disability? These challenges are met not just when they begin school either. Students suffer from learning disabilities from the moment they begin learning, not when they start school. Learning disabilitiesRead MoreDyslexia and life897 Words   |  4 PagesFor a long time, dyslexia has been causing many humans, especially children, to have learning difficulties. The World Federation of Neurologists define dyslexia as, a disorder in children who, despite conventional classroom experience, fail to attain the language skills of reading, writing, and spelling commensurate with their intellectual abilities (Dyslexia, 2013). Sometimes the letter m might look like w, and the number 3 might look like 8; dys lexia basically makes it harder for people toRead More dyslexia Essay857 Words   |  4 Pages The following paper discusses learning disorders, specifically, dyslexia, that are present within school age children between the ages of seven and twelve. During this age, most average children have the ability to read, write, spell, think, listen and do mathematical problems with minimal difficulties (Silver, 1993, p.109). On the other hand, children with learning disorders, specifically dyslexia, struggle to grasp these concepts because they have visual perception problems. When a child lacksRead MoreReflective Essay On Dyslexia1065 Words   |  5 PagesOverview Dyslexia is a learning disability which affects 1 in 5 people. As someone who lives with the challenge of dyslexia I have been subjected to people’s misunderstanding of the condition, their misjudgements and their prejudice. Not aware of the hidden challenges someone with dyslexia faces daily , I decided to write a stream of consciousness to allow readers to understand how debilitating and distressing the condition can be. KU3 Knowledge and understanding of ways in which texts are createdRead MoreEssay on Overcoming Dyslexia1472 Words   |  6 PagesOvercoming Dyslexia The teacher walked to the front of the room with her book in hand and as she got closer to the front, Paul got lower in his seat. He knew what was coming next; it was time for the class to read the next chapter. The teacher would start reading and then call on different students to read as they moved through the chapter. This scared Paul right down to his toes. He had read in front of the class before, but it was what followed after class that worried him the most. The

Tuesday, May 5, 2020

Internet of things Telehealth Project †MyAssignmenthelp.com

Question: Discuss about the Internet of things Telehealth Project. Answer: Introduction The internet of things, devices gathers and share data directly with each other and the cloud, hence making it possible in collecting, recording and analyzing of the new information stream faster and more quickly (Gubbi, Buyya, Marusic Palaniswami, 2013). This has created a new set of interest of the possibilities across the various industries. The internet of things has offered a great promise when it comes to the healthcare field, where the principles are being applied in order to improve on the access to the care, increase the quality and reduce on the cost of the care (Kopetz, 2011). The technology which has been underway and continues to be applied in the health care is the telehealth system which has delivered on the care to people particularly in the remote locations as well as monitoring the systems which, provide a continuous stream when it comes to accuracy of the data and better making of decision. Problem definition Over the years the access and the delivery of the healthcare has been poor particularly in the rural areas. The quality of the service has been slow and there has been pressure when it came to accessing of the healthcare system (Kopetz, 2011). As a result of this many healthcare organization felt there was need for a system which would help transform on the way the healthcare services has been provided that when they came with the Telehealth system which uses the application of the IOT (Kopetz, 2011). The telehealth has helped to transform on the way the healthcare services have been provided. Additionally, for the healthcare organization the care of the patient has been the highest priority, and the use of this system has proved to be groundbreaking particularly in the provision of the fast, high quality and convenient care services (Weber Weber, 2010). Telehealth can discover the alteration of the main care for example the design of the remote diagnosis in addition to the observations rooms, that permits the patients to be diagnosed via the video link and eventually it is observed remotely by the experts. Solutions with the features The telehealth application have continuously been evolving and it could be adapted to various situations. An example where the telehealth application could be applied would be in the renal care and the optometry which has been identified as an area. The patient who have been using the dialysis machine which could be identified remotely in their very own residences , and eye assessment which can be carried out by means of the video link (Stickland, Jourdain, Wong, Rodgers, Jendzjowsky MacDonald, 2011). The use of the telehealth system helps in the delivery of the better experience which will retain and attract the patients. The patients have a high satisfaction with the telehealth encounters since it provided a convenient after hours care options as well as it reduces on the wait times. Another feature it reduces on the hospital admission rate (Weber Weber, 2010). The admission rate in the hospital are big issue and they associated with the huge costs. Telehealth application could h elp reduce on the admission rate through enabling the doctors, or the care managers to see the patients over the video for the follow up care. Diagram to visualise the project The diagram below shows a telehealth system that uses the internet of things application. It clearly shows how the data flows from the personal health devices to the telehealth service centres to health records. Explanation of how it works The telehealth system is the remote exchange of the information between the patient at home and their clinicians in order to assist when it comes to the diagnosis as well as the monitoring typically that is used in the support of the patients who have a long term conditions (Pammer, Haney, Wood, Brooks, Morse, Hicks Jennett, 2001). The telehealth works through monitoring of the vital signs, for example the blood pressure, and transmit this data through the telephone line or perhaps to the broadband, to the telehealth tracking centre or maybe to the health care professional, in which it is then monitored against these types of parameters which are set by the individuals clinicians (Weber Weber, 2010). It is important to understand that it is comprised with a fixed or the mobile units which measures as well as monitors on the temperature, blood pressure and other vital signs parameters for the clinical review at the remote location through use of the wireless technology. Pros and Cons with brief explanation Pros The use of the telehealth application is cost efficient as it is less expensive as compared to the in-office visits, for both to the providers and the patients. Most of the telehealth application have an in built patient enrolment as well as scheduling features which are able to streamline the virtual appointment booking (Weber Weber, 2010). On the second benefit is that the application engages the patients get a better outcomes of patient. When the physician are able to check on the patient remotely enables them to reinforce the treatment adherence (Kopetz, 2011). This is a crucial part when it comes to preventing of the unnecessary hospital admission as well as maintaining on the health of the patient. Cons There are use of the telehealth regulations which differ from one state to another, and they could be difficult to decipher (Kopetz, 2011). A number of the medical professionals might not want to take the trouble with regards to figuring on what is necessary to satisfy the telemedicine guidelines in some of the state (Xia, Yang, Wang Vinel, 2012). Moreover, the use of these application could fall in the grey area of the security, and the physicians may worry that the privacy of the patient is not protected adequately. Another disadvantage of this application is that the physical examination can be limited. It was not until recent that the video communication technology was not advanced enough to allow the comprehensiveness of the medical care (Xia, Yang, Wang Vinel, 2012). Currently, most of the patients as well as the doctors have an ease access to this technology which allows a high quality video conferring. Nonetheless, to some of the doctors believe that a virtual appointment could be seen as not enough to be able to diagnose or treat the patient. Conclusion The use of the internet of thing technology is telehealth system enable to provide services which assist in the management of the long term health conditions of the patients. Telehealth application has the potential, personal contact which cannot be replaced. Moreover, telehealth technology is becoming of age as well as an effective measure which could be used to harness the new, affordable technology that has the potential of delivery of convenient, an effective care to the patients who are willing to embrace to it. References Gubbi, J., Buyya, R., Marusic, S., Palaniswami, M. (2013). Internet of Things (IoT): A vision, architectural elements, and future directions. Future generation computer systems, 29(7), 1645-1660. Kopetz, H. (2011). Internet of things. In Real-time systems (pp. 307-323). Springer US. Pammer, W., Haney, M., Wood, B. M., Brooks, R. G., Morse, K., Hicks, P., ... Jennett, P. (2001). Use of telehealth technology to extend child protection team services. Pediatrics, 108(3), 584-590. Stickland, M. K., Jourdain, T., Wong, E. Y., Rodgers, W. M., Jendzjowsky, N. G., MacDonald, G. F. (2011). Using Telehealth technology to deliver pulmonary rehabilitation to patients with chronic obstructive pulmonary disease. Canadian respiratory journal, 18(4), 216-220. Weber, R. H., Weber, R. (2010). Internet of things (Vol. 12). New York, NY, USA:: Springer. Xia, F., Yang, L. T., Wang, L., Vinel, A. (2012). Internet of things. International Journal of Communication Systems, 25(9), 1101.