Questions
USING PYTHON. Thank you in advance Write a program that allows the user to enter a...

USING PYTHON. Thank you in advance

Write a program that allows the user to enter a series of string values into a list. When the user enters the string ‘done’, stop prompting for values. Once the user is done entering strings, create a new list containing a palindrome by combining the original list with the content of the original list in a reversed order.

Sample interaction:

Enter string: My

Enter string: name

Enter string: is

Enter string: Sue

Enter string: done

The palindrome is: My name is Sue Sue is name My

In: Computer Science

For tablet and desktop devices, you’ll lay out the horizontal navigation list as a single row...

For tablet and desktop devices, you’ll lay out the horizontal navigation list as a single row of links. Within the media query, create a style rule that displays the ul element within the horizontal navigation list as a flexbox, oriented in the row direction with no wrapping. Set the height of the element to 40 pixels For each li element within the ul element of the horizontal navigation list set their growth, shrink, and basis size values to 1, 1, and auto respectively so that each list items grows and shrinks at the same rate.

In: Computer Science

Write an array-based implementation of the ADT list that expands the size of the array of...

Write an array-based implementation of the ADT list that expands the size of the array of list entries as needed so that the list can always accommodate a new entry.

Also reduce the size of the array as needed to accommodate several removals. When the size of the array is greater than 20 and the number of entries in the list is less than half the size of the array, reduce the size of the array so that it is three quarters of its current size.

Note: In expanding the array - when an element is added to a full array, double the size of the array.

In: Computer Science

Take advantage of the fact that the range of the integers in the list is fixed...

  • Take advantage of the fact that the range of the integers in the list is fixed (0 to m, where m is the largest ID you can find in the linked list). Use a boolean array seen of length m+1 to indicate if elements in the array have been seen before. Then determine if there are duplicates by performing a single pass through the unsorted list. Hint: while traversing the list, seen[item] = True if integer item has been seen before in the search.
  • 0
    1
    15
    112
    5000
  • 150
    112
    5000

In: Computer Science

Write a version of the binary search algorithm that can be used to search a string...

Write a version of the binary search algorithm that can be used to search a string vector object. Also, write a program to test your algorithm. (Use the selection sort algorithm you developed in Programming Exercise 12 to sort the vector.) Your program should prompt the user to input a series of strings, ending the input stream with zzz. The program should then prompt the user to search for a specific string in the list. If the string is found in the list:

 x is found in the list

else:

x is not in the list

*need answer in C++*

In: Computer Science

Provide SQL Statement for the ff queries: 1. List the total computer offer value in Stevens...

Provide SQL Statement for the ff queries:

1. List the total computer offer value in Stevens Point

2. List of the computer transactions ordered by transaction value in descending order

3. List of the number and average value of computer requests in Wausau

4. List the number and average value of computer transactions

Tables are :

Tb_Product

Prod_ID, Name, MU

Tb_Offers

Supp_ID, Prod_ID, Price, Quantity

Tb_Transactions

Tran_ID,Supp_ID, Con_ID, Prod_ID, Price, Quantity

Tb_Suppliers

Supp_ID, Name, City

Tb_Request

Con_ID, Prod_ID, Price, Quantity

In: Computer Science

Submit your complete implementation of our abstract list type using an array, ArrayList.java. public class ArrayList...

Submit your complete implementation of our abstract list type using an array, ArrayList.java.

public class ArrayList {
public static void main(String[] args) {
ArrayList list = new ArrayList();

}
private String[]a = new String[1000];
private int end = -1;

 // Throw an IndexOutOfBoundsException if the index is invalid
  public String get(int index); 

  // Return the first index in the list with the given value, or -1 if it's not found
  public int find(String val); 

  // Return true if the element is successfully added, false if the list is full
  public boolean add(String val); 

  // Throw an IndexOutOfBoundsException if the index is invalid
  public void add(int index, String val); 

  // This method should return true only if the value is in the list and removed, 
  // false if the value isn't found in the list 
  public boolean remove(String val); 

  // return the value that's removed; throw an IndexOutOfBoundsException if the index is invalid
  public String remove(int index); 

  // LENGTH() → int
  public int size(); 

  // Return true if the list is empty, false if it's not
  public boolean isEmpty(); 

  // Return true if the value is in the list, false if it's not
  public boolean contains(String value); 

  // DELETE_ALL()
  public void clear(); 

