230 FA18 CW2.pdf e 6rotificntinb e/bbcswebdav/pid 2196734-dt content-rid-5231209 2/courses/ELEC230 14597 Fall 2018/ELEC230 FA18 CW2 classwork 2, sec 01, 14-11-2018 Write a program that reads numbers continuously until -9999 is entered. Then the program displays info about each value: v1: int part, dec part, sign v2: int part, dec part, sign . etc The program should use the following functions: getIntPart( ): that takes one input and returns its integer part getDecPart( ): that takes one input and returns its decimal part getsign() that takes one input and returns its sign as a string which could be positive, negative, or neutral. /u FS FIO F7 F 5 96 % 5 6 0

230 FA18 CW2.pdf e 6rotificntinb e/bbcswebdav/pid 2196734-dt content-rid-5231209 2/courses/ELEC230 14597 Fall 2018/ELEC230 FA18 CW2 classwork 2, sec 01, 14-11-2018 Write a program that reads numbers continuously until -9999 is entered. Then the program displays info about each value: v1: int part, dec part, sign v2: int part, dec part, sign . etc The program should use the following functions: getIntPart( ): that takes one input and returns its integer part getDecPart( ): that takes one input and returns its decimal part getsign() that takes one input and returns its sign as a string which could be positive, negative, or neutral. /u FS FIO F7 F 5 96 % 5 6 0



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *