subject

Hint: you will need to change the number ofstatementsPart2:• Prompt the user to enter a state• Read in the user response and assignit to a String variable named stateHint: before you can assign a value to thevariable state it needs to be declared• Prompt the user to enter the name ofthe capital• Read in the user response and assignit to a String variable named capital.• Use printf and format specifiers toprint the following message:The capital of state is capitalwhere you substitute state and capital withthe state and capital entered by the user. Make your output look exactly like the output displayed above. Make sure to read in the input next to the prompt but without touching it (use a blank toseparate the prompt from the user input). The output should use a single empty line toseparate the frog displayed in part1 from the output created in part2.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 14:00
Select the correct answer. a company is currently focusing on creating specific management goals for itself. which level of maturity is the company demonstrating under the sse_ccm framework? a. performed informally b. planned and tracked c. quantitatively controlled d. well-defined e. continuously improving
Answers: 2
question
Computers and Technology, 23.06.2019 16:30
Monica and her team have implemented is successfully in an organization. what factor leads to successful is implementation? good between different departments in an organization leads to successful is implementation.
Answers: 1
question
Computers and Technology, 23.06.2019 17:30
Scientists have changed the model of the atom as they have gathered new evidence. one of the atomic models is shown below. what experimental evidence led to the development of this atomic model from the one before it? a few of the positive particles aimed at a gold foil seemed to bounce back. the colors of light emitted from heated atoms had very specific energies. experiments with water vapor showed that elements combine in specific proportions. cathode rays were bent in the same way whenever a magnet was brought near them.
Answers: 2
question
Computers and Technology, 23.06.2019 17:30
When making changes to optimize part of a processor, it is often the case that speeding up one type of instruction comes at the cost of slowing down something else. for example, if we put in a complicated fast floating-point unit, that takes space, and something might have to be moved farther away from the middle to accommodate it, adding an extra cycle in delay to reach that unit. the basic amdahl's law equation does not take into account this trade-off. a. if the new fast floating-point unit speeds up floating-point operations by, on average, 2ă—, and floating-point operations take 20% of the original program's execution time, what is the overall speedup (ignoring the penalty to any other instructions)? b. now assume that speeding up the floating-point unit slowed down data cache accesses, resulting in a 1.5ă— slowdown (or 2/3 speedup). data cache accesses consume 10% of the execution time. what is the overall speedup now? c. after implementing the new floating-point operations, what percentage of execution time is spent on floating-point operations? what percentage is spent on data cache accesses?
Answers: 2
You know the right answer?
Hint: you will need to change the number ofstatementsPart2:• Prompt the user to enter a state• Read...
Questions
question
Mathematics, 25.01.2022 02:40
question
Mathematics, 25.01.2022 02:40
question
Mathematics, 25.01.2022 02:40
question
Physics, 25.01.2022 02:40
Questions on the website: 13722363