Questions
Write a C program to run on ocelot which will either set or clear a single...

Write a C program to run on ocelot which will either set or clear a single bit in a number entered by the user using the binary representation of the number. The user should input the original integer value between 1 and 1000 inclusive using a scanf. Use an unsigned integer type. Output is to the screen. You must use only bitwise operators for this program. You can shift bits and or use the logical bitwise operators.

For this assignment give the user directions asking them to enter the integer and then ask the user if he or she wants to clear or set a bit. Then ask the user which bit to set or clear. That can be a number between 0 and 31. Prompt the user for what should be entered each time. Be sure to validate all user input so the program cannot be crashed. After completing the operation ask the user if they want to do the entire operation again. The user would enter Y or y to do it again. This would be the entire operation from entering the first integer.

You do not need to use getopt for this program since there are no command line arguments.

• If the user enters a 1 as the initial value and a 0 for the bit to clear the result would be 0.

• If the user enters a 1 as the initial value and a 0 for the bit to set the result would be 1.

• If the user enters a 10 as the initial value and a 1 for the bit to clear then the result would be 8.

• If the user enters a 10 as the initial value and a 1 for the bit to set then the result would be 10.

• If the user enters a 10 as the initial value and a 2 for the bit to clear then the result would be 10.

• If the user enters a 10 as the initial value and a 2 for the bit to set then the result would be 14.

Output for each operation should be easy to read giving the number before the switch and then the decimal number after the switch. No other output should be included.

The program should compile to create an executable called bitops.

• Test the program with the following commands:

                  - bitops

                              ▪ enter 10 as the initial value and a 2 for the bit to clear

                  - bitops

                              ▪ enter 10 as the initial value and a 1 for the bit to set

• Take a screenshot of the screen showing the output on ocelot. Name it FirstNameLastName.png or .jpg.

Submit your source file, the screenshot and your Makefile in one zip file called FirstnameLastnameL4.zip to the assignment dropbox in Canvas. If the program does not compile and do something useful when it runs it will not earn any credit

In: Computer Science

in java language. There are three classes for the project, and two inner classes defined in...

in java language.

There are three classes for the project, and two inner classes defined in the Cuboid class.

Create the following classes:

•   Shape. It’s an abstract class with two abstract methods, area and perimeter.
•   Rectangle. It’s a concrete class that extends Shape. Implement area() and perimeter(). Implement the compareTo(object) method to sort rectangles by area in ascending order.
•   Cuboid. It’s a concrete class that extends Rectangle. A cuboid is a 3D rectangle. The shape has a third dimension, Depth. Override the area() method to compute the surface area of the object and implement new method volume(). The perimeter method is invalid in this context. The best way to handle this is to throw an exception called “UnsupportedOperationException”. If perimeter() is called, throw this exception.
•   SortByArea and SortByVolume are two classes defined as attributes of the Cuboid class. If you want to sort, the easiest way is to implement the compareto() method. If you want to sort more than one way, you must implement multiple comparators. Implement these methods so they are sorting by area in ascending order and volume in ascending order.


Complete the following unit tests:
•   Rectangle
o   Test Construction
o   Test getter / setter methods
o   Test area()
o   Test perimeter
o   Test compareTo(Object), ensuring rectangles are being sorted correctly (2x2 sorts < 4x6, for example)
•   Cuboid
o   Test Construction
o   Test getter / setter methods.
o   Test area()
o   Test perimeter
o   Test SortByArea
o   Test SortByVolume

In: Computer Science

Walter and Jesse own a business together. The business delivers food based on special recipes developed...

Walter and Jesse own a business together. The business delivers food based on special recipes developed by Walter. Gus owns a business in the same city, Loot Lake, which sells pizza. One day, Gus approaches Walter and Jesse with a business opportunity. He proposes to sell all the pizza in the south side of the city while Walter and Jesse can sell in the north side of the city. He also agrees that Walter and Jesse can still sell food on the south side of the city as long as the food is not pizza or anything substantially similar. Walter thinks this is a great idea, but Jesse is not so sure. However, despite his reservations, Jesse doesn’t say anything. The two businesses agree to go with the plan proposed by Gus for a period of two years, but they do not put this agreement in writing. They also agree in a short written note, that they will consult with each other anytime either business wants to change its prices. The plan goes well for six months, but soon Walter decides that his pizza recipe is far superior to the one Gus uses, and Walter thinks that if he sells on the south side, he can put Gus out of business and become the main provider of pizza in the city. He talks to Jesse and they decide to go ahead and start immediately selling pizzas on the south side of the city despite their agreement with Gus. Please discuss and analyze all relevant legal issues raised by this hypothetical scenario.

In: Operations Management

how does communication skills active listening skills and flexibility applied to hospitality industry

how does communication skills active listening skills and flexibility applied to hospitality industry

