Simple and easy way please.
The purpose of this homework is for you to get practice applying many of the concepts you have learned in this class toward the creation of a routine that has great utility in any field of programming you might go into. The ability to parse a file is useful in all types of software. By practicing with this assignment, you are expanding your ability to solve real world problems using Computer Science. Proper completion of this homework demonstrates that you are ready for further, and more advanced, study of Computer Science and programming. Good Luck!
Steps:
Download the file "Homework10.java Download Homework10.java" (Don't forget to add your name to the comments section before submitting!)
Create a new project called "Homework10" and create a package called "Main." Use the drag and drop method to add the file mentioned above to the "Main" package. Also add the "EZFileWrite.java" and "EZFileRead.java" files from homework #8 to the "Main" package.
The first portion of the main method should NOT be modified. This is what I wrote to save the text file on to your hard drive in the proper place. Originally, I was going to have you download the text file and copy it to the proper class path but I chose this so you don't have to worry about class paths at this point (but you should learn in your own time if you want to develop software.)
Read the assignment specifications on the following pages and implement ALL of these into your program for full credit. You will only get the full 50 points if you complete everything listed without compiler errors, warnings, or runtime errors. Paying attention to details is a key skill needed in programming and Computer Science!
View lecture notes for relevant topics to refresh your understanding of arrays, file I/O, looping, and converting between one variable type and another. You are free to ask questions about the homework in class or during office hours. I will not tell you how to write the assignment but I can help with clarifying concepts that might help YOU write it.

Answers

Answer 1

A high level programming language is Java. The claim that "Bytecode is platform independent" is true. Second, neither the Java Virtual Machine (JVM) nor Just-In-Time (JIT) generate intermediate bytecodes or object codes.

Code in java

package Main;

import java.util.StringTokenizer;

public class Homework10 {

public static void main(String[] args) {

 EZFileWrite efw = new EZFileWrite("parse.txt");

 efw.writeLine("Shawshank Redemption*1994*Tim Robbins*2.36");

 efw.writeLine("The Godfather*1972*Al Pacino*2.92");

 efw.writeLine("Raging Bull*1980*Robert De Niro*2.15");

 efw.writeLine("Million Dollar Baby*2004*Hilary Swank*2.2");

 efw.writeLine("Straight Outta Compton*2015*Jason Mitchell*2.45");

 efw.saveFile();

// End of the test

// TODO: Create code to load the text file into memory, parse it, and meaningfully display the data.

// (To complete the assignment and receive full credit, follow the instructions in the handout.)

 EZFileRead efr = new EZFileRead("parse.txt");

 int efrLength = efr.getNumLines();

 String[] movies = new String[efrLength];

 int[] years = new int[efrLength];

 String[] stars = new String[efrLength];

 float[] runtimes = new float[efrLength];

 for (int index = 0; index < efrLength; ++index) {

  String raw = efr.getLine(index);

  StringTokenizer st = new StringTokenizer(raw, "*");

  movies[index] = st.nextToken();

  years[index] = Integer.parseInt(st.nextToken());

  stars[index] = st.nextToken();

  runtimes[index] = Float.parseFloat(st.nextToken());

 }

 printStringArrayWithHeader("MOVIES", movies);

 printIntArrayWithHeader("YEARS", years);

 printStringArrayWithHeader("STARS", stars);

 printFloatArrayWithHeader("RUNTIMES", runtimes);

}

private static void printStringArrayWithHeader(String headerName, String[] stringArray) {

 printHeaderName(headerName);

 for (int index = 0; index < stringArray.length; ++index) {

  System.out.println(stringArray[index]);

 }

}

private static void printIntArrayWithHeader(String headerName, int[] intArray) {

 printHeaderName(headerName);

 for (int index = 0; index < intArray.length; ++index) {

  System.out.println(intArray[index]);

 }

}

private static void printFloatArrayWithHeader(String headerName, float[] floatArray) {

 printHeaderName(headerName);

 for (int index = 0; index < floatArray.length; ++index) {

  System.out.println(floatArray[index]);

 }

}

private static void printHeaderName(String headerName) {

 System.out.println("-----" + headerName + "-----");

}

}

To know more about java, check out:

https://brainly.com/question/25458754

#SPJ1


Related Questions

sheryl is explaining the osi model to new technicians at her company. she is trying to explain what protocols operate at the various layers of the osi model. at what layer of the osi model does tcp operate?

Answers

The Transport layer of the OSI model operates the TCP protocol. Correct answer: letter A.

The Transport layer of the OSI model is responsible for providing reliable end-to-end communication between two hosts. So, it is responsible for ensuring delivery, data sequencing and error control.

What does the OSI model consist of?

The OSI model consists of seven layers:

Physical Layer: Responsible for transmitting raw data bits over physical medium such as cables, radio waves, etc.Data Link Layer: Responsible for formatting and transmitting data frames, which are packets of data that have an address header and trailer attached.Network Layer: Responsible for managing and routing data packets from one network to another.Transport Layer: Responsible for reliable end-to-end delivery of data packets.Session Layer: Responsible for establishing, managing, and terminating communication sessions between two or more computers.Presentation Layer: Responsible for translating, encrypting, and compressing data so that it can be sent across the network.Application Layer: Responsible for providing services to end users, such as web browsing and file transfer.

Sheryl is explaining the OSI model to new technicians at her company. She is trying to explain what protocols operate at the various layers of the OSI model. At what layer of the OSI model does TCP operate?

A. Transport

B. Application

C. Network

D. Data link

Learn more about the OSI model:

https://brainly.com/question/15901869

#SPJ4

traffic intensity is a very useful measure of: group of answer choices whether the system is stable or not the distribution of interarrival times the number of customers in a system the amount of congestion in the system

Answers

All of the above-mentioned are accurate answers as traffic intensity is a measure of network traffic conditions . The distribution of interarrival times the number of customers, system stability, and system congestion are all measured by the traffic intensity.

In order to describe network congestion or other degraded network situations, the level of network traffic is gauged by traffic intensity. When determined, traffic intensity—also known as the traffic intensity factor—describes the state of a packet-switched network, such as one that carries TCP traffic.

The traffic intensity factor a relative measure, takes into account the average packet size, arrival rate, and available network transmission speeds. It can be calculated using the formula below:

The equation for the Traffic intensity factor is:

Traffic intensity factor = La/R

where a = average packet arrival rate; L = average packet size; R = transmission rate.

The Traffic Intensity Factor can be used to guide rate-limiting algorithms, error prediction, and probing for network delays.

To learn more about network traffic click here:

brainly.com/question/9392514

#SPJ4

a query maintains your customer table once a user takes action (adding a new customer, updating a customer, or deleting a customer). your chief executive officer (ceo) wants a stored procedure to send an automated email to the customer from the ceo whenever one of these events occurs. which trigger would accomplish this?

Answers

A callable statement offers a way to run stored procedures in various DBMS systems using the same SQL syntax.

When a triggering event takes place, named database objects called triggers are implicitly fired. Run the trigger action either ahead of or following the triggering event. Although triggers and stored procedures are similar, how they are invoked makes a difference. An SQL string supplied to the EXEC command or a stored procedure can be run using this command. The complete command EXECUTE, which is equivalent to EXEC, is another option. When a specific event in the database happens, a stored procedure called a "TRIGGER" is automatically called.

Learn more about command here-

https://brainly.com/question/13994833

#SPJ4

Enter a function in cell H12, based on the payment and loan details, that calculates the amount of cumulative principal paid on the first payment. Be sure to use the appropriate absolute, relative, or mixed cell references.
Facility Amortization Table 4 Loan Details Payment Details 6 Payment 7 APR 8 Years 9 Pmts per Year 10 $4,972.00 3.25% Loan Periodic Rate # of Payments $275,000.00 0.271% 60 12 Beginning Payment Principal RemainingCumulative Cumulative Payment Number Interest Principal Balance Amount Interest PaidRepayment Balance $275,000.00 $4,972.00 ($89.89) 12 13 14 15 16 17 18 19 20 21 4 6 10 23 24 25 26 27 28 12 13 14 15 16 17

Answers

In order to execute the above task successfully on Microsoft Excel, that is, calculating the Cumulative Principal paid, you must use the CUMPRINC function in excel which is given as: =CUMPRINC(rate, nper, pv, start_period, end_period, type)

How does the CUMPRINC function work?

It is to be noted that the CUMPRINC function employs the following logic:

Rate (necessary argument) - The interest rate per period.NPER (necessary argument) - The total number of payment periods required to repay the loan or investment.PV (mandatory parameter) - This is the loan/present investment's current value.Start_period (mandatory parameter) - The number of the beginning period to compute interest over. It must be an integer between 1 and the NPER given.End_period (mandatory parameter) - The final period over which interest should be calculated. It must be an integer ranging from 1 to the given NPER. Type (Mandatory parameter) -  This defines when the payment will be made. It might be either 0 or 1. It is an integer that indicates whether the payment is made at the beginning of the period (0) or at the end of the period (1).

In the above case,

Rate = 3.25%

NPER = 17
PV = $275,000
Start_Period = 1
End_Period is 60
Type = 0

Learn more about Microsoft Excel Functions:
https://brainly.com/question/17960032
#SPJ1

what is the name of the autocad functionality that allows you to create objects that have specific relations to other objects in real time?

Answers

Object Snap Tracking is the name of the autocad functionality that allows you to create objects that have specific relations to other objects in real time.

What is AUTOCAD functionality?

If we had to summarize what AutoCAD is, we might say that it is a CAD-type program focused on modeling and drawing in both 2D and 3D. With an almost infinite capacity to create all kinds of structures and objects, it enables the creation and modification of geometric models.

AutoCAD has expanded beyond its traditional use in the worlds of architecture and engineering to enter the worlds of graphic and interior design thanks to its versatility.

As of right now, AutoCAD offers a wide range of specialized auxiliary tools that cover all industrial sectors related to 2D design and 3D modeling.

Learn more about 3D modeling

https://brainly.com/question/2377130

#SPJ4

c. a new shopping mall has obtained an ipv4 network address, 205.72.16.0 /24. management of the shopping mall would like to create 6 subnets with each subnet serving 32 hosts. could it be done? demonstrate the reason with numbers. (10 points)

Answers

The broadcast address of the 16 subnet, where this host is located, is 23, and the range of acceptable hosts is 17–22.

This indicates that a "/16" leaves the final 16 bits (or final two integers) available for usage in specified addresses and a "/8" leaves the final 24 bits available for use. Here are all of the possible addresses for each, for further clarification: 10.0.0.0/24: contains ranges 10.0.0.1–10.0.0.254 (Can give the most recent number) Therefore, a device with the IP address 192.168.1.200/24 would belong to the same network. And because the subnet mask is /24, the full last octet—28 = 256 - 2 = 254 valid addresses—can be utilized to define the host machine.

Learn more about network here-

https://brainly.com/question/13992507

#SPJ4

Which descriptions best fit a normalized table? Check all that apply.


a. flexible

b. complex

c. easy to maintain

d. difficult to update

e. contains repeated data

Answers

The descriptions best fit a normalized table is: "flexible" (Option A). Normalization is the process of structuring data in a database.

This comprises the creation of tables and the establishment of linkages between those tables in accordance with rules aimed to preserve the data while also making the database more adaptable by avoiding redundancy and inconsistent reliance.

What is a table in Database Management?

Tables are database structures that hold all of the information in a database. Tables logically arrange data in a row-and-column structure comparable to spreadsheets.

Each row represents a distinct record, and each column represents a record field.

Learn more about Database Tables:
https://brainly.com/question/22536427
#SPJ1

write an assembly program that has a macro maximumthat finds the larger of two numbers inputted by the user

Answers

By converting combinations of mnemonics and syntax for operations and addressing modes into their numerical representations, an assembler program generates object code.

What is assembler program?

The majority of the statements or instructions in assembly language are mnemonic processor instructions or data. It is created by compiling the source code of high-level languages like C and C++. Assembly Language aids in program optimization.

.586

.MODEL FLAT

INCLUDE io.h

.STACK 4096

.DATA

value1 DWORD ?

value2 DWORD ?

"Enter the initial number," prompt1 BYTE, 0

"Enter the second number," prompt2 BYTE, 0

string BYTE 40 DUP (?)

resultLbl BYTE  "The maximum value you entered was:", 0

.CODE

_MainProc PROC      

input prompt1, string, 40       ;get user input value1

atod string                     ;convert input (ASCII) to integer

mov ebx, eax

input prompt2, string, 40   ; repeat for value2

atod string

mov value2, eax

cmp eax, ebx                ;compare user inputs

jg greater_than     ;jump conditional if value 1 is greater then value 2

   greater_than:   ;condition if greater than ouput

       dtoa value1, eax                    ;decimal to ASC for output of

integer value stored at ebx

       output  resultLbl, value1           ;output value 1

           jmp exit                    

   less_than:  ;condition if less than ouput

       dtoa value1, eax

       output  resultLbl, value2           ;else output value 2    

           jmp exit

   exit:   ;quit jump              ;end if/else conditional

   mov eax, 0          ;clear memory

   mov ebx, 0

   ret

_MainProc ENDP

END

assemblyx86

The complete question is

Simple assembly program to spit out the greater of two user input numbers. I am having trouble getting the output correct. Example if I entered 45 and 55, the maximum value would be 55, however when I try the reverse 55 and 45 (the answer should still be 55) I get 45. It would appear that this program only ever outputs the second value entered and stored at EAX. Any help is greatly appreciated.

To learn more about assembler program refer to:

https://brainly.com/question/13171889

#SPJ4

; Set up input/output

movlw 0x00

movwf TRISA

movlw 0x00

movwf TRISB

; Define MAXIMUM macro

MAXIMUM MACRO num1, num2

   movf num1, W

   subwf num2, W

   btfsc STATUS, C

   movf num2, W

   movwf num1

   ENDM

; Main program

main:

   ; Prompt user to enter first number

   movlw 0x31

   call putch

   call getch

   movwf num1

   ; Prompt user to enter second number

   movlw 0x32

   call putch

   call getch

   movwf num2

   ; Find and display larger number

   MAXIMUM num1, num2

   call putch

   ; Repeat

   goto main

A technician, Joe, has been tasked with assigning two IP addresses to WAN interfaces on connected routers. In order to conserve address space, which of the following subnet masks should Joe use for this subnet?A. /24B. /32C. /28D. /29E. /30E

Answers

The correct option is E. The following subnet that masks should Joe use for this subnet is /30.

An IP network can be logically divided into subnetworks or subnets. 1, 16 Subnetting is the process of splitting a network into two or more networks.

Similar most-significant bit groups are used in IP addresses to address computers that are on the same subnet. As a result, the network number or routing prefix and the rest field or host identity are logically separated into two fields in an IP address. A host or network interface can be identified by the remainder field.

The Classless Inter-Domain Routing (CIDR) notation allows the routing prefix to be represented as the network's primary address, followed by a slash (/), and the prefix's bit length at the end. To give one example, the prefix is 198.51.100.0/24.

To know more about subnet click here:

https://brainly.com/question/15055849

#SPJ4

A network analyst is setting up a wireless access point for a home office in a remote, rural location. The requirement is that users need to connect to the access point securely but do not want to have to remember passwords. Which of the following should the network analyst enable to meet the requirement?
1. MAC address filtering
2. 802.1X
3. Captive portal
4. WPS

Answers

Since the network analyst is setting up a wireless access point for a home office in a remote, rural location. The option that the network analyst should enable to meet the requirement is option 1. MAC address filtering.

Why is MAC filtering used by people?

A person can be able to stop traffic originating from particular recognized machines or devices using MAC address filtering. The router uses the MAC address of a computer or other networked device to recognize it and decide whether to allow or deny access.

Therefore, as a  network analyst, the use of  MAC filtering is one that is located in the settings under Advanced Settings, Security, Access Control, or a section that is similar to these. The precise location will depend on the router's brand. There are two filtering options available for you to select from.

Learn more about MAC address filtering from

https://brainly.com/question/14527362
#SPJ1

rq 12-4. what is a pre-requisite/co-requisite relationship of product maintenance and fix releases? g

Answers

When maintenance and fixes must be performed concurrently in order for a product to remain effective, this is known as a pre-requisite/co-requisite relationship.

Describe maintenance.

In terms of industrial, commercial, and residential installations, maintenance technically refers to functional inspections, servicing, repairing, or replacing necessary machinery, equipment, and investing in infrastructure. This has evolved over time to encompass varied language that describes different cost-effective maintenance procedures to keep equipment operating; these operations actually occur either before or after a failure. Maintenance is linked primarily to the product or technological system's usage phase, during which the maintainability idea must be taken into account. In this situation, maintainability is understood to be an object's ability to business produces under specified .

To know more about maintenance
https://brainly.com/question/13257907
#SPJ4

What is the correct port number that should be used with the winscp or cyberduck secure file transfer program?.

Answers

The correct port number that should be used with the WinSCP or Cyberduck secure file transfer program is 22.

What is a file transfer program?

A port is a number used in computer networking to designate a connection endpoint and direct data to a particular service. A port is a logical construct that, at the level of software, identifies a particular process or kind of network service within an operating system. Thre are more than 800 ports.

Therefore, WinSCP or Cyberduck secure file transfer programs should be used with port number 22, which is the correct one to use.

To learn more about the file transfer program, refer to the link:

https://brainly.com/question/27380368

#SPJ1

which methods are in the serializable interface. you may need to select more than one answer. group of answer choices readfrom read writeto write there are no methods in the serializable interface

Answers

The ObjectOutputStream and ObjectInputStream classes can perform this task using the writeObject and readObject methods; Serializable lacks these methods.

The ObjectOutputStream and ObjectInputStream classes can perform this task using the write Object and read Object methods; Serializable lacks these methods. Serializable is merely a marker interface; it doesn't call for any fields or methods; it simply sets a flag. A marker interface called Serializable merely informs JVM that a specific object is set to be serialized. Internally, the serialization process takes place.

interface that is serializable. No state from classes that don't implement this interface will be serialized or desterilized. A class that can be serialized has all of its subtypes be serializable. The only purpose of the serialization interface, which has no methods or fields, is to define the semantics of being serializable.

To know more about serializable click here:

https://brainly.com/question/13326134

#SPJ4

a list is sorted in ascending order if it is empty or each item except the last one is less than or equal to its successor. define a predicate issorted that expects a list as an argument and returns true if the list is sorted, or returns false otherwise.

Answers

Python program to know if a list is sorted . Output and code image attached.

Python Code

def isSorted(lst2):

   for p in range(len(lst2)):

       for z in range(p,len(lst2)):

           #Return false if an item is less than or equal to its successor

           if lst2[p]>lst2[z]:

               return False

   return True

if __name__ == '__main__':

# define variables

list = [int() for ind0 in range(5)]

ans = str

# insert numbers into the list

print("Enter 5 numbers: ")

for d in range(5):

 list[d] = int(input())

# call function to determine if the list is sorted

ans = isSorted(list)

if (ans):

    print("Yes")

else:

    print("No")

To learn more about sort lists in python see: https://brainly.com/question/20624654

#SPJ4

Crisha is configuring File History for the first time on her computer. She attaches an external hard drive and onfigures it as the drive for File History. Vhich of the following is most likely to occur in this scenario? a. Trisha will have to specify a folder that is not at the root of the drive for backup. b. Backup data will be added to the free space on the hard drive. c. The hard drive will be formatted before being used by File History d. Any files on the hard drive will be overwritten by backup files and folders.

Answers

Tap Search after sliding in from the right edge of the screen. In the search box, File History settings. Choose the network or external device you want to use by selecting Select a drive. Activate File History.

The $OF contains files whose pathnames are too long to be kept on your backup device, according to this answer on answer.microsoft.com. Additionally, File History is still the program Microsoft advises using for file backups even though Backup and Restore is a feature of Windows 10 itself. In stark contrast to Backup and Restore, File History's main function is to enable you to back up individual files rather than producing a full system image.

Learn more about program here-

https://brainly.com/question/14618533

#SPJ4

under which two circumstances will a switch flood a frame out of every port except the port that the frame was received on?

Answers

Two circumstances that will switch flood frames from every port except the port on which the frame was received:

The frame has a broadcast address as the destination address. The destination address is not known by the switch.

The switch will transfer the frames from the port the frames have been acquired on (where Host A is connected) to the port wherein the router is attached. Kind of visitors will a transfer flood out all ports are broadcast and multicast forwarding. Since broadcast packets should be received by all stations at the network, the switch will reap that goal by flooding broadcast packets out all ports besides the port that it was received on, since there's no need to send the packet back to the originating device. Because a switch by no means learns those addresses, it constantly floods the frames that have those addresses because a transfer by no means learns those addresses, it always floods the frames that have those addresses as the destination address.

Learn more about the switch, here https://brainly.com/question/9431503

#SPJ4

bookmark question for later a map of a database that shows tables and relationships is called what? erp erm relational mapping form schema

Answers

A map of a database that shows tables and relationships is called Schema.

What is database?

A database is a structured collection of related data that has been systematically organized and is kept in a way that makes it simple to manage and update. It serves as the central repository for all data, comparable to a library's collection of books spanning a variety of genres. Imagine data as a library.

The data can be set up in a database in the form of a table with rows and columns. The data can be easily located and retrieved whenever necessary by indexing it. With the aid of databases, a large number of websites on the Internet are operated. Database handlers are used to build databases that allow users to access the data using just one set of software applications.

Learn more about database

https://brainly.com/question/518894

#SPJ4

listen to exam instructions a user reports that she can't connect to a server on your network. you check the problem and find out that all users are having the same problem. what should you do next?

Answers

Note that where while listening to exam instructions a user reports that she can't connect to a server on your network. you check the problem and find out that all users are having the same problem. What you should  do next is: "Determine what has changed" (Option B)

What is a network?

A computer network is a collection of computers that share resources that are located on or provided by network nodes. To interact with one another, the computers employ standard communication protocols across digital linkages.

Local-area networks (LANs) and wide-area networks (WANs) are the two main network kinds (WANs). LANs connect computers and peripheral devices in a constrained physical space, such as a corporate office, laboratory, or college campus, using data-transmitting connections (wires, Ethernet cables, fiber optics, Wi-Fi).

Learn more about networks:
https://brainly.com/question/15002514
#SPJ1

While listening to exam instructions a user reports that she can't connect to a server on your network. you check the problem and find out that all users are having the same problem. what should you do next?

What should you do next?

Create an action plan.Determine what has changed.Established the most probable cause.Identify the affected areas of the network.

40 points to answer all four questions each in 2- 4 sentances minimum

1. What are some challenges that photographers face when trying to take a great image? What can they do to overcome these challenges?

2. What are some elements that separate good images from great images? How have you used these elements in your photography practice to create great images?
3. What purposes can photographers have for taking photographs? Select one purpose and describe a photograph that MOST LIKELY would be taken to meet that purpose.
4. In photography, what does it mean to capture images with your audience in mind? How have you taken photographs while keeping your audience in mind?

Answers

1. Some challenges that photographers face when trying to take a great image include:

Short Windows of Time for the Best Light · Capturing a Scene as it Appears to the Eye

2. Some elements that separate good images from great images include:

Light.Subject.Composition

3. The purposes that photographers have for taking photographs include:

Memorial.Communicative:Creative

4. To capture images with your audience in mind simply means to have the emotions and feelings of the audience in mind.

What is photography about?

Photographs are important in everyone's life because they connect us to our past and remind us of people, places, feelings, and stories from our past. They can assist us in determining who we are.

When we talk about capturing the moment in photography, we're really referring to the photo's feeling, emotion, vibe, or atmosphere. That comes from more than just the subjects or the surroundings; it also comes from the photographer.

Learn more about photograph on:

https://brainly.com/question/25821700

#SPJ1

develop sql code that would create the database files corresponding to your relational schema for the healthone medical database project. write the sql statements for creating the tables, specifying data types and field lengths, establishing primary keys and foreign keys, and implementing other constraints you identified.

Answers

Select New Database from the context menu by right-clicking Databases. Enter a database name in New Database. Select OK to establish the database using all default values; otherwise, carry out the ensuing optional procedures. Select (...) to choose a different owner to alter the owner name.

What SQL code that would create the database files?

Launch MySQL Workbench in administrator mode (Right-click, Run as Admin). To construct the database schema, select File>Create Schema. Click Apply after providing the schema with a name.

Expand the Databases' node in Object Explorer before expanding the database that houses the new table. Right-click your database's Tables node in Object Explorer, and then select New Table.

Therefore, To execute the SQL command that creates the schema, click Apply in the Apply SQL Script to Database window.

Learn more about SQL code here:

https://brainly.com/question/25694408

#SPJ1

in the osi reference model complexities of communication are organized into successive layers of protocols: a. lower-level layers are more specific to medium, higher-level layers are more specific to application.

Answers

Answer:

todo

Explanation:

in the osi reference model complexities of communication are organized into

uppose the cache access time is 10ns, main memory access time is 200ns, the hard drive access time is 10ms, the tlb hit rate is 98%, the cache hit rate is 95% and the page fault rate is 0.001%. assuming non-overlapped access, what is the average access time for the processor to access an item

Answers

The average access time for the processor to access an item is 19.5.

What is average access time?

Average access time is defined as a standard statistic for evaluating the performance of computer memory systems. Access time is the amount of time it takes for an electronic system to respond to a request and provide the needed data.

Main memory access time = 200 ns

Cache access time = 10 ns

Hit ratio = 0.95

Average access time

= 0.95 x 10 + ( 1 - 0.95 ) x 200

= 9.5 + 0.05 x 200

= 9.5 + 10

= 19.5

Thus, the average access time for the processor to access an item is 19.5.

To learn more about average access time, refer to the link below:

https://brainly.com/question/14287236

#SPJ1

what chage command should you enter at the command prompt to set the password for jsmith to expire after 60 days and give a warning 10 days before it expires?

Answers

chage -M 60 -W 10 jsmith Forces jsmith to keep the password 60 days before changing it and gives a warning 10 days before changing it.

Which command should you enter to establish a user account's expiration date?

The "chage" command is used to edit the user's account's password expiration date. It allows you to change the expiration date's current status, set an expiration date to lock the account, toggle between active and passive status, and receive notifications days before the account expires.

What is the Linux chage command?

The tool to "update user password expiry information" is what the chage command calls itself. The chage man page states: The chage command modifies the last password change date as well as the number of days between password updates.

For additional information on the chage command, see

brainly.com/question/13084023

#SPJ4

Practice 1) Several people are standing in a row and need to be divided into
two teams. The first person goes into team 1, the second goes into team 2, the third goes
into team 1 again, the fourth into team 2, and so on.
Write a method that takes an array of positive integers (the weights of the people) and
return an array of two integers, where the first element is the total weight of team 1, and
the second element is the total weight of team 2 after the division is complete.
Make sure your method throws appropriate exceptions. Also test your method with a few
test cases in the main method.
Java

