Write a Java application that checks a string for correct parenthesization. The input comes from the keyboard and should (but might not) consist solely of the delmiters (, ), [, ], {, and } separated by whitespace.
The output of the program must include following:
The name of your class should be ParenChecker.
For example, if the input was:
( [ { } ] )
the program should produce the following output:
OK
and if the input was:
(
the program should produce the output:
Missing closer
etc...
In: Computer Science
Assume that the following Ada like program compile successfully.
|
int k = 0; void f(int p) { int main () { |
What is printed on the screen assuming?
In: Computer Science
What is IT governance referring to a Company?
Why is IT governance important to a company and How does one implement it.
In: Computer Science
You have been asked to build an admin portal that will allow your
company internal employees to access the portal and perform admin
functions on behalf of company clients.
Here are additional details:
(a) Admin portal is accessible only on company network to only
company employees that have one of the "ADMIN" roles.
(b) Access to the links is role based i.e. only authenticated
internal employees with "ADMIN" role are able to access the portal
and what links you can access once on the portal is determined
based on what other roles you have. So, same link will not be
visible to other admin who doesn't have appropriate role to access
the link.
(c) There are five categories of applications and 5 admin roles for
each category. Here are the details:
# Category Role
Access
Links
====================================================================================================================================================
1. Global
ADMIN All Global
links
{Manage
User Accounts, Assign Roles, Help Desk}
2. Finance
FINANCE_ADMIN All Global links + All
Finance Category links
{Finance Reports, Accounts Payable, Accounts
Receivables, Tax}
3. Sales
SALES_ADMIN All Global links + All
Sales Category links
{Sales Reports, Sales Leads, Sales Demo}
4. HR
HR_ADMIN All Global links + All HR
Category links
{New Hire, On-boarding, Benefits, Payroll, Terminations, HR
Reports}
5. Engineering ENGG_ADMIN
All Global links + All Engineering Category
links {Application Monitoring, Tech
Support, App Development, App Admin, Release Management}
(d) The links redirect users to the admin application that is not developed by you. You are only providing links to the portal and redirect users to appropriate application.
Deliverables:
1. Provide detailed overall solution architecture of the
solution that you propose. Discuss each component in the diagram.
(Hint: MVC or multi-tier) (40)
IMPORTANT: just high level diagram will NOT suffice. Each component
discussion is a must.
2. Use Case diagrams for each function that user can perform. (30)
3. Sequence diagrams for each function that user can perform. (30)
Here are some architecture examples:
https://www.edrawsoft.com/software-architecture-example.php
In: Computer Science
Create 1 HTML page and 1 CSS file for all the styles. Your html page will be a small gallery of images using the Polaroid style. The page should have at least 1 row of 3 images. You can choose any theme of images. Don't pick random images, make them all have a theme. Add an h1 tag for the header of your page. Style the h1 tag with a color, size, and font family. Include a paragraph tag under the h1 tag that is a description of your image gallery. Also style the paragraph with a color and font family.
In: Computer Science
Please write code in c++ using iostream library. Also you can use any string library.
Create structure plane with the following:
1)plane's ID[int type]
2) location[char*]
3) departure time[char*]
Your task is to find the plane with the smallest departure time for the selected city.
Pointer, dynamic array and structures have to be used in this code.
Input:
NOTE: It's just an example of input, you should write code generally for any inputs.
First line contains n(0 < n < 1001)
Then n lines inputed in given format:
First - plane's ID[int type]
Second - location address[char*]
Third - departure time[char*]
Departure city.
example of input:
3
21 LoNdon 23:00
02 Bath 10:00
03 LondoN 22:00
LonDon
Output: example of output: 1_LONDON_22:00 output should be in uppercase
Ouput the information in the following format ID_LOCATION_TIME If there is more that one plane - output with smallest time. If there is no case to go by plane output "Impossible".
In: Computer Science
AND( OR(OR(X,Y), AND(OR(X,Y), OR(NOT(X), NOT(Y)))), OR(OR(X,Y), AND(OR(X,Y), NAND(X,Y))) )
is equivalent to:
A. OR(X,Y) B. AND(X,Y) C. NOR(X,Y) D. XOR(X,Y) E. NAND(X,Y) F. XNOR(X,Y)
How do I simplify this with the Idempotence, De morgan, absorbtion law, etc and waht are the steps to break it down?
In: Computer Science
Discuss three main information security challenges faced by organizations. Focus on prevention and troubleshooting.
In: Computer Science
(1) What are the advantages and disadvantages to using the int data type rather than the bool data type to manipulate Boolean expressions? Why do students think the int data type is still used for Boolean expressions?
(2) Discuss how C++ provides two-way selection through the if…else statement. Explain the syntax of this statement. Also, explain how the bool data type is used in C++ to manipulate Boolean expressions.
In: Computer Science
IN JAVA write a program that creates an array of strings with 8
people in it. Second, Assign a random rank between 1 to
8 to each of the players. The rankings do not change throughout the
tournament. Finally, Sort the players based on the rankings and
print the data (show rankings of players, in square brackets, at
every step after they are ranked).
USING JAVA COLLECTIONS IS NOT ALLOWED
In: Computer Science
Consider the following schema:
Suppliers(sid, sname,
address)
Parts(pid,
pname, color)
Catalog(sid, pid,
cost)
In a plain text file, write the following queries in SQL:
In writing these queries you may make the following assumptions:
a. Each part has only
one color.
b. The cost field is a real number with two decimal places (e.g.,
100.25, 93.00).
c. The sid field in Suppliers and the sid field in Catalog refer to
the same field.
d. The pid field in Parts and the pid field in Catalog refer to the
same field.
In: Computer Science
[PYTHON] How do you write a program that first gets a list of floating point numbers from input. The input begins with an integer indicating the number of numbers that follow. Then input all data values and store them in a list [PYTHON]
In: Computer Science
Starting out with Python 4th edition
Chapter 2 Programming Exercise 12 Stock Transaction Program
Not sure how to do this
In: Computer Science
Pseudocode:
The first problem has multiple steps but is a little bit easier than the second.
Define a module main
In main, declare an array of Integers named goldFishPerChild with 4
elements
Set the values of the array to 6, 4, 3, 3 ( you may do both in 1 line)
You tried to teach them responsibility, but your kids are terrible with
pets. Each child killed two of its goldfish. This is a learning
experience for them and for you.
In main, write a loop to update the value of each element so that it is
2 less by using the accumulator pattern.
Define a function named linearSearchInStringArray
Has String parameter searchTerm : value you are searching for
Has String[] parameter inputArray : array you wish to search through
Has Integer parameter arraySize : number of elements in the array
Returns Boolean : True if search term is one of the values in the
array, False if not.
CLUE: use count-controlled loop to iterate through all elements
CLUE: needs to use a decision structure each iteration
CLUE: can simply return True if you find a match!
CLUE: consider when you know you can return false.
CLUE: drawing pictures can help
3. Define a function named evenCount
Has Integer[] parameter inputArray : array of elements you are
counting through
Has Integer parameter arraySize : number of elements in array
Returns Integer : number of elements with even-numbered values in
array
CLUE: This will require a loop and an extra variable to keep a running total
CLUE: this is a great opportunity to use the "%" operator. Look up "modulus" operator. This operator tells you the 'remainder' of a division operation.
A remainder of 0 means the number can be evenly divided...
In: Computer Science