In: Operations Management

The Woolong Company produces high-end vacuum cleaners and has hired you to oversee the development and...

The Woolong Company produces high-end vacuum cleaners and has hired you to oversee the development and release of their latest product. A preliminary project initiation meeting will result in the identification of the project sponsor, selection of a project manager, and creation of the project charter. A manager in the production department who knows you are taking a college project management course asks you to prepare a report to help them prepare for the meeting by answering the following questions:

  • Who are the project stakeholders? How will they be involved in the project?
  • Whom should the project sponsor be? Why?
  • What skills and experience are likely needed by the project manager for each phase in the project life cycle, and how do these skills and experiences differ between the various phases?
  • What kind of roles and responsibilities should the key stakeholders have? Discuss at least 4–5 different kinds of stakeholders.
  • How should they communicate to different stakeholders during the project?
    • What information should be shared with the project stakeholders?
    • What is the mechanism that could be used for each type of information?
    • What is the frequency with which information should be shared?
    • What should be done if project communications are not proving to be effective?
    • What technology could be used for project communications?
    • At what point could communication about the project become an ethical or legal issue?
  • What are the best ways to manage project risks as well as opportunities during project execution?
    • How do they update and analyze old risks as well as new risks while undertaking the project?
    • What business opportunity might project completion create?
    • What is the potential financial impact of the project?
    • What are the expected results of the project?
    • What value will the project add?
    • What is the potential impact to the company if the project is not finished well?

In: Operations Management

1. Residual stress refers to stresses induced by plastic strain. T or F 2. Failure criteria...

1. Residual stress refers to stresses induced by plastic strain. T or F
2. Failure criteria is identical for ductile and brittle materials. T or F
3. Statically indeterminate problems can be solved by using additional equations provided by Hooke's Law. T or F.
4. To analyze stress at any point of any component or structure , one should consider:
5. The stress developed in a cylindrical pressure vessel along the longitudinal axis is:

In: Mechanical Engineering