  // Convert the contents into a single string with values separated by commas. 
  // It's OK to have a comma at the end of the String.
  public String toString(); 

In: Computer Science

Write a Java program that accepts a sequence of commands and print out the number of...

Write a Java program that accepts a sequence of commands and print out the number of successful insertions, the number of successful deletions, the number of successful searches (through the “find” command), the number of items remaining in the list after executing all commands and the final contents of the list.

Three commands that will be taken as inputs are “insert”, “delete” and “find”.

Input

Line 1: The number of transactions m on the list, where 1  m 200.

Line 2 to m+1: A string command (“insert”, “delete”, “find”) followed by an integer n (separated by a space).

  • “insert” means insert n into the list
  • “delete” means delete n from the list
  • “find” means find n in the list

Output

Line 1: Display 4 integers (each number is separated by a space) which are:

  • the number of successful insertions,
  • the number of successful deletions,
  • the number of successful search , and
  • the number of items remaining in the list

Line 2: The final contents of the list after executing all commands.

Sample Input

Sample Output

3

insert 1

delete 5

find 2

1 0 0 1

[ 1 ]

8

find 10

insert 3

insert 2

insert 1

delete 4

delete 3

insert 1

find 2

4 1 1 3

[ 1 1 2 ]

In: Computer Science

Public financial management is critical for successful delivery of public services. The prime objective of public...

Public financial management is critical for successful delivery of public services. The prime
objective of public financial management is to ensure that public resources allocated to projects
and programmes through covered entities are applied economically, efficiently and effectively
to enhance value for money in public spending. Contrary to expectation, public financial
management in Ghana is bedevilled with gross infractions, irregularities and malpractices
which deny the citizens the quality of public service delivery they deserve. The current Auditor
General’s Report on Public Accounts of the central government agencies, the local
governments and educational institutions reveal that several millions of Ghana Cedis is lost to
financial impropriety and malpractices. This has been on the increase over the years. surely,
these occurrences should attract policy attention.
Ghana Moni is a Civil Society Organisation with the prime aim of demanding and promoting
accountability in Ghana. Ghana Moni is organising an essay writing competition for Final Year
Accountancy Students in all Universities in Ghana on the topic: Accounting for Financial
Impropriety in Public Financial Management in Ghana. The aim of the competition is to
gather fresh and further evidence on the causes and practical remedies of the persistent misuse
of public resources. The award for winners is GHS100,000.00. The deadline for submission is
48 hours from now.
Required:
Make your entry into the competition in strict compliance with these requirements:
i) Abstract (Not exceeding 100 words)
ii) Introduction (Not exceeding 200 words)
iii) Taxonomy of financial impropriety3
(Not exceeding 300 words)
iv) Causes of financial impropriety in the public sector (Not exceeding 600 words)
v) Practical remedies of financial impropriety (Not exceeding 600 words)
vi) Conclusion (Not exceeding 100 words)

In: Economics

QUESTION THREE Public financial management is critical for successful delivery of public services. The prime objective...

QUESTION THREE
Public financial management is critical for successful delivery of public services. The prime objective of public financial management is to ensure that public resources allocated to projects and programmes through covered entities are applied economically, efficiently and effectively to enhance value for money in public spending. Contrary to expectation, public financial management in Ghana is bedevilled with gross infractions, irregularities and malpractices which deny the citizens the quality of public service delivery they deserve. The current Auditor General’s Report on Public Accounts of the central government agencies, the local governments and educational institutions reveal that several millions of Ghana Cedis is lost to financial impropriety and malpractices. This has been on the increase over the years. surely, these occurrences should attract policy attention.

Ghana Moni is a Civil Society Organisation with the prime aim of demanding and promoting accountability in Ghana. Ghana Moni is organising an essay writing competition for Final Year Accountancy Students in all Universities in Ghana on the topic: Accounting for Financial Impropriety in Public Financial Management in Ghana. The aim of the competition is to gather fresh and further evidence on the causes and practical remedies of the persistent misuse of public resources. The award for winners is GHS100,000.00. The deadline for submission is 48 hours from now.

Required:
Make your entry into the competition in strict compliance with these requirements:
i) Abstract (Not exceeding 100 words)

ii) Introduction (Not exceeding 200 words)
Taxonomy of financial impropriety (Not exceeding 300 words)
Causes of financial impropriety in the public sector (Not exceeding 600 words)

v) Practical remedies of financial impropriety (Not exceeding 600 words)

vi) Conclusion (Not exceeding 100 words)

In: Accounting