Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Jump to level 1 1 pairsOfBoots and pairsOfSandals are read from input representing the number of pairs of boots and pairs of sandals at the

image text in transcribed
Jump to level 1 1 pairsOfBoots and pairsOfSandals are read from input representing the number of pairs of boots and pairs of sandals at the shoe store, respectively. The shoe store then sells 3 pairs of boots and receives 4 additional pairs of sandals. 2 . First, write statements to update pairsOfBoots and pairsOfSandals. 3 . Then, assign the variable totalPairs with the total number of pairs of boots and pairs of sandals. Click here for example 3 public class ShoesDetails { public static void main(String args) { 5 Scanner scnr = new Scanner(System. in) ; int pairsOfBoots; int pairsOfSandals; 8 int totalPairs; 9 10 pairsOfBoots = scnr . nextInt(); 11 pairsOfSandals = scnr . nextInt(); 12 13 /* Your code goes here * 14 15 System. out. printIn(pairsOfBoots + " pairs of boots"); 16 System. out. printIn(pairsOfSandals + " pairs of sandals"); 17 System. out. printIn(totalPairs + " total"); 18 2 3 4 Check Next level

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions