Define a class template called genericStack for storing any data type in a static stack. Your class template must include a constructor, a destructor, push, pop, peek, isFull, and isEmpty functions (no display function is required). Write a simple main function in your program that demonstrates the class template with a stack of strings.
In: Computer Science
write a program to find the maximum possible sum such that no two chosen numbers are adjacent either vertically, horizontally, or diagonally. code in java
In: Computer Science
1. The problem of multiples. Rashid Phumbhra has made important
contributions to astrological computing
based on the theory of multiples. In this problem you must design
an algorithm to identify whether a number is
multiple of 3, 5 and / or 7. That is, the algorithm receives a
number and must tell the user if the number is:
• only multiple of 3
• only multiple of 5
• only multiple of 7
• only multiple of 3 and 5
• only multiple of 3 and 7
• only multiple of 5 and 7
• multiple of 3, 5 and 7
• is not a multiple of 3, 5, or 7
In: Computer Science
Hi...
I have a proposal to do and I'm writing about ( Hospital
management system )
so I have a part about ( Motivation for the research) I need someone to write it.
In: Computer Science
#Python
Given a dictionary
gradeCounts = { "A": 8, "D": 3, "B": 15, "F": 2, "C": 6 }
write the Python statement(s) to print:
a) all the keys.
b) all the values.
c) all the key and value pairs.
d) all of the key and value pairs in key order.
e) the average value.
f) a chart similar to the following in which each row contains a key followed by a number of asterisks equal to the key’s data value. The rows should be printed in key order, as shown below.
A: ********
B: ***************
C: ******
D: ***
F: **
In: Computer Science
Can someone write a proposal assignment on the topic "Indoor Mapping"; 1) Provide me an introductory statement and thesis statement which will cover all the info we're going to talk about in this topic 2) I need some supporting sentences and counter-argument statements. 3) Conclusion 4) Some sources if you can Thank will give thumbs up!
Please don't copy-paste from the net.
In: Computer Science
In statistics, the mode of a set of values is the value that occurs most often or with the greatest frequency. Write a function that accepts as arguments the following:
The function should determine the mode of the array. That is, it
should determine which value in the array occurs most often. The
mode is the value the function should return. If the array has no
mode (none of the values occur more than once), the function should
return −1. (Assume the array will always contain nonnegative
values.)
Demonstrate your pointer prowess by using pointer notation instead
of array notation in this function.
can someone please help me with this in C++ programming language?
In: Computer Science
explain the types of solid waste in detail and sources of solid waste,factors that affects generstion rate of sw with table and problem.50marks
Note:Its for 50 marks i need 10page answer and own answer no internet answer r else i will downvote
attempt only if you knownledge about the subject r else i il downvote and its for 50marks
NOTE:no wrong answer .i need own answer with diagram and all r else i il downvote.
In: Computer Science
Encipher the following emperors’ names using a Shift Cipher with
the given key.
In: Computer Science
Q1) Discover ambiguities or omissions in the following statement of requirements for part of a Automated beverage serving system: An automated beverage serving system sells several beverages. Users select the type of beverage and input a credit card and a personal identification number. The beverage served and a user’s credit card account is charged. When the user presses the start button, a menu display of several beverages to choose from, along with a message to the user to select one type of beverage. Once a beverage has been selected, users are requested to input their credit card. Its validity is checked and the user is then requested to input a personal identifier. When the credit transaction has been validated, the beverage is served. Ambiguities and omission in the statement: 1. What would happen if the user enters an invalid card. 2. Q2) Rewrite the above description using the structured approach described in this chapter. Resolve the identified ambiguities in an appropriate way Q3) Write a set of non-functional requirements for the beverage serving system, setting out its expected reliability and response time. Q4) Identify and briefly describe four types of requirement that may be defined for a computer-based system
In: Computer Science
Use Java to:
1. Write a method with a Rectangle and a Point as parameters. Without using methods from the Rectangle class, return true if the point is inside the rectangle and false otherwise.
2. Write a second method with the same functionality as Exercise 1. However, use a method from the Rectangle class this time.
3. Normally, the == operator cannot be used to compare two strings for equality. There are 2 main exceptions we talked about. The first is through compiler optimization when we define two Strings in code with the same value. Demonstrate the second case in a method named stringEquality. Your method does not need any parameters. You may define the two strings inside the method. Your method should work even if a Scanner is used (no compiler optimization tricks).
In: Computer Science
JAVA Assignment:
Project File Processing.
Write a program that will read in from input file one line at a time until end of file and output the number of words in the line and the number of occurrences of each letter. Define a word to be any string of letters that is delimited at each end by either whitespace, a period, a comma or the beginning or end of the line. You can assume that the input consists entirely of letters, whitespaces, commas and periods. When outputting the number of letters that occur in a line, be sure to count upper and lowercase versions of a letter as the same letter. Output the letters in alphabetical order and list only those letters that do occur in the input line. For example, the input line:-I say HI should produce output similar to the following:-
3 words
1 a
1 h
2 i
1 s
1 y
Please Note!!!!!: in addition to the above, output the result to file named “result.txt”
In: Computer Science
TestLibrary.java
Design and implement a class named Book. A book has a serial number, a title, an author, and a publisher. Create appropriate constructor(s) and accessor and mutator methods for the Book class.
Add a static variable to the Book class and set its initial value to 100000000. When a new book is created, this static variable is automatically incremented by 1 and the new value is assigned as the serial number of the new book.
Design and implement a class named Library. A library has a library name (such as Surrey Central Library), a list of books (which is an array of Book objects. Assume that the maximum number of books for a library is 10000), and the actual number of books in the library. Create a constructor for creating a library object with a given library name. Create a method for adding a book to the library and another method for returning the array of all books. Add another method to get the number of books in the library.
In the main method, create a new library object and create a few books. Add the books to the library. Get the list of books and display their serial numbers, titles, author names, and publishers.
In: Computer Science
IN PYTHON
Write a function called check_inventory(inventory, low) that passes a dictionary as inventory and low as an integer, and returns a sorted list of items that are below an inventory level that is given by thelowinteger parameter. The function should work without the low parameter supplied - in which case, you should assume low is 5. You do not have to worry about reading and writing to a file, that code is provided, and you don’t have to change it. Example: If the inventory is {'banana':3,'apple':10}, check_inventory(inventory) will return the list['banana'] and print it in the output file. For the same inventory, check_inventory(inventory, 15) will return the list ['apple','banana'] and print it out in the output file.
In: Computer Science
Should we abandon copyright on internet or does in serve its purpose ?
In: Computer Science