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.
Step by stepSolved in 3 steps with 5 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
- | 24. Nana is evaluating four of her student programs. The program is asked to output letter values from numeric values. The numerical value is in the range of .100 and the letter value is between A, B, C, or D. These four programs have been tested by Nana with an input value of = 60. As a result, the four programs output "D" as if the programs were correct. However, ONE OF THE PROGRAMS BELOW IS WRONG! which program is it? 100 A 91 81 - 90 →B 71 - 80 →C 0 - 70 → D Aif (num> 90): print ("Grade A") elif (num>80): print ("Grade B") elif (num> 70): print ("Grade C") else: if (num>90) : print ("Grade A") if (num>80 and num70 and num<-80): print ("Grade C") else: B print ("Grade D") print ("Grade D") Cif (num<-70): print ("Grade D") elif (num<=80): print ("Grade C") elif (num<-90): print ("Grade B") else: if (num<-90) : If (num<=80) : if (num<=70) : print ("Grade D") else: print ("Grade C") else: D print ("Grade A") print ("Grade B") else: print ("Grade A")arrow_forwardUsing a loop, extend the program to handle multiple lines of input. Continue until the user enters q to quit. Ex: Enter input string: Jill, Allen First word: Jill Second word: Allen Enter input string: Golden , Monkey First word: Golden Second word: Monkey Enter input string: Washington,DC First word: Washington Second word: DC Enter input string: q pythonarrow_forwardForms often allow a user to enter an integer. Write a program that takes in a string representing an integer as input, and outputs yes if every character is a digit 0-9. You may assume that the string does not contain spaces and will always contain less than 50 characters. Ex: If the input is: 1995 the output is: yes Ex: If the input is: 42,000 or 1995! the output is: no Hint: Use a loop and the isdigit() function (don't forget to include the ctype library). please use c programming languagearrow_forward
- Integer inputCount is read from input representing the number of integers to be read next. Use a loop to read the remaining integers from input. For each integer read in the loop, output the integer followed by " bananas.". End each output with a newline. Ex: If the input is: 3 85 60 80 then the output is: 85 bananas. 60 bananas. 80 bananas.arrow_forwardConvert the three test scores program from Scanner to JoptionPane also include the grade calculation (if-else ), if the student's ave 90 -100 grade is A 80 to 89 grade is B 70 to 79 grade is anything below 70 grade is an F Using Dialog Box input: first name, MI, Last Name, Three test scores Output: first name, MI, Last Name, Three test scores, average submit: 1) Source code (java file) 2) output (pdf, word, jpg) 3) Psueducode (word or pdf)arrow_forwarduse java programingarrow_forward
- 24. Write a program which asks the user for an integer number and prints out whether the input number is a multiple of 7. A. Example 1 i. Input: • ii. Output: B. Example 2 i. Input: Please enter number: 9 ii. Output: Number is not a multiple of seven 25. Write a program which asks the user for two integer numbers (say N1 and N2) and prints out whether the input number NI is a multiple of N2. A. Example 1 i. Input: • B. Example 2 ii. Output: • i. Input: A. Example Please enter number: 49 Number is a multiple of seven i. Input: ii. Output: Number 40 is not a multiple of 3 26. Write a program which asks the user for an integer number and prints out whether the input number is even or odd. Please enter first number: 49 Please enter second number: 7 Number 49 is a multiple of 7 Please enter first number: 40 Please enter second number: 3 • Please enter number: 42 i. Input ii. Output: Number is even 27. Write a program that asks the user for an integer number and prints a pattern. A. Example…arrow_forwardWrite a code that asks the user to enter several numbers that are a multiple of 5. If the user enters a value that is not a multiple of 5 it should print a message and prompt the user to enter a new number. The user can stop the process by inputting the string *done*. At the end, print the total number of values entered that are a multiple of 5.arrow_forwardTask 1: Working with the cout StatementExercise 1: Retrieve program name.cpp from the Lab 2 folder.Fill in the code so that the program will do the following:Write your first and last name on one line.Write your address on the next line (recall the function of the endl statement).Write your city, state and zip on the next line.Write your telephone number on the next line.Remember that to output a literal, such as “Hello”, you must use quotes.Compile and run the program.Example: Deano Beano123 Markadella LaneFruitland, Md. 55503489-555-5555The code for name.cpp is as follows: // This program will write the name, address and telephone// number of the programmer.// PLACE YOUR NAME HERE#include <iostream>using namespace std;int main(){// Fill in this space to write your first and last name// Fill in this space to write your address (on new line)// Fill in this space to write you city, state and zip (on new line)// Fill in this space to write your telephone number (on new line)return…arrow_forward
- Which of the following is true when comparing sentinel loops and user confirmation loops? Select one: a. Both types of loops may not iterate at all. b. A user confirmation loop can do no iterations, but a sentinel loop has to iterate at least once. c. A user confirmation loop iterates at least once, but a sentinel loop can do no iterations. d. Both types of loops must iterate at least once.arrow_forward** Below is the image of my code so far, but it still needs work** * This program asks the user to enter an integer from 3 to 9* and prints a pattern of numbers based on that number.* For example, given the number 4 as input, the output would be:* * 1** 21** 321** 4321** 321** 21** 1** * Print a newline between the prompt and the beginning of the stars.* Note that no input validation is required.arrow_forwardFollow instructionsarrow_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