Answers

Java program with function calls and list return. An image of the code and output of the algorithm is attached.

Java Code

import java.util.ArrayList;

import java.util.Scanner;

public class Main {

  public static void main(String[] args) {

     ArrayList<Integer> total_weight = new ArrayList();

     ArrayList<Integer> weight = new ArrayList();

     int N;

     double media;

  // Number of people in row

     N = Numberofpeople();

 // Function to divide the people into two team

     dividedintotwoteams(total_weight,weight, N);

 // Output

     System.out.println("Total weight of team 1 y 2: "+total_weight);

  }

  public static int Numberofpeople() {

     Scanner sc = new Scanner(System.in);

     int n;

 System.out.println("****Divide people into two teams****  ");

 System.out.println("---------------------------------  ");

 System.out.print("Number of people in row: ");

 n = sc.nextInt();

 return n;

  }

public static void dividedintotwoteams(ArrayList<Integer> total_weight, ArrayList<Integer> weight, int n) {

    Scanner sc = new Scanner(System.in);

// Define variables

 int team1, team2, x;

 team1 = 0;

 team2 = 0;

 int w;

 for (x=1;x<=n;x++) {

  System.out.print(x+" person weights: ");

  do {

       w = sc.nextInt();

  } while (w<=0);

  weight.add(w); //add weight to ArrayList

  if (x%2!=0) {

   team1 = team1+w;

  } else {

   team2 = team2+w;

  }

 }

 total_weight.add(team1);

 total_weight.add(team2);

}

}

