Answer:
hell yeah boi. ...................................
Answer:
Answer is provided in the attached screenshot
Explanation:
The character in the 2nd position will be always be the one we need to check. We then check if that character is a vowel, and replace the string as required.
Answer:
Explanation:
The underlined traits in the ER chart speak to essential key since they remarkably recognize the quality
(a)
(I) The level of the given relationship is 2 i.e it is a parallel connection among Book and Publisher. It is a one to numerous relationship from distributer to book in light of the fact that a distributer can distribute any number of books however a book will have only one publisher,so the cardinality will be 1 to 1..* (one to many)
(b)
(i) The degree of the given relationship is 2 i.e it is a binary relationship between Author and Book. It is a many to many relationship from Book to Author a book can be written by one or more authors and an author can write more than one book, so the cardinality will be 1..* to 1..* (many to many)
(c)
(i) As mentioned in part (b), the degree of given relation is 2 and cardinality is many to many (1..* to 1..*)
(d)
(i) The degree of the given relationship is 1 i.e unary relationship. It is a many to many relationship because one book can belong to any sets and a set can have any number of books, so cardinality is 1..* to 1..* (many to many)
Note: attached below is the image of various options to confirm the explanation (answer).
cheers i hope this helped !!!
I'm going to say a chart. I could be wrong. If the chart didn't have text with it- how do you know what the chart is for?
A map, it needs text, but these days people just use GPS's.
Answer:
Option D The negative number entered to signal no more input is included in the product
Explanation:
Given the code as follows:
- int k = 0;
- int prod = 1;
- while (k>=0)
- {
- System.out.println("Enter a number: ");
- k= readInt( );
- prod = prod*k;
- }
- System.out.println("product: "+prod);
The line 7 is a logical error. Based on the while condition in Line 3, the loop shall be terminated if k smaller than zero (negative value). So negative value is a sentinel value of this while loop. However, if user enter the negative number to k, the sentinel value itself will be multiplied with prod in next line (Line 7) which result inaccurate prod value.
The correct code should be
- int k = 0;
- int prod = 1;
- while (k>=0)
- {
- prod = prod*k;
- System.out.println("Enter a number: ");
- k= readInt( );
- }
- System.out.println("product: "+prod);