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:
q,
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):
15
Please enter the size ruler you require (-1 to quit):
-1.
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_2

Step: 3

blur-text-image_3

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

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

More Books

Students also viewed these Databases questions

Question

Write a paper on IS strategic Analysis

Answered: 1 week ago