To learn more about list and functions in java see: https://brainly.com/question/18554491

#SPJ4

the receiver question 18 options: encodes the symbols to interpret the meaning of the message. transmits the symbols to interpret the meaning of the message. decodes the symbols to interpret the meaning of the message. responds to the symbols to interpret the meaning of the message. must ignore the symbols to interpret the meaning of the message.

Answers

A message is encoded by the sender, who then sends it. (3) The message is decoded by the receiver.

The process by which the receiver interprets the symbols used by the message's source is known as decoding. He is the recipient of the communication from the sender. Feedback: Feedback is any behavior by the recipient that shows he has heard and understood the sender's message. The process through which information is conveyed and comprehended by two or more individuals is referred to as communication. Effective communication is about conveying the sender's intended message. The receiver's job is to accurately translate the sender's message, both verbal and nonverbal, into their own language. Decoding is the process of understanding the message.

Learn more about communication here-

https://brainly.com/question/18825060

#SPJ4

jesse, a professional graphic designer, has just installed a new application on his system, which needs a lot of memory for timely processing and high-quality images. jesse's computer has an integrated graphics card.

Answers

Since Jesse,  is a professional graphic designer, The things that she needs are: The latest CPU, a lot of RAM as will fit into the system, as well as a high quality image editor.

What is the term for image quality?

