5. Which of the following people is credited with creating the first successful video game?
a) Al Alcorn
b) Ralph Baer
c) Shigeru Miyamoto
d) Nolan Bushnell

Answers

Answer 1
William Higinbotham other than him C
Answer 2
William Higinbotham
October 1958: Physicist Invents First Video Game. In October 1958, Physicist William Higinbotham created what is thought to be the first video game. It was a very simple tennis game, similar to the classic 1970s video game Pong, and it was quite a hit at a Brookhaven National Laboratory open house.

Related Questions

g Points The critical section cannot be executed by more than one process at a time. false true Save Answer Q3.28 Points The code satisfies the progress condition. false true Save Answer Q3.38 Points The code satisfies the bounded waiting condition. false true Save Answer Q3.48 Points No matter how many times this program is run, it will always produce the same output. false true

Answers

Answer: Hello your question lacks some details attached below is the missing detail

answer :

a) True , B) False  C) True  D) True

Explanation:

a) True ; The critical section cannot be executed by more than one process at a time

b) False : The code does not satisfy the progress condition, because while loops are same hence no progress

c ) True :  The code satisfies the bounded waiting condition, because of the waiting condition of the while loop

d) True : No matter how many times this program is run, it will always produce the same output, this is because of the while loop condition

The Quick Search capability is found on which control?

Database query
Backstage view
Record navigator
File management

Answers

Answer:

backstage view

Explanation:

-) Files are organized in:
i) RAM
iii) Directories
ii) Cache
iv) None of the above​

Answers

Answer:

iii) Directories.

Explanation:

Files are organized in directories. These directories are paths that describes the location wherein a file is stored on a computer system. Thus, it is generally referred to as file folders.

For example, a directory would be C:/Users/Lanuel/Music/songs of joy.mp3.

What best determines whether a borrower's interest rate on an adjustable rato loan goes up or down?
a fixed interest rate
a bank's finances
a market's condition
a persons finances

Answers

It should be noted that term that best determines whether a borrower's interest rate on an adjustable ratio loan goes up or down is market's condition.

This is because, Market conditions helps to know the state of an industry or economy, and this will helps to get the necessary information about borrower's interest rate on an adjustable ratio loan.

Therefore, option C is correct.

Learn more about Market conditions at:

https://brainly.com/question/11936819

Answer:c

Explanation:

Code a complete Java program to load and process a 1-dimensional array.

Create clear comments as you code to tell me what you are doing.
Import the Java libraries that you will need.
Create a single dimensional array that will hold 15 wages.
In the main, load an array with all of the records from a .txt file named Salary txt. The file has 15 records in it.
Sort the array in ascending order.
Write a method named increaseWages(). This method will add $500 to each of the 15 wages. In other words, you are giving each person a raise of $500.
Pass the array to the method from the main().
Increase the wage amounts in the array (as described above), in the method. In other words, in the end the array should hold the NEW, higher wages.
Output each new wage (use the console for this)
Calculate a total of the new wages in the method
Output the total of the new wages in the method (use a dialog box for this)
Return the array with the new wages to the main().
There is NO user interaction in this program.

Answers

Answer:

Here you go.Consider giving brainliest if it helped.

Explanation:

import java.io.*;//include this header for the file operation

import java.util.*;//to perform java utilities

import javax.swing.JOptionPane;//needed fro dialog box

class Driver{

  public static void main(String args[]){

      int wages[]=new int[15];//array to hold the wages

      int index=0;

      try{

          //use try catch for the file operation

          File file=new File("wages.txt");

          Scanner sc=new Scanner(file);//pass the file object to the scanner to ready values

          while(sc.hasNext()){

              String data=sc.nextLine();//reads a wage as a string

              String w=data.substring(1);//remove the dollar from the string data

              wages[index++]=Integer.parseInt(w);//convert the wage to int and store it in the array

          }

          sc.close();//close the scanner

      }catch(FileNotFoundException e){

          System.out.println("Error Occurrred While Reading File");

      }

     

      //sort the array using in built sort function

      Arrays.sort(wages);

      //print the wages

      System.out.println("Wages of 15 person in ascending order:");

      for(int i=0;i<wages.length;i++){

          System.out.print("$"+wages[i]+" ");

      }

      //call the increases wages method

      wages=increaseWages(wages);//this method return the updated wages array

     

  }

 

