Answer:
Total money he had = $136 (Approx.)
Explanation:
Given:
Spend on rent = 25%
Spend on food = 30%
Total of expenses = $75
Find:
Total money he had
Computation:
Total money he had = [Total of expenses][100/ (Spend on rent + Spend on food)]
Total money he had = [75][100/ (25 + 30)]
Total money he had = [75][100/ (55)]
Total money he had = 136.36
Total money he had = $136 (Approx.)
The code to be simplified is not indicated but I will give you a general guide to simplifying Java codes.
<h3>How do you simplify Java Code?</h3>
- At the top, declare and initialize your variables. Late declaration disrupts readability.
- Create specific functions that are modular. It is inefficient to have functions that attempt to "do it all".
- Make it a practice to name the function to correspond to the task.
- All duplications must be removed and rectified
- Having comments provide a fantastic way to summarize the purpose of a code.
- Do not overuse recursion. Doing this makes it difficult to understand at a glance.
- If possible, do not use global variables. The local variable takes precedence over the global variable in JavaScript.
Learn more about Java code at;
brainly.com/question/18554491
#SPJ1
The answer to this puzzle can be anything but most commonly it is Trees. Pines, Redwood, Sequoias, any kind that is tall and straight. Or it can be something like poles, or even humans.
Answer:
The program in Python is as follows:
first = int(input())
second = int(input())
third = int(input())
s = first * second * third
print(s)
Explanation:
This prompts the user for first input
first = int(input())
This prompts user for second input
second = int(input())
This prompts user for third input
third = int(input())
This calculates the product
s = first * second * third
This prints the calculated product
print(s)
Answer: The answer would be 60 kilometers.