Write a java program to read from the Keyboard name of the item and its price until the user Enter STOP to stop. The program should print into a file named Item.txt, the following: Total number of items - The items (name, and price) for all items with price increased by 10%. o Hint: new price = old price + old price*10/100; Enter Item Name: Table Enter Item Price: 30.500 Enter Item Name: Chair Enter Item Price: 100.00 Enter Item Name: Mirror Enter Item Price: 5.00 Enter Item Name: STOP Output File Input.txt Number of items = 3 Item with new prices: Table, 33.550 Chair, 110.000 Mirror, 5.500
Q: Using Scilab i need the code and Use For Loop to o read the N entries from the user and display the…
A: Scilab Programming Scilab stands for Scientific Laboratory. Scilab is a software platform which is…
Q: In Big Data computing, proprietary distributed file systems which are optimised for maximising…
A: Answer is given below-
Q: Which applications are included in the purview of the contextual computing domain?
A: What are some examples of contextual computing? Using software and hardware to automatically gather…
Q: Discuss the privacy of information as well as the many strategies that may be used to improve…
A: Introduction: Introduction: Privacy is the state of not being exposed to public scrutiny or having…
Q: What is binary translation, and how does it differ from other types of translation? In what…
A: Binary translation is a kind of software virtualization: that requires the assistance of an…
Q: What are the most common computer security threats?
A: Security Threats: A threat to a computer system is one that results in data corruption or loss, as…
Q: What is blockchain, exactly? What role does it play in digital currency?
A: Digital currencies: Digital currencies are simply e-cash that may be encrypted without the need of…
Q: How may data profiling be utilized in a data modeling effort, particularly if the data model is…
A: Data profiling: Data-Profiling is responsible for the data modelling project's data analysis, data…
Q: dentify the types of Microprocessor nd explain
A: Introduction: Below the types of microprocessor
Q: Given the page table shown below. What is the physical address (in the binary-number format)…
A: The logical address is <5, 17> The logical address is given in format <page#, offset>
Q: Explain the significance of employing the Work Breakdown Strict idea in the management of a typical…
A: INITIATION: Using the WBS Framework (WBS), the output that goes into building a project is displayed…
Q: Given a set of 10 letters , D, S, A, E, T, C, G, M, W }, answer the following: a) With the given…
A:
Q: How do you define the manipulation of data?
A: Introduction: Data manipulation is the process of modifying data to make it more organised and…
Q: sheet that shows all the floating-point numbers for the 9-bit floating point numbers with one sign…
A: Below a spreadsheet that shows all the floating-point numbers for the 9-bit floating point numbers…
Q: Explain in your own words, how a Knowledge Base System is different form an Expert System, whilst…
A: How a knowledge base system is different from an expert system.
Q: Describe the purpose of having both main memory and auxiliary storage in a computer.
A: What characteristics make incursion prevention more effective: A network intrusion prevention system…
Q: Call-by-value parameter Call-by-reference parameter What is the purpose of using '&' in a function…
A: I am allowed to answer only 3 subparts as per Bartleby policy. Call by value basically means that…
Q: What are the many parts that make up a standard
A: All web-based database applications have three primary components: 1) A web browser (or client),.…
Q: Using Scilab i need the code and Use For Loop to o read the N entries from the user and display the…
A: Scilab Scilab is abbreviation of Scientific Laboratory. It is an open source software where a user…
Q: What are the four things to keep in mind while deciding on CPU scheduling?
A: As a result of a limitation of resources, such as I/O, CPU scheduling allows one operation to take…
Q: t IP address 200.210.56.76/28 find the subnet mask, subnet id broadcast address and also find total…
A: As per answering guidelines, solving the 1st question completely. The given IP address is…
Q: Is SAP HANA capable of implementing OLTP and OLAP?
A: Introduction: SAP HANA is the most recent distributed in-memory database and platform that may be…
Q: designers to make their websites accessible from a legal and ethical perspective? Particularise?
A: A website (additionally composed as site) is an assortment of pages and related content that is…
Q: Two endpoints are connected by a single link of rate R = 56kbps and the propagation speed along the…
A: The answer as given below:
Q: Which applications are included in the purview of the contextual computing domain?
A: Contextual computing Contextual computing, often called context-aware computing, is the use of…
Q: Is there a variety of malware? Do worms and viruses have any differences? Infectious diseases are…
A: Definition: According to the question, a Trojan horse virus does not exist. Worms, Trojan horses,…
Q: What is the most crucial phase in the SDLC, and can you back it up with at least two situations or…
A: Planning the project and determining its requirements are two of the essential parts of the SDLC.…
Q: Design a Bottom up Matlab praglad that used to calculate the bloa.d Volumce accofding to the…
A: Algorithm: Input weight from the user Input height from the user Calculate the BMI…
Q: What are the barriers to m-commerce, if any? How can you win against them?
A: Introduction Device security, small screens and the inconvenience of entering card details are still…
Q: List and discuss four vuinerability intelligence sources. Which seems to be the most efficient? Why?
A: Given: 1. The Vendors2. Organizations that provide CERT 3. Resources available on the public network…
Q: You're using a computer that takes a long time to boot up. What tools and methods will you use to…
A: Using a slow-starting computer. tools and methods for cleaning up the starting process
Q: Describe the significance of information systems as well as the applications they have in the many…
A: Information Systems: For a business to be successful, it needs an information system to keep track…
Q: UDP stands for "User Datagram Protocol" What does this mean?
A: UDP or User Datagram Protocol is an alternative protocol to the TCP protocol. Both TCP and UDP work…
Q: 1. Write java program to differentiate between immutable string and mutable string.
A: Note: As per the Bartley guideline you did not specify which question needs to be answered hence…
Q: ch of the following is not a task of database operations of an information system? Choose an answer…
A: Introduction: Below the correct answer of database operations of an information system
Q: Why are there so many different types of individuals, working in such a wide variety of occupations,…
A: Introduction: A computer is a modernised electrical machine that can be programmed to perform math…
Q: Using opt-out links is the safest and most reliable technique to decrease the quantity of spam you…
A: Reliable: Dependable or capable of being trusted is the definition of reliable. A prompt postal…
Q: What are the workings of an Intrusion Detection System (IDS)?
A: Firewall: A firewall is a security solution that protects an internal network from unauthorised…
Q: Explain how each of the following THREE characteristics of Big Data define the differences between…
A: Big data is information that contains more variety , showing up in expanding volumes and with…
Q: Translate the following pseudo code to MIPS code: A-B C Consider that the variables A, B, and C…
A: (1)C codeA = B + CMIPS Codelw $t1, 0($s4) #$t1 = Blw $t2, 0($s5) #$t2 = Cadd…
Q: Is it possible to sum up the aim of software engineering in a few sentences? What precisely is it…
A: Software engineering: Software engineering is a methodical approach to the process of developing,…
Q: Perform (-25)BCD + (+139)BCD using the unsigned BCD addition Hint use (0)10 = (0000)BCD for the…
A:
Q: Notation in sequence definition and examples.
A: One method for indicating a succession is to list every one of its components. For instance, the…
Q: A program developed for a web store represents customer account balances using a format that…
A: When the developer represents the account balance using a fixed number of bits, it limits the range…
Q: Are you familiar with SDLC, or do you know what it is? The names of their distinct phases?
A: Software Development Life Cycle(SDLC ): An SDLC is an acronym for Software Development Life Cycle.…
Q: QUESTION 2 For the following assembly code what is the next logical instruction? li $1,5 li $2, 8…
A: MIPS assembly language: MIPS assembly language refers to the assembly language of MIPS processor. It…
Q: Function parameter Function argument Default parameter Return type Call-by-value parameter…
A: Definition of functions in c++.
Q: What role does intrusion detection and prevention play in ensuring the safety of a network and its…
A: Given: An Intrusion Detection System, sometimes known as an IDS, is a piece of software that…
Q: you please explain "Platform as a Service
A: Platform as a Service (PaaS) gives a runtime climate. It allows programmers to easily create, test,…
Step by step
Solved in 4 steps with 5 images
- Suppose the owner of tuck shop gave you a file that contains the list of items, the number of items sold, and the price of each item in a week. You are requested to write a program that will calculate the total and average price of all the items sold. The program will then output the name of an item, weekly total price of each item, and the average price of all items. Furthermore, the program should display the names of all items that have a total price greater than the average price. Your program should have only the following functions: • main function that calls all the functions except the calAverage function • void getItemData that reads data from a file • void calculateTotal that calculates the total amount for each item • void print that displays the name of items, number of items, price per item, and total price • double calcAverage that calculates the average • void calcAvgGreater that calls calcAverage, displays average and items whose total price is greater than average You…Suppose the owner of tuck shop gave you a file that contains the list of items, the number of items sold, and the price of each item in a week. You are requested to write a program that will calculate the total and average price of all the items sold. The program will then output the name of an item, weekly total price of each item, and the average price of all items. Furthermore, the program should display the names of all items that have a total price greater than the average price. Your program should have only the following functions: • main function that calls all the functions except the calAverage function • void getItemData that reads data from a file • void calculateTotal that calculates the total amount for each item • void print that displays the name of items, number of items, price per item, and total price • double calcAverage that calculates the average • void calcAvgGreater that calls calcAverage, displays average and items whose total price is greater than average You…Suppose the owner of tuck shop gave you a file that contains the list of items, the number of items sold, and the price of each item in a week. You are requested to write a program that will calculate the total and average price of all the items sold. The program will then output the name of an item, weekly total price of each item, and the average price of all items. Furthermore, the program should display the names of all items that have a total price greater than the average price. Your program should have only the following functions: • main function that calls all the functions except the calAverage function • void getItemData that reads data from a file • void calculateTotal that calculates the total amount for each item • void print that displays the name of items, number of items, price per item, and total price • double calcAverage that calculates the average • void calcAvgGreater that calls calcAverage, displays average and items whose total price is greater than average You…
- Create a program that will enter five student records with three quizzes. The program will generate an output that will display all the student records with their grades and remarks. Grades = Average grade of the three quizzes! 75 is the passing mark. Enter 5Student(s) Record Student 1 ID: 101 Name : Juan De la Cruz Enter 3 quizeHere are the two programs which you may choose from to do this program: 1. Using Files - Student Line Up Modify the Student Line Up program described in Programming Challenge 14 which states: "A teacher has asked all of her students to line up according to their first name. For example, in one class Amy will at the front of the line, and Yolanda will be at the end. Write a program that prompts the user to enter the number of students in the class, then loops to read that many names. Once all of the names have been read, it reports which student would be at the front of the line and which one would be at the end of the line. You may assume that no two students have the same name. You are now to do this program reading names from a file. Names should be read in until there is no more data to be read. I am providing for you a file named LineUp.txt for you to use in writing this program. I suggest that you write it first without the file and then modify to add the file.A MyPetStore sells many pets and their accessories. As new pets are added to the MyPetStore, theirinformation is entered into a flat text file. Each month, the manager requests a listing of all pets sorted bytheir price. You must write a program to produce a report of MyPetStore and their types sorted by their pricesfrom the data in the flat text file. Below is a description of the information on the text file:• The first entry is the number of animals on the file (numeric) •The fields below repeat for each animal:o Pet name (String)o Birthdate (java.time.LocalDate)o Price (numeric)o Species Type (String)o Special feature (boolean or String)The animals sold by the MyPetStore are of six types: Dogs & Cats, Reptiles, Birds, Rabbits & SmallAnimals.For Dogs & Cats, the special feature field on the flat file is the breed of the animal (String).For Reptiles, the special feature field is the blood type (warm vs cold-blooded, String).For Birds, the special feature field is the…Python Please! Create a program that will allow a user to do either of the following things: Get input from the user to write the following information to a file: Student name Assignment average grade Mid-term test grade Fi-nal project grade Fi-nal test grade Allow the user to search the file by student name and output a weighted average (15%, 25%, 25%, and 35%, respectively) based on the grades for that student in the file. The user should be able to choose either of the two options until they want to stop.The Apgar Medical group keeps a patient file for each doctor in the office. Each record contains the patient's first and last name, home address, and birth year. The records are sorted in ascending birth year order. Write a program so that display a count of the number of patients born each year John Hanson, 23 Elm, 1927Mary Locust, 476 Maple, 1950Susan Monroe, 512 Peachtree, 1957Carol Fortune, 2819 Locust, 1960James Fortune, 2819 Locust, 1963Lawrence Fish, 12 Elm, 1968Janice Weiss, 234 Birch, 1971Henry Garza, 199 Second, 1973Kimberly Swanson, 310 Appletree, 1980Louis Claude, 2716 Third, 1981Jill Fox, 12 Oak, 1985Opal Reynolds, 78 County Line, 1987Francis Dumas, 67 Fourth, 1992Madison Conroy, 23 Fifth, 1996Daniel Moy, 100 Sunset, 1987Create a file in your project named employees.txt with the following data (you can simply create the file by hand rather than with Python code): 123 Bob Smith345 Anne Jones256 Carol Lee845 Steve Robert Anderson132 Jill Thompson From your program's main function, give the user the following options: lookup a name based on ID number, lookup an ID number based on name, and quit the program. OPTION 1: The user chooses to lookup a name based on ID number: Use a try/except and ask the user to enter an integer. If they don't enter an integer, print an error message. If they do enter an integer, call a function named lookup_employee which takes the id as a parameter. If an employee with the given id number is found, return the name. Otherwise, return the string “Employee not found” Back in main, print the return result. OPTION 2: The user chooses to lookup an ID based on name: Ask the user to enter the first and last name (don't ask for the middle name). Call a function named…Program a python program that demonstrates reading and comparing Create a python program that demonstrates reading and comparing multiple files, processes the input files based on the business rules, and produces an output file. Needed Files 1. The timeclock.txt Download timeclock.txtfile contains the hours worked data for every employee as well as the shift they worked. The layout for the file is as follows: EMPLOYEE_NUMBER, HOURS_WORKED, SHIFTTimeclock.txt 22476, 45, 3 24987, 30, 148283, 50, 285437, 25, 3 2. The personnel.txt Download personnel.txtfile contains the names of all employees and their hourly pay rates. The layout for the file is as follows: EMPLOYEE_NUMBER, EMPLOYEE_NAME, PAY_RATEPersonnel.txt 11235, Bob Smith, 10.50 22476, John Roberts, 12.3524987, Mary Johnson, 15.9032743, Brad Carson, 11.2548283, Alice Martin, 14.2085437, Aaron James,15.15 Note: Both the timeclock.txt and payroll.txt files are pre-sorted by EMPLOYEE_NUMBER in ascending order. Business…JAVA PPROGRAM ASAP Hypergrade does not like this program because it says 2 out of 7 passed and take out the extra \n from the program. Please Modify and change this program ASAP BECAUSE IT IS HOMEWORK ASSIGNMENT so it passes all the test cases. The program must pass the test case when uploaded to Hypergrade. Also, for test cases 1-4 it wants only to input Please enter the file name or type QUIT to exit: then input the file and display the Total number of words. For test cases 5 and 7 it wants to only to input Please enter the file name or type QUIT to exit then input input5.txt and then display File: input5.txt does not exist.\n then display Please enter the file name again or type QUIT to exit:\n then type input1.txt to display the total number of words or type quit to exit the program. For test case 6 it wants only to Please enter the file name again or type QUIT to exit:\n then type quit to exit the porgram. import java.io.File;import java.io.FileNotFoundException;import…JAVA PPROGRAM ASAP Please Modify this program ASAP BECAUSE IT IS HOMEWORK ASSIGNMENT so it passes all the test cases. The program must pass the test case when uploaded to Hypergrade. Also, for test cases 1-4 it wants only to input Please enter the file name or type QUIT to exit: then input the file and display the Total number of words. For test cases 5 and 7 it wants to only to input Please enter the file name or type QUIT to exit then input input5.txt and then display File: input5.txt does not exist.\n then display Please enter the file name again or type QUIT to exit:\n then type input1.txt to display the total number of words or type quit to exit the program. For test case 6 it wants only to Please enter the file name again or type QUIT to exit:\n then type quit to exit the porgram. Chapter 9. PC #10. Word Counter (page 610) Write a program that asks the user for the name of a file. The program should display the number of words that the file contains. Input…SEE MORE QUESTIONS