subject

Công ty cung cấp nước sinh hoạt ở vùng ngập mặn khuyến khích các hộ dân tiết kiệm nước bằng cách đưa ra hai mức giá. Nếu hộ nào trong một tháng sử dụng không quá 10 m3 nước thì đơn giá mỗi m3 là 4000 đồng. Nếu sử dụng vượt quá 10 m3 thì mỗi m3 vượt có giá là 7000 đồng. Yêu cầu: Nhập từ bàn phím số nguyên dương n (0 < n ≤ 100) là số m3 nước sử dụng trong tháng của một hộ gia đình. Hãy tính số tiền nước phải trả của hộ gia đình trong tháng đó. Kết quả xuất ra màn hình.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:00
Consider this data sequence: "3 11 5 5 5 2 4 6 6 7 3 -8". any value that is the same as the immediately preceding value is considered a consecutive duplicate. in this example, there are three such consecutive duplicates: the 2nd and 3rd 5s and the second 6. note that the last 3 is not a consecutive duplicate because it was preceded by a 7. write some code that uses a loop to read such a sequence of non-negative integers , terminated by a negative number. when the code finishes executing, the number of consecutive duplicates encountered is printed. in this case, 3 would be printed. assume the availability of a variable, stdin, that references a scanner object associated with standard input. that is, stdin = new scanner(system.in); is given.
Answers: 1
question
Computers and Technology, 22.06.2019 14:30
What percentage of companies is projected to use social media to locate new employees in 2012
Answers: 2
question
Computers and Technology, 23.06.2019 15:30
Brian wants to conduct an online search with a certain phrase. he intends to use the words books that belong to the 1800s in his search. how should he use the word that in his search?
Answers: 1
question
Computers and Technology, 24.06.2019 00:00
Visualizing a game of “tag” to remember the meaning of contagious
Answers: 3
You know the right answer?
Công ty cung cấp nước sinh hoạt ở vùng ngập mặn khuyến khích các hộ dân tiết kiệm nước bằng cách đưa...
Questions
question
Mathematics, 30.11.2021 23:30
question
Mathematics, 30.11.2021 23:30
Questions on the website: 13722363