  //since we can call only static methods from main hence increaseWages is also static

  public static int[] increaseWages(int wages[]){

      //increase the wages

      for(int i=0;i<wages.length;i++){

          wages[i]+=500;

      }

     

      //print the new wages

      int sum=0;

      System.out.println("\n\nNew wages of 15 person in ascending order:");

      for(int i=0;i<wages.length;i++){

          sum+=wages[i];//sums up the new wages

          System.out.print("$"+wages[i]+" ");

      }

     

      //display the summation of the new wages in a dialog box

      JOptionPane.showMessageDialog(null,"Total of new wages: "+sum);

      return wages;

  }

}

From your finding,conclusion and recommendations can you make on the issue of human rights violations to:Government​

Answers

Answer:
Different recommendations and conclusion can be drawn on human rights violation in government and communities.
Explanation:
1-Foremost thing that government can do is the legislation to control the human rights violation and this law should be applicable on all the people belong to any community. Government also make human rights violation issue a part of their policy so that every government could understand before hand.
2-Communities should run campaign so that people understand their human rights and can complain against such violations.
Human right violations happens all over the world but individuals and government need to work together to stop and eradicate such violations

Commands from the Quick Access toolbar can be used by
Clicking on the command
Navigating to Backstage view
Selecting the appropriate options on the status bar
Selecting the function key and clicking the command​

Answers

Answer:

Clicking on the command.

Explanation:

PowerPoint application can be defined as a software application or program designed and developed by Microsoft, to avail users the ability to create various slides containing textual and multimedia informations that can be used during a presentation.

Some of the features available on Microsoft PowerPoint are narrations, transition effects, custom slideshows, animation effects, formatting options etc.

A portion of the Outlook interface that contains commonly accessed commands that a user will require frequently and is able to be customized by the user based on their particular needs is referred to as the Quick Access toolbar.

Commands from the Quick Access toolbar can be used by clicking on the command.

What is the full form of HTML?​

Answers

Answer:

Hyper text mark up language. is the full form of HTML

hope it helps

stay safe healthy and happy.

Answer:

Hyper text markup language


What is Microsoft Excel? Why is it so popular​

Answers

Answer:

Its a spreadsheet devolpment by Microsoft.

Explanation:

Which of the following is not an advantage of e-commerce for consumers?
a. You can choose goods from any vendor in the world.
b. You can shop no matter your location, time of day, or conditions.
c. You have little risk of having your credit card number intercepted.
d. You save time by visiting websites instead of stores.

Answers

Answer:  c. You have little risk of having your credit card number intercepted.

====================================

Explanation:

Choice A is false because it is an advantage to be able to choose goods from any vendor from anywhere in the world. The more competition, the better the outcome for the consumer.

Choice B can also be ruled out since that's also an advantage for the consumer. You don't have to worry about shop closure and that kind of time pressure is non-existent with online shops.

Choice D is also a non-answer because shopping online is faster than shopping in a brick-and-mortar store.

The only thing left is choice C. There is a risk a person's credit card could be intercepted or stolen. This usually would occur if the online shop isn't using a secure method of transmitting the credit card info, or their servers are insecure when they store the data. If strong encryption is applied, then this risk can be significantly reduced if not eliminated entirely.

Answer:

c. You have little risk of having your credit card number intercepted.

Explanation:

Hope this helps

What should be the first tag in any HTML document? A. <head> B. <title> C. <html> D. <!DOCTYPE >​

Answers

Answer:

C.

Explanation:

Jorge necesita saber a cuantos grados Fahrenheit esta la temperatura, pero el servicio meteorológico la indica
en grados centígrados, ayúdale a resolverlo. Formula F=(9/5*C) +32
·HACERLO EN ALGORITMO

Answers

Answer:

Eso es fácil hermano de matemáticas. Solo haces 9/5 veces c = 18/25 + 32 = 67

Explanation:

The percentage of the audience with TV sets turned on that is watching a particular program is known as the ____________________.

Answers

Answer:

Share.

Explanation:

Social media publishing also known as broadcasting, can be defined as a service that avails end users the ability to create or upload web contents in either textual, audio or video format in order to make them appealing to a target audience.

Thus, these multimedia contents are generally accessed by end users from time to time through the use of various network-based devices and television set. As users access these contents, they're presented with the option of sharing a particular content with several other people a number of times without any form of limitation.