An image's resolution is seen as one that determines how much detail it has. Digital images, film images, and other sorts of images all fall under this umbrella phrase. Image detail is increased with "higher resolution." There are numerous ways to gauge image resolution.

Note that using computer software or by hand, graphic designers create visual designs to express ideas that move, educate, and enthrall people. For applications like commercials, brochures, magazines, and reports, they create the overall layout and production design.

Therefore, in the contezt of the question, High-resolution pictures have at least 300 pixel per inch (ppi). This resolution produces high-quality prints and is essentially necessary for everything you wish to print on paper, especially if it will be used to represent your brand or other significant printed items. So She need to go with this.

Learn more about graphic designer from

https://brainly.com/question/28182994
#SPJ1

Assume you have two lists named list1 and list2 that are of the same length. Create a dictionary in which the elements of list1 are the keys and the elements of list2 are the values. For example, the dictionary will have:an element in which list1[0] is the key and list2[0] is the value,an element in which list1[1] is the key and list2[1] is the value, and so on.

Answers

The solution to the above prompt with regard to the list named are:

A) dict1 = dict([(list1[i], list2[i]) for i in range(len(list1))])

B) dict1 = {}

for i in range(len(list1)) :

[Tab Key]dict1[list1[i]] = list2[i]

C)

dict1 = dict([(list1[i], list2[i]) for i in range(len(list2))])

