various maturity stages

The intructor comments:

Wrong implementation.

nextChar (‘X’ , ‘C’)

must be one of ‘X’, ‘Y’, ‘Z’, ‘A’, ‘B’, ‘C’

Below is the code for the function nextChar:

char nextChar(){

char c=(char)nextInt(65,90);            // ‘A’ to ‘Z’ ASCII code is 65-90 finding random ASCII code in this range

return c;

}

char nextChar(char low,char high){

int l=(int)low;

int h=(int) high;

char c=’A’;

if(l<h)

c=(char)nextInt(l,h);                    // finding random ASCII code between given range

else

c=(char)nextInt(h,l);

return c;

}

  • attachment

    week1-3Assignment1Discussion.pptx

WE HAVE HAD A GOOD SUCCESS RATE ON THIS ASSIGBNMENT. PLACE AN ORDER WITH SCHOLAR WRITERS AND GET 100% ORIGINAL PAPERS

Leave a Reply

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

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>