Skip to content
View in the app

A better way to browse. Learn more.

BenLotus

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

COURSEHERO - UNLOCKING - SERVICES

Featured Replies

  • Author
Just now, andreiii said:

Hello! Here is the unlock @andreiii

 

Answer & Explanation

 

 

1

 

 

 

public class Exercise09 {

 

public static int maxInRange(int[] arr, int lowIndex, int highIndex) {

 if (lowIndex == highIndex) {

  return arr[lowIndex];

 }

 int midIndex = (lowIndex + highIndex)/2;

 

 int val1 = maxInRange(arr, lowIndex, midIndex);

 int val2 = maxInRange(arr, midIndex+1, highIndex);

 

 if (val1 > val2) {

  return val1;

 } else {

  return val2; 

 } 

}

 

public static int max(int[] arr) {

 return maxInRange(arr, 0, arr.length-1); 

}

 

public static int findInRange(int[] arr, int target, int lowIndex, int highIndex) {

 if (lowIndex == highIndex) {

  if (arr[lowIndex] == target) {

   return lowIndex;

  }

  else {

   return -1; 

  }

 }

 

 int midIndex = (lowIndex + highIndex)/2;

 int val1 = findInRange(arr, target, lowIndex, midIndex);

 if (val1 >= 0) {

  return val1;

 } 

 return findInRange(arr, target, midIndex + 1, highIndex);

}

 

public static int find(int[] arr, int target) {

 return findInRange(arr, target, 0, arr.length-1); 

}

}

 

 

Step-by-step explanation

2

 

public class OddSum {
public static int oddSum(int n) {
   if (n == 1) {
       return 1;
   } else {
       return (n % 2 != 1) ? oddSum(n - 1) : oddSum(n - 1) + n;
   }
}
} else {
           if (n == 0) {
               System.out.println(totalSum);
               return totalSum;
           } else {
               return oddSum(n - 1);
           }
       }
   }

   public static void main(String[] args) {
       oddSum(13);
   }
}

 

3

 

you can get help from 

 

 

 

https://www.coursehero.com/file/p661hvt/public-static-int-banana-int-a-int-grape-0-int-i-0-while-i-alength-grape-grape/

 

for 3 and 4

 

 

-------------------

You might need the referred file so I unlock this for you ^^

 

↓↓↓↓

 

thinkapjava.pdf

1 minute ago, snorlax said:

Hello! Here is the unlock @andreiii

 

Answer & Explanation

 

 

1

 

 

 

public class Exercise09 {

 

public static int maxInRange(int[] arr, int lowIndex, int highIndex) {

 if (lowIndex == highIndex) {

  return arr[lowIndex];

 }

 int midIndex = (lowIndex + highIndex)/2;

 

 int val1 = maxInRange(arr, lowIndex, midIndex);

 int val2 = maxInRange(arr, midIndex+1, highIndex);

 

 if (val1 > val2) {

  return val1;

 } else {

  return val2; 

 } 

}

 

public static int max(int[] arr) {

 return maxInRange(arr, 0, arr.length-1); 

}

 

public static int findInRange(int[] arr, int target, int lowIndex, int highIndex) {

 if (lowIndex == highIndex) {

  if (arr[lowIndex] == target) {

   return lowIndex;

  }

  else {

   return -1; 

  }

 }

 

 int midIndex = (lowIndex + highIndex)/2;

 int val1 = findInRange(arr, target, lowIndex, midIndex);

 if (val1 >= 0) {

  return val1;

 } 

 return findInRange(arr, target, midIndex + 1, highIndex);

}

 

public static int find(int[] arr, int target) {

 return findInRange(arr, target, 0, arr.length-1); 

}

}

 

 

Step-by-step explanation

2

 

public class OddSum {
public static int oddSum(int n) {
   if (n == 1) {
       return 1;
   } else {
       return (n % 2 != 1) ? oddSum(n - 1) : oddSum(n - 1) + n;
   }
}
} else {
           if (n == 0) {
               System.out.println(totalSum);
               return totalSum;
           } else {
               return oddSum(n - 1);
           }
       }
   }

   public static void main(String[] args) {
       oddSum(13);
   }
}

 

