subject

Write a statement that assigns numCoins with numNickels + numDimes. Ex: 5 nickels and 6 dimes results in 11 coins. Note: These activities may test code with different test values. This activity will perform two tests: the first with nickels = 5 and dimes = 6, the second with nickels = 9 and dimes = 0. CODE:
import java. util. Scanner; public class ComputingTotalCost { public static void main(String[] args) { Scanner scnr = new Scanner(System. in); int numDrinks; int numTacos; int totalCost; numDrinks = scnr. nextInt(); numTacos = scnr. nextInt(); /* Your solution goes here */ System. out. print("Total cost: "); System. out. println(totalCost); } }

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 19:30
Keep your choice of a major there is probably no single correct choice.
Answers: 1
question
Computers and Technology, 22.06.2019 16:30
Corey set up his presentation for delivery to his team.the information he had to convey was critical to their job performance.he knew he would need a lot of time to explain each point
Answers: 3
question
Computers and Technology, 23.06.2019 01:30
Negative methods of behavior correction include all but this: sarcasm verbal abuse setting an example for proper behavior humiliation
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Font size, font style, and are all aspects of character formatting.
Answers: 2
You know the right answer?
Write a statement that assigns numCoins with numNickels + numDimes. Ex: 5 nickels and 6 dimes result...
Questions
question
Social Studies, 27.07.2019 18:00
Questions on the website: 13722360