Additionally, the demographic or amount of audience (viewers) that a television show or program is able to get to watch at a specific period of time is generally referred to as share.

Hence, the percentage of the audience with TV sets turned on that is watching a particular program is known as the share.

For example, the percentage of the audience tuned in to watch a champions league final on a Saturday night, 8:00pm via their television set.

Develop a stored procedure that will take a state abbreviation as a parameter and list the name of the state, vendor, and total amount still owed on invoices for the vendor with the highest amount still owed in that state, i.e. list the vendor (along with their state and amount owed) with the most money still owed for a given state. (List only vendors to whom a positive amount is still owed; omit vendors to whom no amount is owed). The Canvas assignment includes a link to a script for a partially completed stored procedure called owed_to_state_vendors. Review the code, including the comments, to understand the requirements of the stored procedure. You will complete the stored procedure, using the comments as a guide. Use of a CTE is advised to accomplish this task.

Answers

Answer:

ummm so sorry

Explanation:

i will try to help u just give me a sec

Evaluate 3³×2³×4²×3-¹×4-²​

Answers

Answer: I already answered this question here:

Answer:

72:)

Explanation:

Hope it helps;))))))))

7. A puzzle game featuring falling bricks which need to be3 organized on the screen describes which of the following very popular games from the 80s?
a) Tricks
b) Tetris
c) Sonics
d) Bricks

Answers

Answer:

Tetris

Explanation:

When it comes to having certain sales skills as a hotel manager, being able to really hear, learn about, and show customers that the products/services you offer will meet their needs is a vital skill to have. When you show customers that you truly hear their needs, what sales skill are you practicing?
active listening
product knowledge
communication
confidence

Answers

Answer:

Communication

Explanation:

The ability to communicate clearly when working with customers is a key skill because miscommunications can result in disappointment and frustration. The best customer service professionals know how to keep their communications with customers simple and leave nothing to doubt.

There Are Two Programs in this Question who will attempt first i will give brainliest ans reward and big points:-
Question no 1:-
Consider a base class named Employee and its derived classes HourlyEmployee and PermanentEmployee while taking into account the following criteria.
 Employee class has two data fields i.e. a name (of type string) and specific empID (of type integer)
 Both classes (HourlyEmployee and PermanentEmployee) have an attribute named hourlyIncome
 Both classes (HourlyEmployee and PermanentEmployee) have three-argument constructor to initialize the hourlyIncome as well as data fields of the base class
 Class HourlyEmployee has a function named calculate_the_hourly_income to calculate
the income of an employee for the actual number of hours he or she worked. One hour income is Rs. 150
 Similarly, PermanentEmployee class has function named calculate_the_income to calculate the income of an employee that gets paid the salary for exact 240 hours, no matter how many actual hours he or she worked. Again, one hour salary is Rs. 150.
Implement all class definitions with their respective constructors to initialize all data members and functions to compute the total income of an employee. In the main() function, create an instance of both classes (i.e. HourlyEmployee and PermanentEmployee) and test the working of functions that calculate total income of an employee
Question no 2:-
Consider a class BankAccount that has
 Two attributes i.e. accountID and balance and
 A function named balanceInquiry() to get information about the current amount in the account
Derive two classes from the BankAccount class i.e. CurrentAccount and the SavingsAccount. Both classes (CurrentAccount and SavingsAccount) inherit all attributes/behaviors from the BankAccount class. In addition, followings are required to be the part of both classes
 Appropriate constructors to initialize data fields of base class
 A function named amountWithdrawn(amount) to withdraw certain amount while taken into account the following conditions
o While withdrawing from current account, the minimum balance should not decrease Rs. 5000
o While withdrawing from savings account, the minimum balance should not decrease Rs. 10,000
 amountDeposit(amount) to deposit amount in the account
In the main() function, create instances of derived classes (i.e. CurrentAccount and SavingsAccount) and invoke their respective functions to test their working

Answers

Answer:

here you go ,could only do Question 2.try posting question 1 seperately maybe someone else can also try to help

Explanation:

Question 2.

#include <iostream>

using namespace std;

// class BankAccount

class BankAccount{

  

    // instance variables

    private:

        int accountID;

        int balance;

  

    public:

      

        // constructor

        BankAccount(int accountID, int balance){

            this->accountID = accountID;

            this->balance = balance;

        }

      

        // getters and setters