Considering the power of the attackers in KPA, CPA, and CCA assumptions(given in the lecture slides...

Considering the power of the attackers in KPA, CPA, and CCA assumptions(given in the lecture slides of week 1a), define the KPA-Game, CPA-Game, CCA-Game and the associated computational indistinguishable definition under these attack games.

Note, computational indistinguishability under CPA-Game is the minimum requirement for message confidentiality in real applications. And once again, we write computational indistinguishable under KPA-Game, CPA-Game, CCA-Game as KPA-IND, CPA-IND, and CCA-IND, respectively

In: Computer Science

JAVA public class StringQueue {    //You may NOT add any more fields to this class....

JAVA

public class StringQueue {
   //You may NOT add any more fields to this class.
   private Stack<String> stack1;
   private Stack<String> stack2;

   /**
   * Initializes an empty queue.
   */
   public StringQueue() {
       // TODO
       throw new RuntimeException("Not Implemented");
   }

   /**
   * Returns true if this queue is empty.
   *
   * @return {@code true} if this queue is empty; {@code false} otherwise
   */
   public boolean isEmpty() {
       // TODO
       throw new RuntimeException("Not Implemented");
   }

   /**
   * Returns the number of items in this queue.
   *
   * @return the number of items in this queue
   */
   public int size() {
       // TODO
       throw new RuntimeException("Not Implemented");
   }


   /**
   * Adds the item to this queue.
   *
   * @param item the item to add
   */
   public void enqueue(String item) {
       // TODO
       throw new RuntimeException("Not Implemented");
   }

   /**
   * Removes and returns the item on this queue that was least recently added.
   *
   * @return the item on this queue that was least recently added
   * @throws NoSuchElementException if the queue is empty
   */
   public String dequeue() throws NoSuchElementException {
       // TODO
       throw new RuntimeException("Not Implemented");
   }

In: Computer Science

Write about Different social structures within the Global environment write about it with an and make...

Write about Different social structures within the Global environment write about it with an and make a table of contents with abstract, introduction, appendix, and conclusion and other stuff.

-an outlook on future growth and expansion.

-background for international trade and investment activities and the international economic activity of nations and the balance of payments.

-impacts of covid-19 on services and culture

-Development of a working knowledge of the international monetary system, financial markets, and trend toward economic integration around the world as well as achieving an understanding of the political and legal dimensions that affect international business.

In: Operations Management

At a sports bar, Martin offers to sell an authentic Wayne Gretzky Edmonton Oilers hockey jersey...

At a sports bar, Martin offers to sell an authentic Wayne Gretzky Edmonton Oilers hockey jersey to his friend Alfred for $400. Unknown to both, Martin’s dog at home has just finished shredding the jersey. Carl arrives at the bar, and hearing of the deal, tells Alfred he has previously seen the jersey, and that it is not “game-worn” by Gretzky, but rather a current authorized production official replica jersey, made by an NHL-licensed supplier. What legal principles apply to this deal?

In: Operations Management

Context: Muskogee County Choppers, till recently was a small ‘custom’ motorcycle/chopper production unit, designing and manufacturing...

Context: Muskogee County Choppers, till recently was a small ‘custom’ motorcycle/chopper production unit, designing and manufacturing custom motorcycles and trikes for a small regional market, mainly Oklahoma and Arkansas. The firm has seen an infusion of capital from a group of rich ‘angel investors’ who had a love for motorcycling. The firm is ‘small’ and even after innovation, capital infusion and growth will in no way match the major players like Harley, Honda, Kawasaki etc. Further, ‘trikes’ unlike motorcycles may be considered a ‘niche’ rather than mass market product.

With this infusion of capital, MCC is now a LLC (Limited Liability Company) and plans to make a foray into major markets, at least catering to Kansas, Missouri, Arkansas , Oklahoma, and New Mexico, starting with a ‘trike’ to compete with the Polaris Spyder or CANAM-Ryker. The MCC Trike is similar, with two front wheels and one rear wheel. It is 500cc, in contrast with other trikes that are normally with higher capacity engines (900 cc +). The Canam Ryker and Polaris Spyder are also like the MCC trike, in that they have two front and one rear wheel, unlike Harley trikes etc that have one front wheel and two rear wheels.

MCC is a new company and even with an infusion of capital from angel investors cannot compete with the financial strength of companies like Harley and Honda.

Assignment (in two Parts 1 and 2):

Write a short note to the CEO of the firm as an internal senior executive outlining:

Part 1: A short note on the actual direction that the firm should take, that is, 'your personal summary thoughts and opinions on strategy', both (a) Marketing and (b) Integrated Marketing Communications (Promotion). When you write your note, use a format that you consider appropriate for being read by a busy CEO.

In: Operations Management

You have a $7500 balance on your credit card. There’s a 12.5% apr. you have to...

You have a $7500 balance on your credit card. There’s a 12.5% apr. you have to pay 5% of the balance as your minimum payment. What is your balance after 24 months

In: Accounting

An industrial bakery agrees to supply one hundred thousand loaves of bread monthly to a major...

An industrial bakery agrees to supply one hundred thousand loaves of bread monthly to a major Canadian grocery chain at a price of $1.00 per loaf. Before deliveries begin, the baker rethinks the deal, feeling it should have charged more. On review, it discovers that the contract recites “one hundred” loaves of bread monthly at $1.00 per loaf. What recourse will the grocery chain have if the bakery refuses to honour its price beyond 100 loaves?

In: Operations Management

Assignment No.: 3 Marketing Plan From the real international market, select a company of your choice...

Assignment No.: 3

Marketing Plan

From the real international market, select a company of your choice wishing to start its activities in Saudi Arabia. The Company hired you as Marketing Manager of Saudi Arabian Region.

You have to establish a marketing department starting from the Analysis of the market, formulate overall marketing goals, objectives, strategies, and tactics within the context of an organization's business, mission, and goals designing and planning the entire function.

Write a Marketing Plan considering the following points (2x5=10 Marks)

  1. Introduction, Goals and Objectives

To introduce this section you should include the "mission statement" of the business; an idea of what its goals are for customers, clients, employees and the consumer.

  1. Introduction about the business.
  2. Business vision and mission
  3. Business objective.
  4. Products and services offered

  1. Environmental Analysis

Conduct an environmental analysis that looks at and comments on your local area and your network of business contacts, competitors and customers.

  1. Target Market Analysis

Identify the target market, describing how the company will meet the needs of the consumer better than the competition does.

  1. SWOT Analysis

Conduct a SWOT analysis for your chosen company based on your research.

Strengths: List the strengths of the business approach;

Weaknesses: Describe the areas of weakness in the company's operations;

Opportunities: Examine factors that may improve the business's chances of success;

Threats: List the external threats to the business' success.

  1. Marketing Mix (4 P’s ) Analysis

Describe each of the 4Ps of your chosen company.

Product or Service

Identify the product or service by what it is, who will buy it, how much they will pay for it and how much it will cost for the company to produce it, why a consumer demand exists for your product, and where the product sits in comparison to similar products/services now available.

Place

Identify the location of the business, why it is located there (strategic, competitive, economic objectives), the expected methods of distribution, and timing objectives.

Promotion

Describe the type of promotional methods that will be used. Identify techniques such as word of mouth, personal selling, direct marketing, sales promotion etc. television, radio, social media and newspaper ads.

Price

The prices of the products or services that reflects the overall company strategy. Should be competitive as well as a reflection of the quality, costs and profit margin.

In: Operations Management

what type of test would you not want to use reliability?

what type of test would you not want to use reliability?

In: Psychology