In reference to your module #2,Create a simple program that will print ODD or EVEN when you enter a number.
hands-on activity software installation and maintenance objective: at the end of the exercise, the students should be able to: • install, update, and remove software. software requirements: • virtualbox for windows • ubuntu iso microsoft word procedure: 1. create a folder name lastname firstname (ex. reyes ranika) in windows. 2. create a word document on your windows pc (outside virtualbox). take screenshots of the following and place them in your document. • result of installing gcc, emacs, and httpd result of the check-update command for gcc, emacs, and httpd result of the check-update command (no specified package) result of the update command for gcc, emacs, and httpd result of the update command (no specified package) result of the remove command for gcc, emacs, and httpd 3. save the document in your windows folder.
Sum of prime numbers in the input
Read this story and calculate/print the x total eggs collected between Monday and Wednesday:
Mang Jose’s chickens always lay eggsPerChicken eggs precisely at noon, which he collects that day.
• On Monday, Mang Jose has chickenCount chickens.
• On Tuesday morning, Mang Jose gains 1 chicken.
• On Wednesday morning, a wild beast eats half the chickens!
For Example:
• If Mang Jose starts with eggsPerChicken = 5 and chickenCount = 3, he must then collect a total of 45
eggs
• If Mang Jose starts with eggsPerChicken = 4 and chickenCount = 8, he must then collect a total of 84
eggs
Develop a C++ program that calculates how many eggs will Mang Jose collects based on user input.
You’ve been asked to write a small menu driven inventory management system for a small convenient store. Item ID – unsigned long Item name – string Item cost – float Quantity - int
Following are the list of administrative functionalities your application shall support:
1.Add new item to the inventory. This function will be used to add a single new item into the inventory management system.
2.Print all item information in the store - This function will be used to display all items in the inventory. When this option is selected system shall print Item ID, Item name, Item cost and quantity. 3.Find item by ID – This function will be used to search item using an ID. If item exist print item information. If not display an error indicating item not found.
4.Find item by name – This function will be used to search item using name. If item exist print item information. If not display an error indicating item not found.
Write a menu driven application in
C++.
You should create two methods for a data structure implementing a Queue as a
circular array. Your data structure should have the class name MyArrayQueue. The
two methods that should be implemented are:
a) Adding element to the queue:
public void enqueue(Object theElement) {…}
[20 marks]
(Functionality: 15, Design: 2, Ease of use: 2, Presentation: 1)
b) Deleting an element from the queue and return the deleted element:
public Object dequeue() {…}
[10 marks]
(Functionality: 6, Design: 2, Ease of use: 1, Presentation: 1)
In both methods errors should be handled properly. For example what happens
when adding an element to a full queue?
There will be skeleton code for MyArrayQueue available on Learning central that
contains the MyArrayQueue class with the following fully implemented methods:
constructor, isEmpty(), getFrontElement(), getRearElement() methods. It also
includes signatures of two methods that you should implement: enqueue(Object
theElement) & dequeue().
Write a program that simulates the ATM interface.
Use a do-while loop to display 6 services to the user
Get the user input and display submenus appropriately
(1) Stop words are high-frequency words that are removed from the representation of
natural language data. Write a method deleteStopwords(input, stopwords) that
deletes a list of words stopwords from some text input. It is up to you whether your
method expects input to be a referring to the source of the text to be processed, or a
String or ArrayList of words; similarly, for the stopwords parameter. However, you
should try to optimise the data structure used. Your method should return an ArrayList
containing the non-stop words identified. Your method should work successfully with
the contents of the input file Input.txt and the stop words listed in the file
stopwords.txt (both files are available on Learning Central).
[15 marks]
(Functionality: 8, Design: 4, Ease of use: 2, Presentation: 1)
by CodeChum Admin
In order to make sure that the future generations will grow into great beings, we must make sure that the gene pool consists of the best genes. In order to do that, we must compare genes from each other and find out which one is the best!
Instructions:
Input
1. First integer
2. Second integer
3. Third integer
4. Fourth integer
a. Each object of the class BookType can hold the following information about a book: title, up to four authors, publisher, ISBN, price, and number of copies in stock. To keep track of the number of authors, add another member variable.
b. Include the member functions to perform the various operations on objects of type BookType. For example, the usual operations that can be performed on the title are to show the title, set the title, and check whether a title is the same as the actual title of the book. Similarly, the typical operations that can be performed on the number of copies in stock are to show the number of copies in stock, set the number of copies in stock, update the number of copies in stock, and return the number of copies in stock. Add similar operations for the publisher, ISBN, book price, and authors. Add the appropriate constructors and a destructor (if one is needed). Also add the necessary preconditions and postconditions.