        void setAccoutnId(int accountID){

            this->accountID = accountID;

        }

      

        int getAccountId(){

            return accountID;

        }

      

        void setBalance(int balance){

            this->balance = balance;

        }

      

        int balanceInquiry(){

            return balance;

        }

};

class CurrentAccount : public BankAccount{

  

    public:

  

        // constructor

        CurrentAccount(int accountID, int balance):BankAccount(accountID,balance){

          

        }

      

        // function amount to withdraw

        void amountWithdrawn(int amount){

            setBalance(balanceInquiry()-amount);

        }

      

        // function to deposit amount

        void amountDeposit(int amount){

            setBalance(balanceInquiry()+amount);

        }

};

class SavingsAccount : public BankAccount{

  

    public:

      

        // constructor

        SavingsAccount(int accountID, int balance):BankAccount(accountID,balance){

          

        }

  

        // function amount to withdraw

        void amountWithdrawn(int amount){

            setBalance(balanceInquiry()-amount);

        }

      

         // function to deposit amount

        void amountDeposit(int amount){

            setBalance(balanceInquiry()+amount);

        }

      

      

};

int main()

{

    // calling function of Current Account

    cout<<"Current Account : "<<endl;

    CurrentAccount current(122,100000);

    current.amountWithdrawn(10000);

    cout<<"Your balance after withdraw : ";

    cout<<current.balanceInquiry()<<endl;

    current.amountDeposit(30000);

    cout<<"Your balance after deposit : ";

    cout<<current.balanceInquiry()<<endl;

    cout<<endl<<endl;

  

    // calling function of Savings Account

    cout<<"Savings Account : "<<endl;

    SavingsAccount saving(125,80000);

    saving.amountWithdrawn(5000);

    cout<<"Your balance after withdraw : ";

    cout<<saving.balanceInquiry()<<endl;

    saving.amountDeposit(20000);

    cout<<"Your balance after deposit : ";

    cout<<saving.balanceInquiry();

    return 0;

}

12. ______ is considered to be the first video game mascot.
a) Pinky
b) Bowser
c) E. T. Extra-Terrestrial
d) Pac-Man

Answers

D pac man im hope im right

This project must target a Unix platform and execute properly on our CS1 server.
The project must be written in C, C++, or Java.
Problem Overview
This project will simulate a scheduler scheduling a set of jobs.
The project will allow the user to choose a scheduling algorithm from among the six presented in the textbook. It will output a representation of how the jobs are executed.
Design
You may design your own implementation approach, but here are a few constraints.
Your program should read in a list of jobs from a tab-delimited text file named jobs.txt. The format of the text file should have one line for each job, where each line has a job name, a start time and a duration. The job name must be a letter from A-Z. The first job should be named A, and the remaining jobs should be named sequentially following the alphabet, so if there are five jobs, they are named A-E. The arrival times of these jobs should be in order.
The scheduler choice should be a command-line parameter that is one of the following: FCFS, RR, SPN, SRT, HRRN, FB, ALL. If ALL is input, the program should produce output for all six scheduling algorithms. RR and FB should use a quantum of one. FB should use three queues.
Your output should be a graph as shown in the slides. The graph can be text or you can use a graphics package such as JavaFX to draw the graph. For text, you may draw the graph down the page rather than across.
Your program should be able to reproduce the sample shown in the book as well as any similar set of jobs.
Sample Output
Below is sample text-based output. For graphical output, you can make the graph look like the ones in the textbook and slides.
FCFS
A XXX
B XXXXXX
C XXXX
D XXXXX
E XX
FCFS (this is another way you may print the output instead of the one above)
A B C D E
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X

Answers

Answer:

hope this helps ,if it did pls do consider giving brainliest

Explanation:

// Java program for implementation of FCFS scheduling

import java.text.ParseException;

