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
Question
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 4 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
- Many user-created passwords are simple and easy to guess. Program that takes a simple password and makes it stronger by replacing characters using the key below, and by appending "q*s" to the end of the input string. i becomes ! a becomes @ m becomes M B becomes 8 o becomes . Ex: If the input is: mypassword the output is: Myp@ssw.rdq*s IN JAVA. USING LOOPSarrow_forwardSamething this is not a graded question it's all in python.arrow_forwardOn a piano, a key has a frequency, say f0. Each higher key (black or white) has a frequency of fo* r, where n is the distance (number of keys) from that key, and r is 21/12) Given an initial key frequency, output that frequency and the next 3 higher key frequencies. Output each floating-point value with two digits after the decimal point, then the units ("Hz"), then a newline, using the following statement: printf("$0.21f Hz\n", yourValue); Ex: If the input is: 440.0 (which is the A key near the middle of a piano keyboard), the output is: 440.00 Hz 466.16 Hz 493.88 Hz 523.25 Hz Note: To compute the next 3 higher key frequencies, use one statement to computer = 2(1/12) using the pow function (remember to include the math library). Then use that r in subsequent statements that use the formula f = f0 *r¹ with n being 1, 2, and finally 3. O Run v main.c 1 2 3 int main(void) { #include Reset Lab Tutorial Ⓡarrow_forward
- Write a program that asks the user to enter 10 numbers, that range from 0-100. Make sure that you do not accept any numbers less than 0, if a user enters a number that is less than 0 then ask him again. Once the user enters all 10 numbers, find and print out the median. How to calculate the Median The median is the middle score of a distribution. To calculate the median Arrange your numbers in numerical order. Count how many numbers you have. If you have an odd number, divide by 2 and round up to get the position of the median number. If you have an even number, divide by 2. Go to the number in that position and average it with the number in the next higher position to get the median. Consider this set of numbers: 5, 7, 9, 9, 11. Since you have an odd number of scores, the median would be 9. You have five numbers, so you divide 5 by 2 to get 2.5, and round up to 3 (to round numbers in C#, use Math.Round()). The number in the third position is the median. In this case, the mean…arrow_forwardWrite a program that creates a login name for a user, given the user's first name, last name, and a four-digit integer as input. Output the login name, which is made up of the first five letters of the last name, followed by the first letter of the first name, and then the last two digits of the number (use the % operator). If the last name has less than five letters, then use all letters of the last name. Ex: If the input is: Michael Jordan 1991 the output is: Your login name: JordaM91 Ex: If the input is: Kanye West 2024 the output is: Your login name: WestK24 367012.2549490.qx3zqy7 LAB 4.32.1: LAB: Login name 0/10 АCTIVITY LabProgram.java Load default template... 1 import java.util.Scanner; 2 3 public class LabProgram { 4 public static void main(String[] args) { 7 * Type your code here. 8 } 10 } 9.arrow_forwardWrite a python program that takes a string as an input from the user. Then check which email domain the user is using and print it. For this question, assume you have only 4 email domains available and they are gmail, yahoo, outlook, and bracu. [You are NOT allowed to use split() and sting slicing for this task] Sample Input 1: tom@gmail.com Sample Output 1: The user is using gmail as a mailing domain. Explanation 1: Since gmail domain is being used by the user. Sample Input 2: kelvin@yahoo.com Sample Output 2: The user is using yahoo as a mailing domain. Explanation 2: Since yahoo domain is being used by the user. IIarrow_forward
- In python, write a program that receives an integer from the user, called n, and prints the first n prime numbers. For example, if the input is 7, the output should be: 2, 3, 5, 7, 11, 13, 17.arrow_forwardWrite a program that asks the user to enter their name and a letter. The program should then use this information to output the string “<your name> guessed the letter <lowercase letter>”, where <your name> is the name entered by the user and <lowercaseletter> is the lowercase form of the letter entered by the user.tip: make use of the method .lower() Example:Enter your name: Jane DoeGuess a letter: AJane Doe guessed the letter aarrow_forwardWrite a program that reads a string (password) and a number. The maximum number of attempts (3). The program with stop asking data if the word ‘quit’ is provided in the password value. If user provide correct credential the message access granted will be displayed otherwise the message access denied with be generated.arrow_forward
- Make a program that prints the table of contents of a book where each chapter has the same number of sections, and each section has the same number of subsections. Example: Please enter the number of chapters 3Please enter the number of sections 3Please enter the number of subsections 3Chapter 1-Section 1.1--Subsection 1.1.1--Subsection 1.1.2--Subsection 1.1.3-Section 1.2--Subsection 1.2.1--Subsection 1.2.2--Subsection 1.2.3-Section 1.3--Subsection 1.3.1--Subsection 1.3.2--Subsection 1.3.3Chapter 2-Section 2.1--Subsection 2.1.1--Subsection 2.1.2--Subsection 2.1.3-Section 2.2--Subsection 2.2.1--Subsection 2.2.2--Subsection 2.2.3-Section 2.3--Subsection 2.3.1--Subsection 2.3.2--Subsection 2.3.3Chapter 3-Section 3.1--Subsection 3.1.1--Subsection 3.1.2--Subsection 3.1.3-Section 3.2--Subsection 3.2.1--Subsection 3.2.2--Subsection 3.2.3-Section 3.3--Subsection 3.3.1--Subsection 3.3.2--Subsection 3.3.3arrow_forwardWrite a program that creates a login name for a user, given the user's first name, last name, and a four-digit integer as input. Output the login name, which is made up of the first five letters of the last name, followed by the first letter of the first name, and then the last two digits of the number (use the % operator). If the last name has less than five letters, then use all letters of the last name. Hint: Use the to_string() function to convert numerical data to a string.arrow_forwardWrite a program that removes all non-alphabetic characters from the given input. Ex: If the input is: -Hello, 1 world$! the output is: Helloworld The program must define and call the following method that takes a string as a parameter and returns the string without any non- alphabetic characters. public static String removeNonAlpha (String userString)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