3

 

you can get help from 

 

 

 

https://www.coursehero.com/file/p661hvt/public-static-int-banana-int-a-int-grape-0-int-i-0-while-i-alength-grape-grape/

 

for 3 and 4

 

 

-------------------

You might need the referred file so I unlock this for you ^^

 

↓↓↓↓

 

thinkapjava.pdf 1.5 MB · 0 downloads

THANK YOU!!!

  • snorlax locked this topic
  • snorlax unlocked this topic
  • Author
58 minutes ago, Bomb said:

Here is the unlock ^^ @Bomb

 

Answer & Explanation

 

1. The company can purchase the patent. The patent does not require prototypes to be submitted in the patent office or DTI(dept of trade and industry) but it will be valuable for the product to undergo prototyping. This product underwent prototyping because it was able to forecast a 75% probability in manual use. An inventor would not risk to sell his product to a big company if the product is low in viability,and not feasible to work. Product analysis before acquiring the product should be in place before advising it to buy. If the product is not feasible you can always back out not to purchase it. Good engineers will know immediately by just looking at the product if it can be develop. The product should be seen by the engineers and new products team.

 

 

2. It is better to purchase the manual system. You can easily adjust and make modifications if it is manual. If electronic system it is common they won't give the source code and the secrets of programming so you can come back to them for a service fee.

 

 

3. ILY Construction should not proceed with the proposal because the feasibilty of success is low. A product is either "go or no go". There are 3 options given and this proves the product is not stable. Companies normally buy new products and proposals if there is a patent already. It went under prototyping and it can be easily evaluated. A proposal and preparation is not enough to justify a product will be successful. Also P 12,000 is too small for a budget to prepare to say a product is good and viable. No penalty is charge as seen by the buyer. They have a feeling that it will not pass. If there is a penalty that it will fail, the probability not to work is still high. This method of putting penalties is just to make the buyer gain confidence but not certain in getting the proposal.

 

 

4. Still a NO. The company should not prepare a proposal unless they have simulated thoroughly. You will not give options if you are sure of your product. It is either the product is good so you can propose confidence with heads up high . If product is uncertain do not give options.

39 minutes ago, snorlax said:

Here is the unlock ^^ @Bomb

 

Answer & Explanation

 

1. The company can purchase the patent. The patent does not require prototypes to be submitted in the patent office or DTI(dept of trade and industry) but it will be valuable for the product to undergo prototyping. This product underwent prototyping because it was able to forecast a 75% probability in manual use. An inventor would not risk to sell his product to a big company if the product is low in viability,and not feasible to work. Product analysis before acquiring the product should be in place before advising it to buy. If the product is not feasible you can always back out not to purchase it. Good engineers will know immediately by just looking at the product if it can be develop. The product should be seen by the engineers and new products team.

 

 

2. It is better to purchase the manual system. You can easily adjust and make modifications if it is manual. If electronic system it is common they won't give the source code and the secrets of programming so you can come back to them for a service fee.

 

 

3. ILY Construction should not proceed with the proposal because the feasibilty of success is low. A product is either "go or no go". There are 3 options given and this proves the product is not stable. Companies normally buy new products and proposals if there is a patent already. It went under prototyping and it can be easily evaluated. A proposal and preparation is not enough to justify a product will be successful. Also P 12,000 is too small for a budget to prepare to say a product is good and viable. No penalty is charge as seen by the buyer. They have a feeling that it will not pass. If there is a penalty that it will fail, the probability not to work is still high. This method of putting penalties is just to make the buyer gain confidence but not certain in getting the proposal.

 

 

4. Still a NO. The company should not prepare a proposal unless they have simulated thoroughly. You will not give options if you are sure of your product. It is either the product is good so you can propose confidence with heads up high . If product is uncertain do not give options.

Thanks po. Keep sharing ?

  • snorlax locked this topic
  • snorlax unlocked this topic

Okay na palaa thankyou

Edited by andreiii
already answered

  • snorlax locked this topic

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.