class GFG {

// Function to find the waiting time for all

// processes

static void findWaitingTime(int processes[], int n,

int bt[], int wt[]) {

// waiting time for first process is 0

wt[0] = 0;

// calculating waiting time

for (int i = 1; i < n; i++) {

wt[i] = bt[i - 1] + wt[i - 1];

}

}

// Function to calculate turn around time

static void findTurnAroundTime(int processes[], int n,

int bt[], int wt[], int tat[]) {

// calculating turnaround time by adding

// bt[i] + wt[i]

for (int i = 0; i < n; i++) {

tat[i] = bt[i] + wt[i];

}

}

//Function to calculate average time

static void findavgTime(int processes[], int n, int bt[]) {

int wt[] = new int[n], tat[] = new int[n];

int total_wt = 0, total_tat = 0;

//Function to find waiting time of all processes

findWaitingTime(processes, n, bt, wt);

//Function to find turn around time for all processes

findTurnAroundTime(processes, n, bt, wt, tat);

//Display processes along with all details

System.out.printf("Processes Burst time Waiting"

+" time Turn around time\n");

// Calculate total waiting time and total turn

// around time

for (int i = 0; i < n; i++) {

total_wt = total_wt + wt[i];

total_tat = total_tat + tat[i];

System.out.printf(" %d ", (i + 1));

System.out.printf(" %d ", bt[i]);

System.out.printf(" %d", wt[i]);

System.out.printf(" %d\n", tat[i]);

}

float s = (float)total_wt /(float) n;

int t = total_tat / n;

System.out.printf("Average waiting time = %f", s);

System.out.printf("\n");

System.out.printf("Average turn around time = %d ", t);

}

// Driver code

public static void main(String[] args) throws ParseException {

//process id's

int processes[] = {1, 2, 3};

int n = processes.length;

//Burst time of all processes

int burst_time[] = {10, 5, 8};

findavgTime(processes, n, burst_time);

}

}

// Java program to implement Shortest Job first with Arrival Time

import java.util.*;

class GFG {

static int[][] mat = new int[10][6];

static void arrangeArrival(int num, int[][] mat) {

for (int i = 0; i < num; i++) {

for (int j = 0; j < num - i - 1; j++) {

if (mat[j][1] > mat[j + 1][1]) {

for (int k = 0; k < 5; k++) {

int temp = mat[j][k];

mat[j][k] = mat[j + 1][k];

mat[j + 1][k] = temp;

}

}

}

}

}

static void completionTime(int num, int[][] mat) {

int temp, val = -1;

mat[0][3] = mat[0][1] + mat[0][2];

mat[0][5] = mat[0][3] - mat[0][1];

mat[0][4] = mat[0][5] - mat[0][2];

for (int i = 1; i < num; i++) {

temp = mat[i - 1][3];

int low = mat[i][2];

for (int j = i; j < num; j++) {

if (temp >= mat[j][1] && low >= mat[j][2]) {

low = mat[j][2];

val = j;

}

}

mat[val][3] = temp + mat[val][2];

mat[val][5] = mat[val][3] - mat[val][1];

mat[val][4] = mat[val][5] - mat[val][2];

for (int k = 0; k < 6; k++) {

int tem = mat[val][k];

mat[val][k] = mat[i][k];

mat[i][k] = tem;

}

}

}

// Driver Code

public static void main(String[] args) {

int num;

Scanner sc = new Scanner(System.in);

System.out.println("Enter number of Process: ");

num = sc.nextInt();

System.out.println("...Enter the process ID...");

for (int i = 0; i < num; i++) {

System.out.println("...Process " + (i + 1) + "...");

System.out.println("Enter Process Id: ");

mat[i][0] = sc.nextInt();

System.out.println("Enter Arrival Time: ");

mat[i][1] = sc.nextInt();

System.out.println("Enter Burst Time: ");

mat[i][2] = sc.nextInt();

}

System.out.println("Before Arrange...");

System.out.println("Process ID\tArrival Time\tBurst Time");

for (int i = 0; i < num; i++) {

System.out.printf("%d\t\t%d\t\t%d\n",

mat[i][0], mat[i][1], mat[i][2]);

}

arrangeArrival(num, mat);

completionTime(num, mat);

System.out.println("Final Result...");

System.out.println("Process ID\tArrival Time\tBurst" +

" Time\tWaiting Time\tTurnaround Time");

for (int i = 0; i < num; i++) {

System.out.printf("%d\t\t%d\t\t%d\t\t%d\t\t%d\n",

mat[i][0], mat[i][1], mat[i][2], mat[i][4], mat[i][5]);

}

sc.close();

}

}

The Freeze Panes feature would be most helpful for which situation?
A.when the functions used in a worksheet are not working correctly
B.when a large worksheet is difficult to interpret because the headings disappear during scrolling
C.when the data in a worksheet keeps changing, but it needs to be locked so it is not changeable
D.when a large worksheet is printing on too many pages

