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
thumb_up100%
Hey, can u fix my code so that if the user doesnt enter a grade from 0 to 100, it will ask the user to re-enter a grade, everything else is correct, thanks
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 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
- The loop below is intended to collect all characters that occur more than once in a given string. When you try it out with a string such as “Mississippi”, you will note that that letters that occur three or more times are collected more than once. Modify the loop so that each repeated letter is collected exactly once. For example, when s is “Mississippi”, result should be “si” and not “sissii” Only allowed to edit code in the /* Your code goes here */ portion. Thanks for the help!arrow_forwardI need some help fixing this code. I need it to let me enter the ISBN number witht the dashes and find the check number my code is below Ill like my teachers direction as a refernce. def main():while True:print('1. Verify the check digit of an ISBN-10')print("2. verify the check digit of an ISBN-13")print("3. Convert an ISBN-10 to an ISBN-13")print('4. Convert an ISBN-13 to an ISBN-10')print('5. Exit')command = input("Enter the Command (1-5): ")if command == '5':breakelif command == '1' or command == '3':# get 10 digit inputISBN = input("Please enter the ISBN-10 number: ")ISBN = ISBN.replace('-', '')while len(ISBN) != 10:print("Please make sure you have entered a number which is exactly 10 characters long.")ISBN = input("Please enter the ISBN number: ")ISBN = ISBN.replace('-', '')print(format(ISBN))if command == '1':print(check_10_digit(ISBN))else:print(convert_10_to_13(ISBN))elif command == '2' or command == '4':# get 13 digit inputISBN = input("Please enter the 13 digit number:…arrow_forwardmodify it based on the instructions below: -clicking a to add the amount (which shouldn't be displayed before pressing a, it should just have the info), -clicking b which will modify only the last name to uppercase (the first and last name are already uppercase before I press b which shouldn't be happening, and 'b' is used for another feature not just changing it to uppercase) maybe use an if statement and ask the user if they want to change it to uppercase for the first or last name, or -increase the hourly rate by 10 for comp sci majors. -clicking b should also add 10 to the hourly rate for computer science majors when updating data so if you could implement that please -the last thing is when clicking c, you should be able to insert a new node to the sequence with the amount calculated and display it, make it so the user can enter In the new node and have it displayed. please do it in a timely manner code below #include <bits/stdc++.h>using namespace std; struct…arrow_forward
- Write an expression that prints "Eligible" if user_age is between 18 and 25 inclusive. Ex: 17 prints "Ineligible", 18 prints "Eligible". Learn how our autograder works 487180.3542414.qx3zqy7 1 user_age = 2 плаши 3 if: 4 5 else: 6 int(input()) print('Eligible') print('Ineligible')arrow_forwardcan you write some code?arrow_forwardImage one is my code, I wanted to make some change to the blue part's code. The code I written in red(see image 1) is the method to check that an integer has exactly 5 digits is provided for you (fiveDigits). You just need to call it appropriately in your code(the part in blue square)! Notice that the fiveDigits method returns a boolean - think carefully about how you should use this return type to reprompt the user until they enter a valid zip code. And I want the same output be like (see image 2) for the invalid zip code part: I should only reprompt the user with the message "Invalid zip-code, enter valid zip-code: " until they enter a valid zip code. Similarly, if the user enters an invalid pain level, you should reprompt the user with the message "Invalid pain level, enter valid pain level (1-10): " until they enter a valid pain level. For example(image2)arrow_forward
- The same I push into code central dir..arrow_forwardWrite an application in which the user can enter a date using digits and slashes (for example, "6/24/2012"), and receive output that displays the date with the month shown as a word (such as “June 24, 2012"). Allow for the fact that the user might or might not precede a month or day number with a zero (for example, the user might type "06/24/2012" or “6/24/2012"). Do not allow the user to enter an invalid date, defined as one for which the month is less than 1 or more than 12, or one for which the day number is less than 1 or greater than the number of days in the specified month. Also display the date's ordinal position in the year; for example, 6/24 is the 176th day. In this application, use your knowledge of arrays to store the month names, as well as values for the number of days in each month so that you can calculate the number of days that have passed. Figure shows the output when the user has entered 6/24/2012. Save the application as Date.java Input Enter a date in the format…arrow_forwardPython code. Is there a different way to write the same code? Thanks!arrow_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