
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Concept explainers
Question

Transcribed Image Text:Please insert the source code into the textbox below before the time up.
The code must contain your name and has proper format.
Write a program that draws an output by using a character 'X' as examples below. The number of the space between the 'X' is the input
number. The program must prompts a user for an integer from 1 to 10 (inclusive). The program must use loop to re-prompt when an invalid
input is entered. The invalid input is lower than 1 or larger than 10. The user input will then be used to set the output. Once the program output
by using a character 'X', the program is fınished.
Example 1:
Input: 3
Output:
XXX XXX XXX
Example 2:
Input: 4
Output:
XXXX XXXX XXXX XXXX
Example 3
Input: 0
Please try again!
Input: -5
Please try again!
Input: 20
Please try again!
Input: 5
Output:
XXXXX
XXXXX
XXXXX
XXXXX XXXXX
etv N
MacBook Air
80
DII
DD
=2
F3
F4
F5
F6
F7
F8
F9
#3
$
&
4
7
E
Y
* 00
R
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps with 2 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Write the code to allow the user to enter a list of positive integers via input boxes and add each number entered to the lstNums list box. Use a Do-While or Do-Until Loop to let the user continue to enter numbers until -1 is entered. Do not add the -1 entry to the list box. In visual Basic please.arrow_forwardThis function will display the menu options that the user can choose (tocalculate perimeter or area of a triangle).arrow_forwardplease do not change variable name. will give thumbs down if variable name is changed. also please have it so I can copy and pastearrow_forward
- Please draw/create the Flowgorithm flowchart.arrow_forwardWrite a program that allows the user to enter timein seconds in the text field and press the Enter key to count down the seconds,as shown in Figure d . The remaining seconds are redisplayedevery second.When the seconds are expired, the program starts to play musiccontinuously.arrow_forwardIncluded Question 4 for referencearrow_forward
- Python question please include all steps and screenshot of code. Also please provide a docstring, and comments throughout the code, and test the given examples below. Thanks. A single playing card can be represented by a string where the first character is a digit2-9 or a letter ‘A’, ‘T’, ‘J’, ‘Q’, or ‘K’, for Ace, Ten, Jack, Queen, King respectively, andthe second character is one of ‘S’, ‘H’, ‘D’, or ‘C’ for Spades, Hearts, Diamonds, orClubs. A hand of cards can be represented by a list of strings. Write a function calledthreeOfAKind() that takes a list of strings representing a hand of cards, and returns Trueif there are exactly three cards with the same value (regardless of suit), False otherwise.>>> threeOfAKind(['3D', 'KD', 'JD', '3H', '3S'])True>>> threeOfAKind(['3D', 'KD', 'JD', '3H', '4S', '5S'])False>>> threeOfAKind(['3D', '3H', '3S', '3C', 'AC'])Falsearrow_forwardMonthly Payment Program (in the attached photo), update it with the following in java code: If applicable, remove hard coding for the principal, annual interest rate and number of years. Replace these with Input Dialog Boxes requesting data be entered. The calculation should remain the same. Replace the output area with a showMessage box. Allow the user to request a detailed display of the payment schedule. This will include the ending balance and interest paid per month in a line-by-line display. Add a loop to the program allowing the user to continue entering new data as many times as they like (all input and output should be displayed in dialog boxes).arrow_forwardPlease Create using C# Develop a form that allows the user to project the population of your city for a specified number of years and growth rate. Allow the user to specify the current year’s population, the number of years and the annual growth rate. Use a for loop to compute and display each year, starting with the current year and the corresponding population.the formula would be to ADD versus SUBTRACT as in:i. dblTotal = dblTotal + (dblTotal * desiredGrowthRate)ii. Sample list box output would be (don’t forget to clear)1. Year 0: - 10,0002. Year 1: - 10,500 (if the growth is 5%) etcarrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education