Answers

Answer:

i think a but not so sure

Explanation:

Answer: Option B is the correct answer :)

Explanation:

a user called to inform you that the laptop she purchased yesterday is malfunctioning and will not connect to her wireless network. You personally checked to verify that the wireless worked properly before the user left your office. the user states she rebooted the computer several times but the problems still persists. Which of the following is the first step you should take to assist the user in resolving this issue?

Answers

1. Make sure most recent update has been installed.
2. Run Windows Network Trouble shooter to ensure proper drivers are up to date and existing.
3. Carefully Review Windows Event Log for more detailed troubleshooting.
4.Last resort install a fresh boot on the laptop.

In an employee database, an employee's ID number, last name, first name, company position, address, city, state, and Zip Code make up a record. true false

Answers

Answer:

false

Explanation:

What is a principle of DevOps?​

Answers

Answer:

the main principles of DevOps are automation, continuous delivery, and fast reaction to feedback. You can find a more detailed explanation of DevOps pillars in the CAMS acronym: Culture represented by human communication, technical processes, and tools.

Susan needs to configure a WHERE condition in the code for a macro. Which option will she use?

Database Analyzer
Macro Builder
Expression Builder
Condition Formatter

Answers

Answer:condition formatter have a blessed day.

Explanation:

Answer:

D) Condition Formatter took the test

Explanation:

In the code snippet below, pick which instructions will have pipeline bubbles between them due to hazards.

a. lw $t5, 0($t0)
b. lw $t4, 4($t0)
c. add $t3, $t5, $t4
d. sw $t3, 12($t0)
e. lw $t2, 8($t0)
f. add $t1, $t5, $t2
g. sw $t1, 16($t0)

Answers

Answer:

b. lw $t4, 4($t0)

c. add $t3, $t5, $t4

Explanation:

Pipeline hazard prevents other instruction from execution while one instruction is already in process. There is pipeline bubbles through which there is break in the structural hazard which preclude data. It helps to stop fetching any new instruction during clock cycle.

10. Created by Tomohiro Nishikado in 1978, which game is considered the first shooter on the market?
a) Pong
b) Space Invaders
c) Dark Shooters
d) Space Monsters

Answers

Answer:

B.

Explanation:

Space Invaders

What is the value of the variable named result after the following code executes?

var X = 5; var Y = 3; var Z = 2;

var result = ( X + Y ) / Z * X;

Answers

Answer:

The value of result is 20

Explanation:

Given

The above code segment

Required

The value of result

In the first line, we have:

[tex]X = 5; Y = 3; Z = 2[/tex]

In the second, we have:

[tex]result = (X + Y)/Z * X[/tex]

This implies that:

[tex]result = (5 + 3)/2 * 5[/tex]

[tex]result = 8/2 * 5[/tex]

[tex]result = 4 * 5[/tex]

[tex]result = 20[/tex]

A program contains the following prototype:
int cube( int );
and function:
int cube( int num )
{
return num * num * num;
}
Which of the following is a calling statement for the cube function that will cube the value 4 and save the value that is returned from the function in an integer variable named result (assume that the result variable has been properly declared)?
a. cube( 4 );
b. cube( 4 ) = result;
c. result = cube( int 4 );
d. result = cube( 4 );

Answers

Answer:

d. result = cube(4);

Explanation:

Given

Prototype: int cube(int num);

Function: int cube(int num)  {  return num * num * num; }

Required

The statement to get the cube of 4, saved in result

To do this, we have to call the cube function as follows:

cube(4);

To get the result of the above in variable result, we simply assign cube(4) to result.

So, we have:

result = cube(4);

