Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

pseudocode no c# or java just plain pseudocode: Registration workers at a confer

ID: 3819618 • Letter: P

Question

pseudocode no c# or java just plain pseudocode:

Registration workers at a conference for authors of children’s books have

Collected data about conference participants, including the number of books

Each author has written and the target age of their readers. The participants have

Written from 1 to 40 books each, and target readers’ ages range from 0 through 16.

Design a program that continuously accepts an author’s name, number of books

Written, and target reader age until a sentinel value is entered. Then display a list of

How many participants have written each number of books (1 through 40)?

(b.)    Modify the author registration program so that the output is a list of how many

Participants have written 1 to 5 books, 6 to 12 books, and 13 or more books.

(c.) Modify the author registration program so that the output is a count of the

Number of books written for each of the following age groups: under 3, 3 through

7, 8 through 10, 11 through 13, and 14 and older.

Explanation / Answer

Declare a structure to hold the Name of AUthor,Numberofbookswriiten and targetagegroup

structure authInfo{

var authorName
var noOfBooksEntered

var TargetGroup

}
step 2: Decalare a do...while loop where user will enter a sentinel value to stop the loop

int count =1,i=0
authInfo[] ai;
do{

print "Enter Authors Name";

read ai[count].authorName

print "Enter Number of Books Entered"
read ai[count].noOfBooksEntered

print "Enter age Group"
read ai[count].TargetGroup

print "Enter anyvalue to stop use sentitel value"
read i
count++;
}while(i%100==0);

for(int j=0;j<count;j++){

print a[j].authorName+" "+a[j].noOfBooksEntered+" "+a[j].TargetGroup;

}

:(b) to show how many books are written by participants

int 1o5=0,6o12=0,m13=0
for(int j=0;j<count;j++){

if(a[j].noOfBooksEntered>0&&a[j].noOfBooksEntered<=5){

1o5++

}
if(a[j].noOfBooksEntered>5&&a[j].noOfBooksEntered<=12){
6o12++
}
if(a[j].noOfBooksEntered>12){
m13++
}

}
print "1 to 5"+1o5+" "+"6 to 12"+6o12+" "+"more then 13"+m13

(c)

int U3=0,3to7=0,8to10=0,11to13=0.14ab=0
for(int j=0;j<count;j++){

if(a[j].TargetGroup>0&&a[j].noOfBooksEntered<=3){

U3++

}
if(a[j].TargetGroup>3&&a[j].noOfBooksEntered<=7){
3to7++
}
ifif(a[j].TargetGroup>7&&a[j].noOfBooksEntered<=10){
8to10++
}
if(a[j].TargetGroup>11&&a[j].noOfBooksEntered<=13){
11to13++
}
if(a[j].TargetGroup>14){
14ab++
}

}
print "U3="+U3+"3to7="+3to7+"8to10="8to10+"11to13="+11to13+"14ab="+14ab