Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment Content You are working as part of a team on a large software development project. Your assigned task for the day is to create

Assignment Content
You are working as part of a team on a large software development project. Your assigned task for the day is to create a dynamically sized on-screen ruler that is sized based on user input.
The ruler is to print every 5 th position as plus and every tenth position as a number all other positions will be a hyphen.
Hint: Use a while loop to allow the program to continue interacting with your user, use a for loop and branching statements to generate the ruler use a counter variable to count the number of calculations and a total to sum the size to list the average size upon exit.
Example:
Welcome to the ruler generating program!
Please enter the size ruler you require (-1 to quit):
54
Please enter the size ruler you require (-1 to quit):
Please enter the size ruler you require (-1 to quit):
-1
You generated 2 rulers, average size ruler requested was 34.5, have a great day!
image text in transcribed

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

Students also viewed these Databases questions

Question

Describe the linkages between HRM and strategy formulation. page 74

Answered: 1 week ago

Question

Identify approaches to improving retention rates.

Answered: 1 week ago