
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:EXERCISE 19
Write a program using for loop that generates a multiplication table for any integer (given by the
user) up to any multiple (also given by the user). Your output should be similar to what is given
in the sample below.
Sample Output
>> exercise19
Enter the number for which you want to create the multiplication table: 91
Enter the number up to which multiplication table is required: 5
91 X 1- 91
91 X 2 = 182
91 X 3 - 273
91 X 4 - 364
91 X 5- 455
>>
Electronic Engineering Technology---MATLAB Tutorial
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 3 steps with 1 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
- Please write a program which asks the user for a number. The program then prints out all integer numbers greater than zero but smaller than the input. Upper limit: 5 1234 4 Sample output Please don't use the value True as the condition of your while loop in this exercise!arrow_forwardIn java please. thank you!arrow_forwardPlease help me with this question in python using psedocode details. I have attached both pictures below:-arrow_forward
- Write a Python code This lab requires you to write a complete program using a condition controlled loop, a counter controlled loop, and an accumulator. The program is as follows: Write a program that will allow a grocery store to keep track of the total number of bottles collected for seven days. The program will calculate the total number of bottles returned for the week and the amount paid out (the total returned times .10 cents). The output of the program should include the total number of bottles returned and the total paid out. The program will ask the user if they have more data to enter and will end the program if they do not. Step 1: In the pseudocode below, declare the following variables under the documentation for Step 1. A variable called totalBottles that is initialized to 0 This variable will store the accumulated bottle values A variable called counter and that is initialized to 1 This variable will control the loop A variable called todayBottles…arrow_forwardComputer Science The script below demonstrates a very basic loop structure. Indicate the value of R1 after 5 iterations of the loop. (Given the very first line of code, you can assume R1 starts out as 0x00)arrow_forwardIn python, Write a program that prints a 3-column table showing the circumference and area of ten circles of a specified random radius. See Sample Output. The area and circumference are calculated and printed by a custom function that takes a radius as its only argument. The low and high values for the range of random radii are specified by user inputs in main. The main function should then use these high and low values and the random module in a loop to generate random integers and execute the custom function with the random integers as radii. In the table, the radius column should be 6 charas. wide with 1 decimal, the circumference column should be 12 charas. wide with 3 decimals, and the area column should be 11 charas. wide with 2 decimals.arrow_forward
- 1. Create a C program that prompts the user to input a number and prints its corresponding multiplication equivalent in a multiplication table. Use nested for loop only. Sample Output: I CAUsers\delNDesktop\c\prelim\multiplicaitontable.exe Input upto the table number starting from 1: 10 Multiplication table from 1 to 10 1x1 = 1, 2x1 = 2, 3x1 = 3, 4x1 - 4, 5x1 - 5, 6x1 = 6, 7x1 = 7, 8x1 = 8, 9x1 = 9, 10x1 = 10 1x2 = 2, 2x2 = 4, 3x2 - 6, 4x2 = 8, 5x2 = 10, 6x2 = 12, 7x2 = 14, 8x2 = 16, 9x2 = 18, 10x2 = 20 1x3 3, 2x3 = 6, 3x3 = 9, 4x3 = 12, 5x3 = 15, 6x3 = 18, 7x3 = 21, 8x3 = 24, 9x3 = 27, 10x3 = 30 1x4 = 4, 2x4 = 8, 3x4 = 12, 4x4 = 16, 5x4 = 20, 6x4 = 24, 7x4 = 28, 8x4 = 32, 9x4 = 36, 10x4 = 40 1x5 = 5, 2x5 = 10, 3x5 = 15, 4x5 = 20, 5x5 = 25, 6x5 = 30, 7x5 = 35, 8x5 = 40, 9x5 = 45, 10x5 = 50 1x6 = 6, 2x6 = 12, 3x6 = 18, 4x6 = 24, 5x6 = 30, 6x6 = 36, 7x6 = 42, 8x6 = 48, 9x6 = 54, 1ex6 = 60 1x7 = 7, 2x7 = 14, 3x7 = 21, 4x7 = 28, 5x7 = 35, 6x7 = 42, 7x7 = 49, 8x7 = 56, 9x7 = 63, 10x7 = 70…arrow_forwardI need help please to Translate the pictured Java code into Hack Assembly programming language using the following declarations to start, @i D=M @array A=M A=D+A D=M @1 D=D&Aarrow_forwardIn Python pleasearrow_forward
- Question 2: Write a program to read student ID and check whether it is odd/even number. Output a 4X4 badge if the student ID is even number and output a 3X3 badge if it is odd number. The badge is built up by the (height X width) of asterisks. (Use for-loop to draw the asterisks, do not hard-coded)arrow_forwardFor python Write a for loop to print each contact in contact_emails.Sample output with inputs: 'Alf' 'alf1@hmail.com'mike.filt @bmail.com is Mike Filt s.reyn@email.com is Sue Reyn narty042@nmail.com is Nate Arty alf1@hmail.com is Alf contact_emails = { 'Sue Reyn' : 's.reyn@email.com', 'Mike Filt': 'mike.filt@bmail.com', 'Nate Arty': 'narty042@nmail.com' } new_contact = input() new_email = input() contact_emails[new_contact] = new_emailarrow_forwardYou will write a program that calculates the number of months it takes for an investment made in a Roth IRA to double in value. The program will prompt the user for an initial investment amount and an annual percent rate of return (APR). The investment will earn a monthly dividend calculated as 1/12th the APR. The dividend is automatically reinvested each month. No taxes are paid on the investment income. You will use a while loop to implement a monthly calculation and value update. Each month the added interest will be calculated as: added_interest = current_value* (APR / 100) / 12 The loop will terminate as soon as the deposit passes double its initial value. Print out the number of months it took for the initial deposit to double in value at the given rate of return. Here is a short transcript showing how the program would work using an absurd rate of return: Enter an initial Roth IRA deposit amount : 1000 Enter an annual percent rate of return: 150 Value after month 1: $1125.00…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
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