(Word Occurrences) Write a program word-occurrences.py that accepts filename (str) as command-line argument and words from standard input; and writes to standard output the word along with the indices (ie, locations where it appears in the file whose name is filename - writes "Word not found" if the word does not appear in the file. >_*/workspace/project 6 $ python3 word_occurrences.py data/Beatles.txt dead Center> dead -> (3297, 4118, 4145, 41971 parrot center> Word not found word occurrences.py from instream import InStream from symboltable import Symbol Table import stdio import sys # Entry point. def main (): # Accept filename (str) as command line argument. # Set in Stream to an input stream built from filename. # Set words to the list of strings read from instream # Set occurrences to a new symbol table object. for 1, word in enumerate (...) # For each word (having index 1) in words... # It word does not exist in occurrences, insert it with an empty list as the value. # Append i to the list corresponding to word in occurrences. while . #As long as standard input is not empty.. # Set word to a string read from standard input. # If word exists in occurrences, write the word and the corresponding list to standard Exercises word occurrences.py #output separated by the string Otherwise, write the message Word not found 1 else main()

Answers

Answer:

The solution in Python is as follows:

str = "sample.txt"

a_file = open(str, "r")

words = []

for line in a_file:

stripped_line = line.strip()

eachlist = stripped_line.split()

words.append(eachlist)

a_file.close()

word_list= []

n = int(input("Number of words: "))

for i in range(n):

myword = input("Enter word: ")

word_list.append(myword)

for rn in range(len(word_list)):

index = 0; count = 0

print()

print(word_list[rn]+": ",end = " ")

for i in range(len(words)):

 for j in range(len(words[i])):

  index+=1

  if word_list[rn].lower() == words[i][j].lower():

   count += 1

   print(index-1,end =" ")

if count == 0:

 print("Word not found")

Explanation:

See attachment for complete program where comments are used to explain difficult lines

Other Questions
Which excerpt from the poem "The Great Wave: Hokusai" best supports the conclusion that the artist intended the wave to feel threatening?It is because the sea is blue,Because Fuji is blue, because the bent blueMen have white faces, like the snowOn Fuji, like the crest of the wave in the sky the color of theirBoats.It is because the airIs full of writing, because the wave is still: that nothingWill harm these frail strangers,That high over Fuji in an earthcolored sky the fingersWill not fallIn the painter's seaAll fishermen are safe. All anger bends under his unity.But the innocent bystander, he merely'Walks round a corner, thinking of nothing': hiddenHe stands half in and half out of the world; he is the men,But he cannot see below FujiThe shore the color of sky; he is the wave, he stretchesHis claws against strangers. Anybody can help me on this Brampton is 70 kn due east of Abbott. The bearing of Corwood from Abbott is 015 degrees and from Brampton is 290 degrees. Calculate the distance between Corwood and Brampton to the nearest kilometres y= 3 cos(x)+2 I need help solving this rotate the point -104 to within 10 Use the table to predict the number of times you will spin 1 when you spin the spinner 100 times. Which of the following statements most accurately describes the difference between aptitudes and skills?O Aptitudes are ability, and skills are the potential.O Aptitudes can be learned or trained, unlike skills.O Aptitude is the level of skill that a person has gained.O Aptitude is a person's potential to learn new skills. Ayer mi amigo Miguel fue a Mexico.____el ultimo dia de la escuela.A. DespedirseB. Se despidC. Se despediD. Se despidi I need help simplifying this problem:If someone could explain how to do this problem, I'd really appreciate it :)C(t)= -0.3(t-12)^2+40C(12)= -0.3(12-12)^2+40Thankssss, ily! The total surface area of rectangular solid is 130cm.If the solid is 7cm long and 5cm wide ,calculate the height 12345Qu proyecta el Ballet de Amalia Hernndez?a. la belleza de la mujer mexicanab. la belleza del movimiento desde las culturaspre-colombianas hasta los tiemporevolucionariosC las danzas modernasd. proyecta paz y desarrolloPlease select the best answer from the choices providedBD 20 points! Mark brainliest!What are the functions of the epididymis, the prostate, and the seminal vesicle in the male system? Determina la presin que ejercen los patinadores sobre el hielo, teniendo en cuenta que la cuchilla del patn mide 30cm de largo y su grosor es de 5mm, y que el peso de las dos personas es 120kg PLEASE HELP ME!!! Find m (angle) LMN 3 - 2(x +3) = x - 18 ? How many onto functions are there from a set with three elements to a set with eight elements? Solve for y=f(x) X=What is the input when the output is -3 someone h e l p m e please Please Answer QUICK!!!Which graph shows the quadratic function y = 3x2 + 12x + 10?A. Graph AB. Graph BC. Graph CD. Graph D Luke is designing a scale model of a clock tower. The design of the front of the tower is shown below.A figure can be broken into a triangle and rectangle. The rectangle has a base of 200 millimeters and height of 50 millimeters. The triangle has a base of 50 millimeters and height of 100 millimeters.What will be the area of the front face of his model?2,500 square millimeters10,000 square millimeters12,500 square millimeters15,000 square millimeters