Last active
February 7, 2023 13:27
-
-
Save udacityandroid/ad088cd4e920f2a2d778 to your computer and use it in GitHub Desktop.
Android Development for Beginners : Calculate the Price Method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Calculates the price of the order based on the current quantity. | |
* | |
* @return the price | |
*/ | |
private int calculate price(int quantity { | |
int price = quantity * 5; | |
return price; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Calculates the price of the order based on the current quantity. | |
* | |
* @return the price | |
*/ | |
private calculatePrice(int quantity) | |
int price = quantity * 5; | |
return price; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Calculates the price of the order based on the current quantity. | |
* | |
* @return the price | |
*/ | |
private int calculatePrice(int quantity) { | |
int price = quantity * 5; | |
return price; | |
} |
c
Answer C
C
C
option c is correct answer
C
It's C
I think the option is C
c
because fulfill all requirements of a method in java
Dear sir , the option A and B are wrong answer and the option 3 are right answer
C
Because Fulfill all requirements of a method in java
c
C
Option C is correct
Why you guys are answering here. Because of you the new students will not be able to practice there newly acquired code reading skills.
option cuiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii is correct
Option C:
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
C correct