What is a list in programming?

A list or sequence is an abstract data type in computer science that contains a finite number of ordered items, where a given value may appear more than once.

The usage of lists is another programming method that will be helpful to our algorithm development because many algorithms need the manipulation of sets of data. Similar to a variable, a list—also known as an array—is a tool for data storage.

Learn more about lists:
https://brainly.com/question/26352522
#SPJ1

nstall the ntp service and then verify that the ntp service is running. use the dnf package manager to install the ntp service. use the systemctl utility to verify that the ntp service is running.

Answers

It can be inferred that the above task will be executed in Linux because the systemctl utility command is a Linux utility used to manage the sytemd service and the service manager on Linux.

1) In order to install NTP Service first, execute the following command as sudo in order to update your local repository index: "$ sudo apt-get update"

2) Execute this command to install NTP Server daemon from APT database: "$ sudo apt-get install ntp"

3) Next, open the file in the nano editor as sudo by executing the following command: "$ sudo nano /etc/ntp.conf"

4) Restart the NTP Service using the following command line "$ sudo service ntp restart"

To check that the NTP Service is running, execute the following command: "$ sudo service ntp status"

What is an NTP Service and why is it important?

The Network Time Protocol (NTP) is a service that allows system clocks to be synchronized (from desktops to servers). It is not only useful but also needed for many distributed applications to have synchronized clocks. As a result, if the time originates from an external server, the firewall rules must enable the NTP service.

