Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Overview Prompt the user to enter integer values within a specific range Tell user expected entries Verify all user prompts Always display the value entered

image text in transcribed

Overview Prompt the user to enter integer values within a specific range Tell user expected entries Verify all user prompts Always display the value entered by the user, correct or incorrect a. For valid entries, continue program b. For invalid entries, display a message telling the user the expected entries and exit the program 1. Prompt the user to enter an integer value for yards, which must be greater than 0 and not greater than 10 For valid entries, convert and display the value for yards entered, and number of inches; your display must be in floating point. 2. Prompt the user to enter a value for gallons, which must be one of these values, 10,15,20, no others are valid For valid entries, display the value for gallons entered, and number of quarts and pints 3. Prompt the user to enter an integer value for dollars, which must not be greater than 0 but not greater than 150 If the entry is 80 or 100 , compute and display the number of 20 s, 10 s, 5 s; otherwise, compute and display the number of pennies 4. Modify 1, 2, 3 above and create three different functions, in the same script, to accept parameters and return the results for display; use a menu to decide which function to call, 1,2 , or 3 Deliverables: In one Word document Code Test results showing error messages Test results showing valid messages and computation results

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

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

0130913677, 978-0130913678

More Books

Students also viewed these Databases questions