Please write a program which asks the user for four numbers. The program then prints out the sum and the mean of the numbers. The program should function as follows: Number 1: 2 Number 2: 1 Number 3: 6 Number 4: 7 The sum of the numbers is 16 and the mean is 4.0 Sample output
Q: How are data structures unique from other forms of knowledge?
A: Dear Student, The answer to your question is given below -
Q: Please write a program which asks the user for a number of days. The program then prints out the…
A: The Python code is given below with output screenshot
Q: Explore the differences and similarities of Quip Spreadsheet, ZohoSheet, and SmartSheet in terms of…
A: Quip spreadsheet was created to help salespeople operate more efficiently. With information in so…
Q: 2. There are mainly three main roles in the system conversion process: sponsor, change agent, and…
A: Introduction New competitors, changing client wants, and technological advances all have an impact…
Q: For what reason does a computer need a program to be loaded into its memory?
A: Introduction: When a computer is turned on, the first thing it does is launch a specific software…
Q: If you were to name the top four benefits of continuous event simulation, what would they be?
A: CONTINUOUS EVENT SIMULATION - A continuous event simulation is a kind of simulation that often…
Q: This article compares and contrasts the three major strategies for moving to IPv6.
A: IPv6 Internet Protocol Version 6 is a protocol layer standard that enables information exchanges…
Q: What importance does "infrastructure mode" have for wireless networks? What does the network…
A: When a personal computer is linked to a wireless access point or a wireless router, the network is…
Q: Is it necessary to examine how diverse businesses use information technology?
A: In addition to these broad types of IT infrastructure, organizations use specific information…
Q: Explain what a data dictionary is and what kinds of data it stores.
A: The answer to the question is given below:
Q: Just how would you get all that form data into the site's database?
A: How would you get the information submitted into the form to the website's database? Transferring…
Q: How are data structures unique from other forms of knowledge?
A: Dear Student, The answer to your question is given below -
Q: When someone says "computer graphics," what do they mean? Where do you see computer graphics being…
A: There are two different kinds of computer graphics: Raster graphics and vector graphics. Even…
Q: Please write a program which asks the user for a number. The program then prints out the number…
A: Here is a Python program that asks the user for a number and prints out the number multiplied by…
Q: What are the benefits, models, and drawbacks of storing data on the cloud? Please give some…
A: Introduction: Cloud computing refers to the storage and access of data and computer resources…
Q: Is it necessary to examine how diverse businesses use information technology?
A: Introduction: Businesses also use organisational information systems, enterprise resource planning…
Q: Which event delegation model should we use, and how should we implement it, while creating a…
A: The delegation event model defines a set of standard and consistent methodologies for event…
Q: What three instances of discrete event simulation are there?
A: The simulation of human intelligence processes by machines, particularly computer systems, is known…
Q: Consider a scenario in which the SQL statement is of the form SELECT DISTINCT c1, c2, c3 from T. Why…
A: The supplied column's unique values are utilised to get a number of counts using this method. In…
Q: If you could explain what a magnetic disc is and how it works, what would you say?
A: A magnetic disc utilizes a magnetization process to write, rewrite, and access data. It has a…
Q: Do you have any preconceived ideas about email? What is the path that a message follows as it is…
A: The email is sent to the Mail Transfer Agent after being written and hitting the submit button…
Q: The rise of mobile devices that execute locally powerful software, use user interfaces based on apps…
A: Introduction: A wireless local area network (WLAN) is a local area network (LAN) that use wireless…
Q: What makes a computer different from other electrical gadgets, and what are those differences
A: Computer is a hardware tool that has it`s personal brains within side the shape of a microchip, and…
Q: There are many different reasons why threads are referred to be "lightweight" processes. What must I…
A: Given: For a reason, threads are referred to be "lightweight" processes. When a thread is created,…
Q: Is the meaning of tree traversals described here?
A: INTRODUCTION: This traversal approach visits the left subtree first, the root, and the right…
Q: Please explain the pros and cons of using dynamic programming in comparison to more conventional…
A: Answer : Dynamic programming : It is a programming in which both optimization method and computer…
Q: An explanation of computer networks What components make up the whole network? What are the main…
A: The answer to the question is given below:
Q: It's telling me that there is a space and that there wasn't a enter pushed
A: Please refer to the following steps for the complete solution to the problem above.
Q: Bring up the use of open innovation when discussing the idea of cloud computing.
A: Cloud computing : Simply described, cloud computing is the supply of computing services via the…
Q: Something like a data structure that can't be implemented using an array or a link, for instance. Do…
A: Introduction: A data structure may also be described as an algebraic structure that holds data on…
Q: When comparing computer architecture with computer organization, what are the most important…
A: logical functionality such as sets of registers, data types, and addressing modes are included in…
Q: Please write a program which asks the user for a number of days. The program then prints out the…
A: NOTE - I have used java programing language to code this. Here I have taken input from the user and…
Q: What distinguishing characteristics characterise computer graphics?
A: To name just a few of the subfields that are included under the umbrella term of "computer…
Q: Exactly what is meant by the term "Binary Search Tree?"
A: Describe the concept of a binary search tree. Tree of Binary Searches: Another twisted binary tree,…
Q: Is the current iteration of this backing representation (essentially a two-dimensional singly linked…
A: Advantages of a two-dimensional list with only one link —Dynamic data structure: A linked list is…
Q: How does a mobile database function? What is it?
A: Please provide three points discussing what mobile database is. Answer: The mobile information…
Q: Please explain the main differences between abstract classes and interfaces.
A: Introduction: Interfaces can only have constants and method stubs, but abstract classes can have…
Q: What exactly are team norms, and how do they influence group dynamics? To what extent does the…
A: Team norms are considered to be standards and fundamental operating procedures in the given team…
Q: der the difference between the two CS tools, the Re
A: Introduction: A key element of the ABAP workbench is the ABAP Dictionary. It includes definitions…
Q: What are the three most important features of an information system?
A: Give three information system dimensions. Information systems include three different aspects:…
Q: When compared to "many threads," what does the word "many processes" imply? Could you give me a…
A: What does the phrase "many processes" really imply, as opposed to "many threads"? Maybe you could…
Q: Why do we need a data dictionary?
A: The data dictionary's what? Data dictionary may be defined as follows. Answer: A data dictionary is…
Q: Examples of data manipulation, forgeries, and web jacking are provided.
A: Please find the detailed answer in the following steps. Manipulation: => Data manipulation…
Q: How does a mobile database function? What is it?
A: answer is
Q: Kevin plans to use a Boolean operator to research two separate areas of interest. Which Boolean…
A: Introduction: The fields of Engineering and Computer Science. Kevin's strategy will include the use…
Q: How much faster does an SSD really work compared to a regular disc?
A: Below is the complete solution with explanation in detail for the given question about fastness of…
Q: At the level of the program, which form of parallelism (data or control) works best with SIMD? What…
A: Parallelism at the programme level refers to the decentralization and execution of a single…
Q: Are there any noteworthy distinctions between search engine results and those found in library…
A: Please find the answer below :
Q: Event delegation models and components are widely used to expedite GUI development. Why?
A: GUI stands for Graphical User Interface. It provides a means for the user to interact with computer…
Q: It is essential to discuss the various database table possibilities when dealing with subtype…
A: A company's Contacts table may store supplier names, e-mails, and phone numbers.Because other…
Can you use Python
Thank you very much!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
- //PROBLEM 1/* This program should play a game with the user asking her to guess a target number (randomly generated integer between 1 and 10). The user gets 3 attempts. If she gets it wrong, the program tells her to go up or down, depending on whether her number was less or more then the target. The output may look like this, for example: ============= Guess the number between 1 and 10 in THREE attempts. Enter your first guess: 4 Nope. Go up. Enter your second guess: 6 Nope. Go down. Enter your third and final guess: 5 You got it! CONGRATULATIONS! ============= or like this: ============= Guess the number between 1 and 10 in THREE attempts. Enter your first guess: 4 Nope. Go up. Enter your second guess: 6 Nope. Go up. Enter your third and final guess: 8 GAME OVER! You lost! The number was 91. Write a program that lets the user guess whether a randomly generated integer would be even or odd. The program randomly generates an integer and divides it by 2. The integer is even if the remainder is 0, otherwise odd. The program prompts the user to enter a guess and reports whether the guess is correct or incorrect.PROBLEM: Write a program that prompts the user to input the amount of money that an ATM machine will dispense and then show the breakdown of how many 1000, 500, and 100 peso bill/s are dispensed. The program must display the amount then prompt the user if the transaction will continue or not by choosing between Y (for Yes) and N (for No). If an invalid character is entered, it must display that the user entered an invalid character. The program must also display that the maximum allowable amount is 10,000 and the minimum allowable amount is 100. If the entered amount is greater than 10,000 or less than 100, an error notification must be displayed. Moreover, the entered amount must be exactly divisible by 100. SPECIFICATIONS: - You may only use the codes that we studied under our lectures All lines of codes should have a comment. - Save your cpp file as Surname - PE (Example: Pangaliman - PE.cpp) TEST CASES: If a user inputs an amount less than or equal to 10,000: REMINDER: Maximum…
- PROBLEM:Write a program that prompts the user to input the amount of money that an ATM machine will dispense and then show the breakdown of how many 1000, 500, and 100 peso bill/s are dispensed. The program must display the amount then prompt the user if the transaction will continue or not by choosing between Y (for Yes) and N (for No). If an invalid character is entered, it must display that the user entered an invalid character. The program must also display that the maximum allowable amount is 10,000 and the minimum allowable amount is 100. If the entered amount is greater than 10,000 or less than 100, an error notification must be displayed. Moreover, the entered amount must be exactly divisible by 100. TEST CASES: If a user inputs an amount less than or equal to 10,000: REMINDER: Maximum amount must only be 10,000 and the minimum amount must not be less than 100 Enter Amount to dispense: 4900The Amount of money you entered is 4900.Do you want to continue your transaction?Enter…Problem: A small company needs an interactive program to compute an employee’s paycheck. The payroll clerk will initially input the data, and given the input data, an employee's wage for the week should be displayed on the screen for the payroll check. The data for the employee includes the employee's hourly pay rate and the number of hours worked that week. Wage is equal to the employee's pay rate times the number of hours worked (up to 40 hours). If the employee worked more than 40 hours, wage is equal to the employee's pay rate times 40 hours plus 1½ times the employee's pay rate times the number of hours worked above 40. Instructions: Match the action at the left-side with the correct step number at the right-side (the attached picture). Note that it may be possible to group more than one related actions in the same logical step / process without altering the essence of the algorithm. In the program flow, input and checking of hourly pay rate should come before that of the number…Questions 1. Write a program which asks the user to enter a six-digit number and print a new number by subtracting 1 to each of its digits. For example, if the number entered is 393201, the output should be displayed as 282190. Information on the console should be displayed similar to the Sample Run shown below. Sample Run: Enter a 6 digit number: 393201 Modified number is: 28219d
- Exercise #4: Write a program that finds the area of a triangle given the base and the height of a triangle, the area of a triangle is calculated using the formula: area = 1/2* base * height Ask the user to enter the values for the input data base and height. Make sure you print the results in the similar way as in the exercise # 2: For example: The area of a triangle with base = printThe Value and height = printTheValue is = print The Value Submission: • Save the file as hw1_ex4.cpp Triangle Solve for area A h, b 2 b Base h₂ Height Enter value Enter value k b1. Write a an algorithm that asks the user to input a positive integer n and counts how many of the squares of the integers from 1 to n end in a 1.2. Write a an algorithm that asks the user to input a positive integer n and counts how many of the squares of the integers from 1 to n end in a 4 and how many end in a 9.Homework 3: Write a program to calculate two real numbers. The operation you are going to used are "add, subtract, multiple and division" and it is going to be optional to calculate the two numbers separately at each time you are going to execute the program. After you execute the program separately at each time your run the program the output look like below: + to add betveen two nunbers - to subtract between two nunbers to nultiply betveen tvo nunbers to divide betueen two nunbers Enter Enter Enter Enter Enter the operation :+ Enter the 1st nunber :2.3 Enter the 2nd nunber :5.6 The result is 7.900 Press any key to continue . . . - OR Enter Enter Enter Enter to add betveen two nunbers to subtract betveen tvo nunbers to nultiply betueen tuo nunbers / to divide betveen two nunbers Enter the operation :- Enter the ist nunber :2.3 Enter the 2nd nunber :5.6 The result is -3.300 Press any key to continue. ... Al-Farabi University College Computer Programming Methodology Department of…
- UNIVERS UNIVER GE AL-FARABI UNIVERSITY COLL GE Homework 3: Write a program to calculate two real numbers. The operation you are going to used are "add, subtract, multiple and division" and it is going to be optional to calculate the two numbers separately at each time you are going to execute the program. After you execute the program separately at each time your run the program the output look like below: Enter Enter + to add between two nunbers - to subtract betveen tuo nunbers to nultiply between tvo nunbers to divide betueen tuo nunbers Enter Enter Enter the o peration :+ Enter the ist nunber :2.3 Enter the 2nd nunber :5.6 The result is 7.980 Press any key to continue. . .- OR to add betueen two nunbers to subtract between two nunbers * to nultiply betveen two nunbers / to divide between two nunbers Enter Enter Enter Enter Enter the operation :- Enter the 1st nunber :2.3 Enter the 2nd nunber :5.6 The result is -3.300 Press any key to continue ...- Al-Farabi University College…1. Write a program that asks the user to enter three names, and then displays the names sorted alphabetically in descending order. For example, if the user entered "Charlie", “Leslie", and "Andy", the program would display: Leslie Charlie Andy Note that these three names are just an example. The names could be any words. 2. Write a program that asks the user to enter a year, and then displays whether that year is a leap year or not. Note that a year is a leap year if the year is a multiple of 400, or it is a multiple of 4 and not a multiple of 100. 3. Write a program to repeatedly read integers from the standard input until it reads -1 and exits. For each number before -1, if it is positive and odd, do the following: • Output a triangle like the one below with the integer being the width of the triangle's bottom or the number of asterisks of the bottom row. For instance, if the integer is 7, you would display the triangle below: *** ***** Or if the integer is not positive or not odd,…Untitled Question Question 1 Write a program that finds the new salary of an employee after several years of work experience. Your program should ask the user to enter the name of the employee, the old salary and number of working years; then it should calculate and output the new salary using this equation: New salary Old salary + years 75 0.8 Sample run: Enter employee's name, old salary and years: John 900 5 Name New Salary John 1593.75 Your answer