Make an application that allows users to make educated guesses about computer-generated random numbers ranging from 1 to the maximum (users should choose the maximum figure to predict). In this application, the user will enter maximum, and the syscall service 42 will generate a random integer between 1 and maximum. The user will next provide guesses, and if any of the guesses is too high or too low, the application should give back the findings until the user provides the correct guess. The application should print out the number of guesses the user made.
Q: Enjoy becoming a top computer science expert. Engineering? Science and technology?
A: What is computer science expert: A computer science expert is someone who possesses in-depth…
Q: This essay aims to analyse and evaluate the advantages and disadvantages of procedural and…
A: Procedural and Object-Oriented ProgrammingProgramming paradigms are a way to classify programming…
Q: Describe the methods used to improve software quality.
A: Improving software quality is a crucial aspect of software development.
Q: What is the minimum number of address bits required to represent 1024K words with no additional…
A: In computer systems, memory is organized into words, each with a unique address. This is necessary…
Q: What is the frequency with which a proficient compiler produces superior code compared to an…
A: The comparison between the code produced by a proficient compiler and an assembly language…
Q: Where can I get a list of the most often used CLI troubleshooting commands for finding and resolving…
A: There are several online resources where you can find lists of commonly used CLI command line…
Q: Assuming that it takes 2 nsec to copy a byte, how much time does it take to completely rewrite the…
A: To calculate the time it takes to completely rewrite a screen, we need to consider the number of…
Q: What is the precise procedure for setting up a programme for utilisation? Are you content with the…
A: A program's setup modus operandi refers to preparing software for implementation on a specific…
Q: The management and representation of data. Please provide an example of when it would be appropriate…
A: Data management refers to organizing, storing, protecting, and making obtainable high-quality data…
Q: This is a thorough examination of every facet of the Domain Name System (DNS), from iterative and…
A: The Domain Name System (DNS) is a critical component of the internet infrastructure that translates…
Q: The field of Software Reliability and Quality Assurance provides an explanation for the suboptimal…
A: Software reliability and excellence assurance are essential mechanism in computer knowledge.Software…
Q: During which stage of the Database Life Cycle (DBLC) is the data dictionary utilised?
A: The Data Dictionary is primarily used during the design and implementation stages of the database…
Q: Fortran Help: Can you give me an example of how to use Fortran TYPE and MODULE syntax elements? I…
A: In Fortran, the TYPE syntax is used to define user-defined data structures, allowing the creation of…
Q: Numbers can be regarded as product of its factors. For example, 8 = 2 x 2 x 2; = 2 x 4. Write a…
A: Numbers can be regarded as product of its factors. For example,8 = 2 x 2 x 2; = 2 x 4.Write a…
Q: How does software security factor into the lifecycle of software?
A: The software life cycle's first phase’s development and careful planning are required to ensure the…
Q: I have an array with names. Sometimes the same name can appear more than once. In C++ how do I write…
A: The below program prints the duplicated elements from an array of names. It uses a set data…
Q: It is optimal to utilise one's native language when engaging in communication. Is Python considered…
A: Python, Java, and C Language OverviewPython, Java, and C are all powerful and widely used…
Q: A Network Security Design is required for any company that depends extensively on servers operating…
A: Importance of network security design for companies relying heavily on servers operating on a flat…
Q: Please keep in mind that web development and software development are not the same thing.
A: Web happening refers to the making of web applications or websites. This involves everything from…
Q: .List five cloud advantages.
A: Cloud computing has revolutionized the way businesses and individuals store, access, and manage…
Q: Can you show me how you do this with example files? Like what do I need to put down in the makefile?
A: Fortran files refer to source code files written in the Fortran programming language. Fortran is a…
Q: I am interested in understanding the rationale behind selecting assembly language as the preferred…
A: Hello studentGreetingsSelecting assembly language as the preferred programming language for…
Q: Under what circumstances would it be appropriate to employ assembly language instead of a high-level…
A: Assembly language and high-level languages are two different approaches to programming. High-level…
Q: The management and representation of data. Please provide an example of when it would be appropriate…
A: Business Intelligence (BI) encompasses a range of tools and techniques that enable organizations to…
Q: How does hardware and software obsolescence affect everyone's daily life? Give examples of…
A: Hardware and software obsolescence refers to the process by which technology becomes outdated or no…
Q: Please keep in mind that web development and software development are not the same thing.
A: Web development and Software development are two distinct areas within the broader field of computer…
Q: When attempting to persuade an individual of the value of dynamic programming, it is advantageous to…
A: When explaining the significance of dynamic programming, it can be highly effective to utilize…
Q: Is there a possibility of any inherent risk associated with the availability of a software…
A: Building, testing, and improving software are all part of the software engineering process.…
Q: Issues: The current database system is not scalable and cannot handle the increasing volume of data…
A: The ability of a database to give multiple users access to the same record without affecting how…
Q: Open-source programming languages: pros and cons? That is, put yourself in the shoes of a language…
A: What is Programming Language: A programming language is a formal language with a set of rules and…
Q: Is there a fundamental principle that the design of the microkernel in an operating system adheres…
A: Yes, the design of a microkernel in an operating system abides by some fundamental principles. The…
Q: Please furnish a list of prevalent messaging applications that are presently in use. Do they…
A: Text programs, also called messaging apps or chat apps, are software programs that let users send…
Q: This paper aims to provide an overview of the most prevalent alternatives to relational database…
A: NoSQL, standing for "not only SQL", is a term used to describe databases that are designed to handle…
Q: Is there any advantage to introducing programmes at various times? What are the shortcomings in this…
A: Introducing programs at various times refers to the practice of releasing software or program…
Q: It is imperative to prioritise software security throughout the development phase.
A: Technology's emergence has resulted in a the surge in software development activities. However,…
Q: Do you plan to go into depth on the DNS system, especially how it handles iterated and non-iterated…
A: What is mean by DNS and how it handles iterated and non-iterated queries?
Q: Is there a formal definition of Java?
A: Java is a widely used programming language that was first introduced by Sun Microsystems in 1995.…
Q: Gulf Real Estate Properties Gulf Real Estate Properties, Inc., is a real estate firm located in…
A: The given sample data from the multiple listing Service in Naples, Florida, provided sales data for…
Q: Procedural vs. object-oriented programming languages: pros and cons. Python's uses?
A: Procedural programming and object-oriented programming (also abbreviated as OOP) are two mainly…
Q: What precisely constitutes a Class C IP address and what are its potential applications?
A: A Class C IP address is a category of IP address that falls under the classful networking…
Q: Enumerate four programming languages that enable genuine and unambiguous concurrency.
A: Concurrency is a crucial aspect of modern software development, allowing multiple tasks or processes…
Q: Describe the relationship between an API, the system-call interface, and the operating system.
A: In the realm of computer programming and software development, various components work together to…
Q: How do machine-to-machine (M2M) and the Internet of Things (IoT) intersect?
A: M2M (machine-to-machine) and IoT (Internet of Things) are notable technologies Convert our planet.…
Q: The implementation of a protocol within computer networks must be justified by a specific purpose,…
A: A key component of network communication is the use of a protocol within computer networks. Data…
Q: Could you please provide me with more context or background information on the topic you are…
A: Understanding System Calls and Shared Memory:-In the world of computer science, system calls are the…
Q: May I request your insights on the criteria employed for the evaluation and ranking of software…
A: Software foodstuffs are normally evaluate base on an assortment of factors such as functionality,…
Q: Is there any risk associated with having an online software engineering library? examination of…
A: In today's digital era, online software engineering libraries have become an invaluable resource for…
Q: It is optimal to utilise one's native language when engaging in communication. Is Python considered…
A: Effective communication is essential for conveying ideas, thoughts, and instructions accurately and…
Q: What is Elliptic Curve Cryptography and how does it function? Describe how the ECC variant of the…
A: Elliptic Curve Cryptography (ECC) is a form of public-key cryptography that uses the mathematical…
Q: The three primary categories of information gathering will be elucidated.
A: Information gathering is a crucial step in various domains, including research, data analysis, and…
Make an application that allows users to make educated guesses about computer-generated random numbers ranging from 1 to the maximum (users should choose the maximum figure to predict). In this application, the user will enter maximum, and the syscall service 42 will generate a random integer between 1 and maximum. The user will next provide guesses, and if any of the guesses is too high or too low, the application should give back the findings until the user provides the correct guess. The application should print out the number of guesses the user made.
Step by step
Solved in 3 steps with 4 images
- switch_player(): we will allow the players to choose their own names, but for our purposes, it is easier to think of them as number (0 and 1, for indexing purposes). We will display their names to them on the screen, but in the background, we will keep track of them based on their number. This function should take 1 argument, an integer (either 0 or 1) representing the player and should return the opposite integer (1 if 0 is entered and 0 if 1 is entered). This is a simple function, but it will make our code cleaner later. Use your constants! Using ThonnyThe above screen is used to browse the products table it uses the ProductDAO.java file, it calls the getProductByCriteria() function which should accept a parameter, this parameter should be the criteria that would be built from the two combo boxes and the text box, and queries the products table.The getProductByCriteria() function should return a list of Product objects that matches the criteria specified. Modify the function so that it accepts a string paramater consisting of the fields from the combo boxes and a price number from the text box separated by commas and use this string to modify the query in the function to return the desired result set. public List<Product> getProductByCriteria() //MAKE MODIFICATIONS TO THIS FUNCTION SO IT CAN TAKE PARAMETER(S) { if (openConnection()) { try{ List<Product> items = new ArrayList <> (); Product temp = null; String…Create an application named Tables that computes the price of a table and chairs and whose Main() method calls the following methods: A method to accept the number of chairs to go with the table as input from the keyboard. This method returns the number of chairs to the Main() method. A method to accept as input and return the type of wood: p for pine, m for maple, and o or oak (use a loop to ensure only one of these letters is entered). A method that accepts the number of chairs and wood type, and calculates the total cost of the desk based on the prices below. This method returns the total cost to the Main() method. Pine tables are $250. Maple tables are $300. All other wood types are $350. There will be an additional cost of $50 per chair. A minimum of 2 chair must be ordered (use a loop to ensure a value of 2 or more is entered.) A final method to display all the details and the final price. The image below shows a sample run of the program.
- NumericAnalyzer will accept a list of 1 or more numbers as command line arguments. NOTE: Don’t prompt the user for input – this is an exercise passing values to your program via the command line! We’re forcing the user to “push” data values to the application rather than “pull” it from the user! Error checking: if the user fails to pass in parameters, the program will display an error message (of your choice) and exit early. EXTRA CREDIT (+5) Data Validation – flag non-numeric parameters as “invalid data” and exit early. The main() method’s String [] args argument values must be converted and assigned to a numeric/integer array and passed to an instance of NumericAnalyzer. (SEE EXAMPLE main() IMPLEMENTATION BELOW). main() should also be responsible for error checking logic. Your program will display the following information about the numbers provided by the user: The set of numbers provided by the user sorted ascendingly. NOTE: DO NOT implement your own sort algorithm! Part…In this exercise, you modify the Grade Calculator application from this chapter’s Apply lesson. Use Windows to make a copy of the Grade Solution folder. Rename the copy Grade Solution-Intermediate. Open the Grade Solution.sln file contained in the Grade Solution-Intermediate folder. Open the CourseGrade.vb file. The DetermineGrade method should accept an integer that represents the total number of points that can be earned in the course. (Currently, the total number of points is 200: 100 points per test.) For an A grade, the student must earn at least 90% of the total points. For a B, C, and D grade, the student must earn at least 80%, 70%, and 60%, respectively. If the student earns less than 60% of the total points, the grade is F. Make the appropriate modifications to the DetermineGrade method and then save the solution. Unlock the controls on the form. Add a label control and a text box to the form. Change the label control’s Text property to “&Maximum points:” (without the quotation marks). Change the text box’s name to txtMax. Lock the controls and then reset the tab order. Open the form’s Code Editor window. The txtMax control should accept only numbers and the Backspace key. Code the appropriate procedure. The grade should be cleared when the user makes a change to the contents of the txtMax control. Code the appropriate procedure. Modify the frmMain_Load procedure so that each list box displays numbers from 0 through 200. Locate the btnDisplay_Click procedure. If the txtMax control does not contain a value, display an appropriate message. The maximum number allowed in the txtMax control should be 400; if the control contains a number that is more than 400, display an appropriate message. The statement that calculates the grade should pass the maximum number of points to the studentGrade object’s DetermineGrade method. Make the necessary modifications to the procedure. Save the solution and then start and test the application.A company accepts user orders for its products interactively. Users might make the following errors as they enter data: The item number ordered is not numeric, too low (less than 0), or too high (more than 9999). The quantity is not numeric, too low (less than 1), or too high (more than 12). The item number is not a currently valid item. The company’s current inventory consists of the following items listed in Table: item number price 111 0.89 222 1.47 333 2.43 444 5.99 Create a class that stores an array of usable error messages; save the file as OrderMessages.java. Create your own OrderException class that stores one of the messages; save the file as OrderException.java. Create an application that contains prompts for an item number and quantity. Allow for the possibility of nonnumeric entries as well as…
- A new seat discount system is required to help managers of Qatar Railways Company (Qatar Rail) determine how much discount they have given out. Every time the system runs, the discount rate may be specified by the managers or set to a suitable default. You are thusly required to produce a console application (using Java) that is ready to open the file M:\data\seats.txt which contains the seat’s data. Upon application launch, the system should ask the managers if they wish to specify a custom discount rate, this should be in the form of a yes / no question. When the managers say yes, the system should request the discount rate as input (from the keyboard) which will then overwrite the default discount rate . When the managers say no, the system should report (to the screen) the default discount rate (i.e. like the example given below). Next, the system should loop through the seat’s data, calculating and printing (to the screen) the seat type, seat price, number of bookings, discount…public getFuelLevel():double retrieves fuel level in gallons Precondition: fuel level is initialized Postcondition: no change in state Return: fuel level in gallons with decimal valuespublic getFuelTankSize():double retrieves fuel level in gallons Precondition: fuel level is initialized Postcondition: no change is state Return: fuel level in gallons with decimal valuespublic setUpTrip(double, double): void Car's state is set to hold the speed of travel and distance to travel at that speed Precondition: none Postcondition: Car's state holds information on distance to travel and speed to travel Parameters: Average Speed to be driven, Distance to driveDevelop and use an algorithm that calculates the amount of fuel used and the actual distance driven in the drive() method. The algorithm must use a formula or multiple formulas ( as a piecewise function) that gives proportionately poorer mileage when the Car is driven faster or slower than its optimal speed. When a new Car object…Professor Zak allows students to drop the four lowest scores on the ten 100-point quizzes she gives during the semester. Design an application that accepts a student name and 10 quiz scores. Output the student's name and 10 quiz scores. Output the student's name and total points for the student's six highest-scoring quizzes. Modify the application so that the student's mean and median scores on the six best quizzes are displayed.
- Pendant Publishing edits multi-volume manuscripts for many authors. For each volume, they want a label that contains the author’s name, the title of the work, and a volume number in the form Volume 9 of 9. For example, a set of three volumes requires three labels: Volume 1 of 3, Volume 2 of 3, and Volume 3 of 3. Design an application that reads records that contain an author’s name, the title of the work, and the number of volumes. The application must read the records until eof is encountered and produce enough labels for each work. The flowchart must include a call symbol, at the beginning, to redirect the input to the external data file. create a solution algorithm using pseudocode create a flowchart using RAPTORPendant Publishing edits multi-volume manuscripts for many authors. For each volume, they want a label that contains the author’s name, the title of the work, and a volume number in the form Volume 9 of 9. For example, a set of three volumes requires three labels: Volume 1 of 3, Volume 2 of 3, and Volume 3 of 3. Design an application that reads records that contain an author’s name, the title of the work, and the number of volumes. The application must read the records until eof is encountered and produce enough labels for each work. Design a flowchart and psuedocode Pendant Publishing.Create an application that finds the greatest common divisor of two positive integers entered by the user. Console Greatest Common Divisor Finder Enter first number: 12 Enter second number: 8 Greatest common divisor: 4 Continue? (y/n): y Enter first number: 77 Enter second number: 33 Greatest common divisor: 11 Continue? (y/n): y Enter first number: 441 Enter second number: 252 Greatest common divisor: 63 Continue? (y/n): n Specifications The formula for finding the greatest common divisor of two positive integers x and y must follow the Euclidean algorithm as follows: Subtract x from y repeatedly until y < x. Swap the values of x and y. Repeat steps 1 and 2 until x = 0. y is the greatest common divisor of the two numbers. You can use one loop for step 1 of the algorithm nested within a second loop for step 3. Assume that the user will enter valid integers for both numbers. The application should continue only if the user enters 'y' or 'Y' to continue. Note that if you do…