Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Practice problems: Android Basics in Compose #25

Closed
YaerQ opened this issue Jun 10, 2022 · 1 comment
Closed

Practice problems: Android Basics in Compose #25

YaerQ opened this issue Jun 10, 2022 · 1 comment
Assignees

Comments

@YaerQ
Copy link

YaerQ commented Jun 10, 2022

URL of codelab

Task 12 Solution Code

There are some errors and some stuff missing
In the Message Formatting Section, the values in the exercise are 5000 and 1000 but in the Code Solution the values shows as 500 and 100.

In the Implement basic math operations section, in step 2 you ask several things

  1. Create an add() function that accepts a firstNumber parameter, secondNumber parameter and thirdNumber parameter, all of Int type, and returns an Int value.
  2. add the values of firstNumber and secondNumber
  3. add the values of firstNumber and thirdNumber
  4. return the result of both operations in the following format firstNumber + secondNumber = result and
    firstNumber + thirdNumber=result (ex. 10 + 5 = 15)
  5. add a subtract function using the add function as a template.

On the Code Solution section for this task on step 2 the solution is incomplete it only shows this:

fun add(firstNumber: Int, secondNumber: Int): Int {
    return firstNumber + secondNumber
} 

as a solution, it doesn't shows what code to add on the main function or how to return both addition operations that were asked (firstNumber + secondNumber and firstNumber + thirdNumber) in the format asked: 10+5=15. If I'm not mistaken the given solution will only print the result number. Also it doesn't show the subtract solution.

@osuleymanova osuleymanova self-assigned this Jul 20, 2022
@osuleymanova
Copy link
Contributor

@YaerQ
The issues that you presented to us are extremely important, and I thank you for bringing it to our attention. The actions were taken to fix and clarify the content in the Solution code section:

Screen Shot 2022-07-27 at 11 47 34 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants