Questions
12. Create a class called bMoney. It should store money amounts as long doubles. Use the...

12. Create a class called bMoney. It should store money amounts as long doubles. Use the function mstold() to convert a money string entered as input into a long double, and the function ldtoms() to convert the long double to a money string for display. (See Exercises 6 and 10.) You can call the input and output member functions getmoney() and putmoney(). Write another member function that adds two bMoney amounts; you can call it madd(). Adding bMoney objects is easy: Just add the long double member data amounts in two bMoney objects. Write a main() program that repeatedly asks the user to enter two money strings, and then displays the sum as a money string. Here’s how the class specifier might look:

    class bMoney
        {
        private:
            long double money;
        public:
            bMoney();
            bMoney(char s[]);
            void madd(bMoney m1, bMoney m2);
            void getmoney();
            void putmoney();

};

In: Computer Science

To run as an executable an assembly program on a computing platform that includes an operating...

To run as an executable an assembly program on a computing platform that includes an operating system, you need to: A. Run through an assembler and linker B. Run through a compiler C. Run through an assembler D. Run through a compiler and linker E. Run through a compiler and assembler?

In: Computer Science

Given the following program: Mailbox Contents 00 505 01 206 02 307 03 902 04 000...

Given the following program: Mailbox Contents 00 505 01 206 02 307 03 902 04 000 05 007 DAT 06 002 DAT 07 000 DAT What is the value in the calculator after the instruction in mailbox 04 is completed?

In: Computer Science

Please find the best methodology for each of the three software development personalities below and explain...

Please find the best methodology for each of the three software development personalities below and explain why you chose that one en each case.

  1. The NinjaSix:

“Show don’t tell” describes his modus operandi best. He is an enigma: not outright friendly or forthcoming, but he works surprisingly well on a team.

His motto? Don’t have doubts; just resolve the problem quickly and efficiently. This no-nonsense attitude makes him an absolute joy to work with.

  1. The Clever Ambassador:

He is outspoken and the unofficial project manager. He is the consummate ring-master, able to please both clients (the ferocious lions) and team members (the elephants that could easily trample him if they wanted).

works behind the scenes, receiving lower pay for what amounts to the same work

  1. The Half-Cup Speedster:

The half-cup speedster takes on multiple projects at once. He works much faster than most, but his amazing quantity is tarnished by its quality: his speed results from cutting corners and hacking core.

Unfortunately, much like the handwriting of physicians, his code is practically indecipherable. Should someone need to fix a problem that surfaces later, they will surely encounter difficulties. You can’t fix what you can’t read or understand.

Methodologies:

Methodology

Focus

Waterfall

The linear and sequential approach to development

Agile

Continuous improvement and delivering better quality

Critical path method

Maximizing project activities and finding the shortest path (timeline) to task and project success

Critical chain project management

Optimizing resources usage

Six Sigma

Eliminating waste and improving processes and profitability

Scrum

Delivering higher quality

Lean Six Sigma

Customer-focused

Kanban

Customer-focused, fostering ongoing collaboration and continuous learning

Scrumban

Reducing waste, shorten lead time, turnaround time, and deliver higher quality products and services

Lean development

Reducing waste while maximizing output and increasing stakeholder value

Crystal

Improving project results by focusing efforts on the people-side of projects

Dynamic systems development method

Aligning projects with companywide strategic goals

Adaptive software development

Helping teams become more agile when dealing with change

In: Computer Science

Create a Huffman Tree and generate the codes for each character of the following input: create...

  1. Create a Huffman Tree and generate the codes for each character of the following input:

create a huffman tree

For consistency:

  1. If same frequency – put in priority queue alphabetically; put space before other characters of the same frequency

  2. Add subtrees to end of group with same priority

  3. Lower number has higher priority (goes to front)

In: Computer Science

The Government of Mauritius, through the Smart City Scheme from the Economic Development Board (EDB), is...

The Government of Mauritius, through the Smart City Scheme from the Economic Development Board (EDB), is offering a plethora of opportunities to global investors to share in the vision of Mauritius in creating intelligent, innovative and sustainable cities of tomorrow.
One IT concept critical to the implementation of smart cities is what we refer to as the "Internet of Things", commonly known as IoT.
a) Explain, using a relevant diagram, what is IoT?
b) List and explain two benefits that IoT will bring to smart cities in Mauritius.
c) List and explain two limitations of IoT.
d) Will smart cities be a success in Mauritius and will it achieve its main goals? Discuss

In: Computer Science

In Java: Problem 1. Write a program that performs the following two tasks: 1. Reads an...

In Java:

Problem 1.

Write a program that performs the following two tasks:

1. Reads an arithmetic expression in an infix form, stores it in a queue (infix queue) and converts it to a postfix form (saved in a postfix queue).

2. Evaluates the postfix expression.

Use the algorithms described in class/ lecture notes. Use linked lists to implement the Queue and Stack ADTs. Using Java built-in classes will result in 0 points. You must use your own Stack and Queue classes (my code is a good starting point). Submit the code + example runs to validate your code. Submit UML chart to show the program design.

Problem 2.

Given the following postorder and inorder traversals of a binary tree, draw the tree:

Postorder: A B C D E F I K J G H

Inorder: C B A E D F H I G K J

Explain your answer in a systematic and recursive fashion.

In: Computer Science

Ms. Asma Ahmed is the new director of the Al-Ekra University library. Your team has been...

Ms. Asma Ahmed is the new director of the Al-Ekra University library. Your team has been contacted by Ms. Asma to develop a software system for the library only. She has prepared a description of some basic functions of the library loan system currently done manually. Ms. Asma wants an automatic library system that should work as described below: “The library loan system that we have at present is mostly manual. The library has three types of items for loan to its members: Book, DVD, and Magazine. Each item is identified with a unique call number of six-digit long. The item has also a title and year of publication/production. Not all items are for loan. Some items are only for use inside the library. For a book, 4 weeks; for a DVD, one week; and for a magazine 2 weeks loan is granted if the item is available for loan. A member can borrow maximum of 5 items. The library maintains three different file systems: Membership, Item, and Loan. The university has also a separate software system called Unisys that deals with students and staff. The system has three major components: Staff/Student data, Registration data, and Course data. However, our library system needs data from UniSys to check the validity of the membership of the library. The university has another software system that deals with finance and payments, called FinSys which is also independent but communicates with other systems in the university. It has three components: Financial account of the staff/student, Salary, and Expenditure. Every person at Al-Ekra University has a FinSys account called Fin_Account. The information on the salary of the staff and the tuition fee of the student are stored here. We now want a library system that can provide the following functions. The member of the library can only borrow items from the library. The person must be either staff or student of Al-Ekra University. The person first submits an online application form. The forms include the name and address of the person, and the Fin_Account of the person with Al-Ekra University. A library administrative staff is immediately informed by the system that an application has been submitted. The admin staff first checks the application, and provides input if needed. The system saves the updated information of the application, and then contacts UniSys to get the confirmation that the applicant is either staff or student. Once the library system gets the feedback from UniSys, it records the feedback. If the person is a member of the university, the application is preliminary accepted; otherwise the application is rejected without further processing. The library system then requests FinSys to transfer QR. 500 from the applicant’s Fin_Account to the library. Once the money is transferred, the system creates a library membership account, and deposits the money in this account. After transferring the money to the library system, FinSys records in the applicant’s Fin_Account that QR. 500 has been transferred to library. Finally, it produces a membership card, and assigns a unique membership number. The system finally sends the membership card to the member. If FinSys does not transfer money, the system generates an error message to enter valid Fin_Account. Every team member MUST read this document carefully Page 2 In order to borrow an item from the library, a member first enters the membership card into a card reader of the library. The system retrieves the membership details and contacts the university system UniSys to find if the member is an active staff or student. If not, the system does not allow the member to borrow any item from the library and terminates the function. Otherwise, the system asks the member to place the item in the scanner. Once the member does this, the system gets the item details and its type. It also checks if the item is available for loan. The system also finds out the total items already borrowed but not returned. If the item is available for loan, and the total item borrowed but not returned is less than 5, it makes a loan for the member. The item is included in the membership account with the borrowing date and due date for return. The system then increments the total borrowed items by 1, and it makes the item unavailable for other members. The system also decrements the total items reserved of the member if the item was reserved by the member. The member has also choice to request for extended loan time for one more week. If the item was not reserved, one more week is added with the original return date. Finally, it creates a receipt of the loan, and releases the security code of the item. The receipt includes information such as membership number, item call number, loan date, and return date. A member can return a borrowed item to the library by scanning the item into the system that finds the loan details. It then checks the due date. If the due date already passed, it calculates the fine based on number late days. The system updates the member account with the fine. It then makes the item available and sets the security code of the item. The system decrements the total item borrowed by 1. It then creates a receipt of the return. The members can also extend the return date of an item if not reserved by other members. The member first inserts the membership card into the card reader. The system retrieves the list of all currently borrowed items. The member then selects the item that he/she wants to be extended. The system finds the current return date. If the return date has already passed, no extension is possible. An extension is only possible if the request is made before the return date. It also checks if the item has already been reserved. If reserved by other, the return date cannot be extended, otherwise one week extension is made. The system updates the member account with the new return date. It prepares a receipt with the new return date. A member can reserve an item if it is currently on loan with other member. The member first enters the card into the card reader. The system finds the membership details. It checks the total number of current reserved items. It the member has already reserved 3 items, no more reservation request is possible. The system asks for the call number of the item he/she wants to reserve. The system retrieves the item details once the member enters the call number of the item. If already reserved by other, it cannot be reserved by anyone. If not, the item is reserved under the member account, and increments the total reserved item by 1. The system confirms the reservation to the member. Every day at 10 am, the library system automatically checks if any item was not returned after 10 days of the due date. The system generates a list of such items and alerts the admin staff with the list. The staff then enters the call number of each item into the system which finds the loan details. It changes the status of the item as ‘lost’. The system deducts QR. 500 from the deposit money as a fine from the member account. It then requests FinSys with the Fin_Account of the applicant to transfer QR. 500 to the library. FinSys forwards the transfer information to the library that receives the advice and updates the member account with the deposit money. The member is informed about the lost item. The system should know which item was borrowed by which member, borrowing date, the return date, if the item was returned and when. It can also find out which item was lost and by which member, how many items were borrowed by one member, which item was borrowed by which members so far, etc. " Page 3 Ms. Asma wants that the managing of the above activities of the library should be automated as much as possible. There will be also possibility that the administrative staff can generate summary report of loans, returns, fines, etc. At this stage, she wants you to analysis ONLY the functionalities of the library system. She also warns you that you should not analyze any functionality of other systems in this phase. You need to define the system boundary carefully.

—————————————————————————-

I need a class diagram:

Using object-oriented design fundamentals, complete design class diagram with all required classes, their attributes and types, relationships (aggregation, generalization, association) with multiplicity where applicable, methods with major parameters, and visibility of attributes and methods.

In: Computer Science

You are an IT company and want to get a travel agency's network design, hardware, software,...

You are an IT company and want to get a travel agency's network design, hardware, software, and security.

Routing Protocols. Are routed protocol and routing protocol the same?  Give examples of both. What routing protocol(s) are you planning to use in the travel agency network? Justify your selection. As the travel agency network uses private ip addresses, what routing feature does need to be configured to access the WAN with public ip address? What device does have the feature?

In: Computer Science

Write C++ mathematics program that a Given an arc with its center at zero, and the...

Write C++ mathematics program that a Given an arc with its center at zero, and the arc should be user defined in 3D-space by means of a 3x3 transformation matrix, and a radius, start-angle and sweep-angle should be user defined. it gives output/tells the most extreme XY points that arc goes to

The radius,start angle and sweep angle should be user defined.

make the code quickly and send me

sir the matrix should always be 3x3 center is at zero initially
and raduis,start angle and sweep angle should be user defined
The program should calculate extreme points values of arc
initially assume any assumptions if u don't find sufficient info kindly solve and send me

In: Computer Science

WRITE IN JAVA 1) Create a constructor that can create objects in the following way: c...

WRITE IN JAVA

1) Create a constructor that can create objects in the following way: c = Circle(X, Y, R);

2) Please add a constructor that only accepts R value and initializes the Circle at the origin.

3) Please implement a constructor that behaves the same way as the default constructor.

4) Add a method named “touches” to the Circle class which receives another Circle instance and checks whether these two circles touch each other externally and only at one point. The method should return a Boolean value and will be called like this: c1.touches(c2) //returns either true or false.

5) Please implement a Test class with main method that simulates each of the following
cases and prints their outcome to the screen.

In: Computer Science

Management is pleased with the progress that has been made and likes the steps you have...

