
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
Write a Marie program named: Program1.max that will Input a variable
named: Max. (Note the file extension must be: .max)
If Max is equal to zero, Halt the program.
Output the variable Max and then input value(s), adding them to Sum until
Sum > Max. You should Output each sum as it is incremented. When Sum >
Max, reset variable(s) and start program again.
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 1 images

Knowledge Booster
Similar questions
- Any help with this question is greatly appreciated!! Thank you!! 1. For this question please write a basic python code for each point displaying how the concept is done. Create it any way you would like and explain your code. -For loop using a range-print a number with a specific format-generate a random number-test a number if its between 2 numbers-while loop with a specific exit condition-creating a function with parameters-computing the remainder-opening a text file for appending-writing to a file-read a file and put some content into a variables-how to create a list of strings-printing the list of strings-how to sort list-select middle few in list to make another listarrow_forwardFor the following, the C++ programs must... - Take a single command-line argument representing the input file name, - Process the input file name, and - Write to standard outputarrow_forward4. Create a loop that asks if the user would like to encrypt some text, decrypt some cipher text, or exit the python program. Perform the operation the user selects, printing the computed text if applicable.arrow_forward
- Input file is given like this: 4 4 XXXX XXX XXX X I need help in writing a code that read the integers then puts it in a variable for row and column. The first 4 is the amount of row, the second one is the amount of column.arrow_forwardHow do I write a Python Program that must use a while loop that prompts the user to enter the first name and age of each friend. Each of these entries should be written to its own line in the text file (2 lines of data per friend). The while loop should repeat until the user presses Enter for the name. Then, the file should be closed and a message should be displayed. See Sample Output.SAMPLE OUTPUT Enter first name of friend or Enter to quit DennyEnter age (integer) of this friend 24Enter first name of friend or Enter to quit PennyEnter age (integer) of this friend 28Enter first name of friend or Enter to quit LennyEnter age (integer) of this friend 20Enter first name of friend or Enter to quit JennyEnter age (integer) of this friend 24Enter first name of friend or Enter to quitFile was createdarrow_forwardusing c++ with comments pleasearrow_forward
- Problem: Write a Python program that reads from an input file given by a user students information after a summer semester which allow students to take two courses. The program will calculate the accumulated semester grade point average (GPA) according to the courses grades and the number of credit hours of the courses. The GPA scores are shown in table 1. The accumulate GPA is calculated as the following equation GPAcourse 1 Creditscourse 1 + GPAcourse 2 • Credits.course 2 A Credits.course 1 + Creditscourse 2 Accumulate GPA = The input file contains student id and student name in the first line. The rest lines contain courses information (course code, course credit hours, student grade). Suppose the input files always in the same format as in the given sample inputs in Figures 2 and 3. The program should display the result in an output file with name "result ID.txt" where ID is the student Id. Your output files should be in the same format as shown in the given sample outputs in…arrow_forwardHow do I write a Python Program that determines and print the average age of the friends on file. That will require an accumulator and a counter. Use a while loop to process the file, print the data, and modify the accumulator and counter. Then close the file and display the average age accurate to one decimal place. See the Sample Output..SAMPLE OUTPUT My friend Denny is 24My friend Penny is 28My friend Lenny is 20My friend Jenny is 24Average age of friends is 24.0arrow_forwardMake only one text files that include some numbers then Write a C++ program that reads that file and find the Maximum number in that file and write the maximum in another file. the input file is the file you made it but the output file is not available and you need to make it through your program. So output files includes only one number which is Maximumarrow_forward
- A static variable A. cannot be initialized B. is initialized once at the commencement of execution and cannot be changed at run time C. retains its value throughout the file of the program D. is same as an automatic variable but is placed at the head of a programarrow_forwardIT 280 - Lab \#2: Guessing Game (Rock, Paper, Scissors, Lizard, Spock) Instructions To Submit This Program In IDLE, choose File -> NewFile. Type your program in the window that pops up, saving it as you work. The file name should be your Last Name, followed by Lab 2.2.py in a Python program. Test the program by running it (F5 or Run→Run Module). Program Inputs: Ask the user for their choice (Rock, Paper, Scissors, Lizard, Spock) - (This can be done through a menu choice or in any other way). The program will randomly choose one of the five possibilities. (Generate random numbers in Python). The program will generate the winner and an appropriate statement based on the following:✓Rock crushes Lizard✓Rock destroys Scissors✓Paper disproves Spock✓Paper covers Rock✓Scissors cuts Paper✓Scissors decapitate Lizard✓Lizard eats Paper✓Lizard Poisons Spock✓Spock smashes Scissors✓Spock vaporizes Rock The user will then be asked if they want to play again, and the process repeats until they…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