The usage of authentication techniques in Network Time Protocol (NTP) is critical to preventing an attacker from manipulating time information. Such systems have been present for a long time, such as the Symmetric Key-based method and the Autokey approach.

Learn more about NTP Service:
https://brainly.com/question/14857188?
#SPJ1

in addition to selecting the rule type and conditions, what else must you select when building a conditional formatting rule?

Answers

To choose the desired parameters to restrict the activities available in a form, use the Property Sheet.

Use Format Painter to swiftly apply the same formatting to numerous pieces of text or pictures, such as color, font style and size, or border style. Think of it as copying and pasting for formatting. With format painter, you can copy all of the formatting from one object and apply it to another. The DataEntry attribute can be used to determine whether a bound form only allows data entry when it opens. The Data Entry property only controls whether existing records are displayed; it does not affect whether new records can be added.

Learn more about formatting here-

https://brainly.com/question/12420521

#SPJ4

Raphael does not know how to safely use a circular saw. Which is long-term consequence that could result?.

Answers

Being struck by fragments from the blade or material being cut poses a significant risk. The blade may projectiles if it is overly worn or damaged. The guard is either not present or is malfunctioning.

What long-term consequence of circular saw?

One of the most crucial aspects of circular saw maintenance is using the appropriate blade for the operation. The incorrect blade could break during the cut if you use it.