Management is pleased with the progress that has been made and likes the steps you have taken to set up a secured network environment. During the last status meeting, the following was asked: "Has everything been done that is possible to ensure the security of the environment?" Your response was that you believed it has, but one way to be sure is to conduct a vulnerability assessment and a penetration test.

  • Create a PowerPoint presentation of 6–8 slides that includes speaker notes and a references slide. It must cover the following:
    • Describe at least 2 common security threats against wired and wireless devices and typical countermeasures used by corporate security teams.
    • Describe at least 2 identity and access management tools needed to measure and monitor security risks across the enterprise.
    • Explain penetration testing and vulnerability assessments and how they differ.
    • Identify the benefits of using penetration testing and vulnerability assessments relative to threats.
    • Discuss the tools available in the industry (at least 5 different tools should be discussed), and explain how they can be used to mitigate security vulnerabilities.

The presentation must include a title slide, topics of discussion slides, main content slides, and reference slides. The references must use APA structure for organization of reference information. Font and font size are not required to meet APA format.

In: Computer Science

C PROGRAMMING LANGUAGE Problem title : Bibi's Array Bibi also has an array containing N elements....

C PROGRAMMING LANGUAGE

Problem title : Bibi's Array

Bibi also has an array containing N elements. Like Lili, Bibi wants to know the highest frequency (most occurrences) and all elements which have that frequency.

Format Input

The first line contains an integer T stating the number of test cases. For each test case, the first line contains a single integer N which indicate the number of element in the array. The next line contains N integers Xi (1≤ i ≤ N ) which indicate i^th element in the array.

Format Output

Consist of T lines where each line has the format "Case #X:Y" , where X is the test case number starting at 1 and Y is the highest frequency. Next line contains all elements which have that frequency sorted in ascending order.

Constraints

¶ 1≤ T ≤ 20

¶ 2 ≤ N ≤ 20.000

¶ 1 ≤ Xi ≤ 2 x 10^5

Sample Input (standard input)

3

8

1 1 2 2 3 4 5 5

8

5 5 4 3 2 2 1 1

4

1 1 1 3

Sample Output (standard output)

Case #1: 2

1 2 5

Case #2: 2

1 2 5

Case #3: 3

1

In: Computer Science

JAVA programming language Modify the following code. Make changes so that Movies can be sorted by...

JAVA programming language

Modify the following code. Make changes so that Movies can be sorted by title

-----------------------------------------------------------------

package Model;
import java.time.Duration;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
// TODO - Modify the movie class so that Java knows how to compare two Movies for sorting by title
public class Movie extends DataStoreObj
{
private String title;
private String description;
private LocalDate releaseDate;
private Duration runningTime;
private Rating rating;
private List<Genre> genres = new ArrayList<>();
private List<Actor> actors = new ArrayList<>();
// TODO: Add list of reviews
private List<Review> reviews = new ArrayList<>();
public Movie(String title, String description, Rating rating, String releaseDate, int runningTimeMinutes) {
this(null, title, description, rating, releaseDate, runningTimeMinutes);
}
public Movie(Long id, String title, String description, Rating rating, String releaseDate, int runningTimeMinutes) {
super(id);
this.title = title;
this.description = description;
this.rating = rating;
this.releaseDate = LocalDate.parse(releaseDate);
// https://stackoverflow.com/a/41800301/673393
this.runningTime = Duration.ofMinutes(runningTimeMinutes);
}
public Duration getRunningTime() {
return runningTime;
}
public String getTitle() {
return title;
}
public void addGenre(Genre genre) {
genres.add(genre);
}
public void addActor(long actorId) {
Actor foundActor = Datastore.getActorById(actorId);
actors.add(foundActor);
}
public List<Actor> getActors() {
return actors;
}
public void addReview(Review review) {
// TODO: Write code to add the review to the list
reviews.add(review);
}
public String toString() {
int runningTimeMinutes = (int) this.getRunningTime().getSeconds() / 60;
return String.format("%s (%s, %s) %s {%s min}", this.title, this.rating, this.releaseDate.getYear(), genres, runningTimeMinutes);
}
// TODO - You'll need a new method here to tell Java how to compare two movies by title
public List<Review> getReviews() {
return reviews;
}

}

In: Computer Science

Create a C++ or Java program codes for Login Attendance applying the queue principle that will...

Create a C++ or Java program codes for Login Attendance applying the queue principle that will select students from the last attendance login to answer a question.

NOTE: Program execution should include deletion and insertion of attendance information/element

In: Computer Science