subject

Consider the following method checking whether a student has passing grades: public boolean ispassing(int finalexam, int cumulativeaverage) { /* missing code */ } a student can pass a class if one of the following is true: the final exam is at least 98 the cumulative average is over 60 which of the following correctly replaces /* missing code */ so that the method works as intended? i. if ((finalexam > = 98) || (cumulativeaverage > 60)) return true; return false; ii. boolean pass = false; if (finalexam > = 98) pass = true; if (cumulativeaverage > 60) pass = true; return pass; iii. if (finalexam > = 98 & & cumulativeaverage > = 60) return true; return false; 1. i only 2. ii only 3. i and ii only 4. ii and iii only 5. iii only

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
Need asap write a short paper describing the history and differences between six sigma, waterfall, agile, and scrum models. understanding these models can give you a good idea of how diverse and interesting it development projects can be. describe what the rationale for them is and describe their key features. describe the history behind their development. at least 400 words
Answers: 1
question
Computers and Technology, 23.06.2019 19:00
This question involves a class named textfile that represents a text file. public class textfile { private string filename; private string filename; private arraylist words; // constructors not shown // postcondition: returns the number of bytes in this file public int filesize() { } // precondition: 0 < = index < words.size() // postcondition: removes numwords words from the words arraylist beginning at // index. public void deletewords(int index, int numwords) { } // precondition: 0 < = index < = words.size() // postcondition: adds elements from newwords array to words arraylist beginning // at index. pub lic voidaddwords(int index, string[] newwords) { } // other methods not shown } complete the filesize() method. the filesize() is computed in bytes. in a text file, each character in each word counts as one byte. in addition, there is a space in between each word in the words arraylist, and each of those spaces also counts as one byte. for example, suppose the words arraylist stores the following words: { mary had a little lamb; its fleece was white as snow. } the filesize() method would compute 4 + 3 + 1 + 6 + 5 + 4 + 6 + 3 + 5 + 2 + 5 as the sum of the lengths of each string in the arraylist. the value returned would be this sum plus 10, because there would also be 10 spaces in between the 11 words. complete the filesize() method below: // postcondition: returns the number of bytes in this file public int filesize() { }
Answers: 1
question
Computers and Technology, 23.06.2019 20:30
If chris has a car liability insurance, what damage would he be covered for
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
Which one of the following functions is not available on the autosum tool? sum average if max
Answers: 3
You know the right answer?
Consider the following method checking whether a student has passing grades: public boolean ispassi...
Questions
question
Mathematics, 10.12.2020 03:10
question
Mathematics, 10.12.2020 03:10
question
Spanish, 10.12.2020 03:10
Questions on the website: 13722367