Cutting wood too slowly enables the spinning blade to make prolonged contact with the wood. Burn marks are generated by heat accumulation and contact between the blade and the wood. Fortunately, the answer to this particular burning issue is simple.

Therefore, Additionally, employing the incorrect circular saw blade type makes the tool work harder than it has to.

Learn more about circular saw here:

https://brainly.com/question/17157503

#SPJ1

Other Questions
If you travel from the United States to Spain, then you must have a passport. Can this be written as a biconditional? If so, what is the biconditional.If you have a passport, then you travel from the United States to Spain.You travel from the United States to Spain if and only if you have a passport.You have a passport if and only if you travel from the United States to Spain.This cannot be written as a biconditional. when administering measles, mumps, rubella (mmr) and pneumococcal conjugate vaccine (pcv13) to a patient at their 15-month appointment, what must be considered regarding vaccine spacing? Identify the adverbial phrase in each sentence.The students in class could see the dark clouds through the window.For a minute and a half, the alarm bell was ringing.Javiers uncle lifts weights every single morning. According to the sternberg's triarchic theory of intelligence, information synthesis is a strong component of which type of intelligence? (site 1) when 40 is subtracted from the square of a number, the result is 3 times the number. Find the positive solution. Due to ______, equatorial regions of earth have warm temperatures year-round, and nonequatorial regions experience lower temperatures, less light, and seasonal changes. -7(1+9a) have no idea how to do this ___________ is the party that facilitates the movement of cargo to the international destination on behalf of shippers and processes the documentation or performance activities related to those shipments.Freight forwarder Riya rides his bike 6 miles in 27 minutes. What is his average speed in miles per minute? Be sure to include the equation for speed in your answer and show your work. you observe a periodic shift of a star's spectrum caused by a planet orbiting the star. if the spectrum is redshifted, the star is movingaway from earth, away from earth How dose mass affect when objects collide?? A number of evolutionary studies show a strong phylogenetic link between prokaryotic and eukaryotic cells. Which of the following is the best statement about the evolutionary origins of eukaryotic cells?Eukaryotes probably evolved from a lost prokaryotic lineage, which could not be placed among either the Archaea or Bacteria domains.Eukaryotes shared a common ancestor with species in the domain Archaea.Eukaryotes shared a common ancestor with species in the domain Bacteria.Eukaryotic hillcrest health system includes an acute care hospital, a nursing facility, and primary care clinics. all records are stored in the him department, thus making the file area very active. for scheduled visits to primary care providers, records must be requisitioned 24 hours in advance. this is a(n) requisition. the managerial value of regularly consulting the data in the year-to-year performance highlights report has to do with the data provided being the quickest and best way to: Benjamin invested $20,000 in an account paying an interest rate of 7&5/8 % compounded monthly. Kehlani invested $20,000 in an account paying an interest rate of 7&3/4 compounded quarterly. After 10 years, how much more money would Kehlani have in her account than Benjamin, to the nearest dollar? please helpppp!!! !! 10/8 = n/10 proportions please 3.if not genetic, is there another explanation for the prevalence of myocardial infarctions and high cholesterol in this pedigree? please explain. as a child, antonio rossini performed as an apprentice opera performer, and later entered the conservatory of bologna to study cello and composition. question 1 options: true false of the following teams discussed in the text, which is best demonstrated by the actions that take place from the moment of a severe automobile accident to the rehabilitation of the victim of the crash?