Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

17 & 18 please In a script, the user is supposed to enter either a 'y' or 'n' in response to a prompt. The user's

image text in transcribed17 & 18 please
In a script, the user is supposed to enter either a 'y' or 'n' in response to a prompt. The user's input is read into a character variable called "letter". The script will print "OK, continuing" if the user enters either a 'y' or "Y" or it will print "OK, halting" if the user enters a 'n' or 'N' or "Error" if the user enters anything else. Put this statement in the script first: letter = input ('Enter your answer: ', 's'); Write the script using a single nested if-else statement (elseif clause is permitted). Write the script from the previous exercise using a switch statement instead

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

Beginning VB 2008 Databases

Authors: Vidya Vrat Agarwal, James Huddleston

1st Edition

1590599470, 978-1590599471

More Books

Students also viewed these Databases questions

Question

How wide are Salary Structure Ranges?

Answered: 1 week ago