Saudi Electronic University Order Process in Fantastic Pastry Shop Discussion

Description

FANTASTIC PASTRY SHOP CASE STUDY

Introduction about Fantastic Pastry Shop:

Fantastic Pastry Shop is a traditional pastry shop established in 1999. It is a small shop owned by two persons. One of them was responsible for buying goods and bringing them to the shop two times a day (every morning and late afternoon). The other one is managing the shop activities and organizing shifts for employees. They work 24/7 and have three shifts. They employ well-experienced employees in each shift. The shop has three chefs for making the dough and sauce, three well-trained employees for preparing and putting the ingredients, and three well-trained employees for cooking the pastry and controlling the oven heat. The owners work on this shop and have other employees to help them.

The order process in Fantastic Pastry Shop:

The process starts by welcoming the customer and giving them the menu. The customer looks into the menu then places their order. The cashier writes down the order on a separate paper for each customer, calculates the prices, and then asks the customer to pay (4 minutes). After getting the payment, the cashier handed the paper of each order to the second employee. The next employee then starts to prepare the dough based on the order (the shop has two bases of dough: white flour dough and brown wholemeal flour dough) (4 minutes). The next employee is responsible for filling the pastry with the ingredients based on each customer’s order (2 minutes). The next employee takes the pastry, puts it into the oven until it is ready, and then gets it back (2 minutes for white flour base and 4 minutes for brown wholemeal flour base). The last employee cut the pastry and packages it then hands it to the customer (2 minutes).

The current situation of Fantastic Pastry Shop:

The shop starts to get a lot of orders that are over its capacity due to its reputation. It usually gets around 20 orders from persons coming to their shop in each hour. Each order – on average – includes 3-5 pastries of different bases and ingredients. However, the shop lost a couple of its experienced employees responsible for preparing and cooking pastries.

The Issues in Fantastic Pastry Shop:

The Fantastic Pastry Shop was very successful and had many customers and significant revenue. However, the shop starts to lose many of its loyal customers and receives a considerable number of complaints. The managers started to investigate the complaints they received. They also contacted their loyal customers to understand the different issues more clearly. After this deep investigation, they categorized the issues into the following categories:

  • Some of the pastry’s bases and ingredients are unavailable in the early afternoon or late night.
  • The waiting time becomes unacceptable to customers.
  • The quantity of ingredients is not always the same which affecting the taste of the pastry.
  • The brown wholemeal flour base of pastries is sometimes undercooked.
  • The customers sometimes get some of their pastries cold.
  • The customers sometimes get the wrong order.

The requirements to solve Fantastic Pastry Shop process issue:

Besides the available information, you are expected and allowed to make assumptions, if you need, to improve the process and solve the issue of the Fantastic Pastry Shop.

You are requested to solve the issue of the Fantastic Pastry Shop and improve its process and performance by answering the following questions.





solve this question

Explain the main Input, Process Activities, and Output of the Fantastic Pastry Shop Process. Then, calculate the current cycle time of the process? Also, calculate the throughput for this process in 1 hour? Further, find out the bottleneck activities?


UMBC Bar Chart Function Project

Description

Write a function called ‘bar_chart’ based on the following IPO specification:

# function:   bar_chart# input:      x & y value (integers), labels, values and colors (lists)# processing: draws a bar chart with the origin of the chart being at the x#             and y value supplied. the height of the chart will always be#             100 units, and the width of each bar in the chart can be#             computed as 50 units for each value in the 'values' list.#             draw two black lines to show these axes.##             the height of each bar should be proportionally scaled so that#             no bar ever ends up having a height of over 100 units.  for example,#             with the list [100,200,300] the third bar would be 100 units#             high, the second would only be ~66 units high and the first would#             be ~33 units high (values can be rounded and don't need to be exact)#             #             each value in the 'labels' list indicates the label for each bar#             in the bar chart.  these should be written below the x-axis#             using the 'turtle.write' function.  Ensure that these labels are#             spaced out accordingly (50 pixels for each bar)#             #             each bar should be drawn on top of the x-axis with a height defined#             in the 'values' list.  the color for each bar can be extracted#             from the 'colors' list.  the value of each bar should also be #             written at the top of each bar.# output:     function returns no value

Here is a sample program and its desired output to test your work:

import turtleturtle.setup(600,600)bar_chart(-200,-200,["pikachu"], [99999], ['yellow'])bar_chart(0,-200,["x","y","hello","world"], [1000,900,800,700], ['grey','pink','black','purple'])bar_chart(-200,0,["apple", "pear", "orange"], [100,200,300], ['red', 'green', 'orange'])bar_chart(0,0,["a","b","c","d","e"], [50,70,90,10,30], ['blue','pink','red','green','yellow'])

Some hints:

  • You don’t need to validate your data – the function will always be called with the correct arguments with the correct data types
  • The items in each list are related to each other by position (i.e. in the first list “apple” has a value of 100 and a color of ‘red’)
  • Refer back to Assignment #6B and our lecture on turtle graphics if you need help getting started with turtle. You are welcome to use any functions that you wrote for that assignment, including the ‘generic_polygon’ function.

Purdue University Fort Wayne SQL Queries Worksheet

Description

Your task in this assignment is to write a set of SQL queries (I will supply the tables). The script file has been added to the question and run it in SQLDeveloper to build the tables you will be querying:

CD(CID, Title, Artist, YearReleased, Price)

CDSTORE(SID, Name, City, State)

CDORDER(OrderID, StoreID, CDID, Quantity, OrderDate)

In addition to the primary keys underlined above, CDID in CDORDER is a foreign key referencing CID in CD, and StoreID in CDORDER is a foreign key referencing SID in CDSTORE. Look at the Columns, Data, and Constraints for each of the three tables before continuing, to be sure that they have been constructed correctly. You might also want to draw the foreign keys and reference arrows into the set of relation schemas given above to be sure that you understand the links among the tables. For each of the following query problems, follow the steps discussed in class: interpret the problem, predict the output by solving it by hand on the needed table(s), write a query to solve the problem, and test the query. (Many of these query problems can be solved with information from just one of the given tables, but some will require inner joins.) In a separate .sql file (do not modify CDs2022.sql), write a script that contains just eight SQL queries to solve the following problems (in this order):

1. Give the title, price, and year of all CDs released by Alice Stein before 2017, ordered from the newest CD to the oldest CD.

2. Give an alphabetical list of the names of all stores whose names begin with ‘CD’.

3. Display the number of CDs released in each year, ordered from the earliest year to the latest. (Include the value of the year itself in each line of your output as well.)

4. For each artist, give the artist’s name and the average price of the CDs released by that artist, ordered from the lowest average price to the highest average price.

5. For each store that has ordered CDs, give the ID of the store and the total quantity of CDs that the store has ordered. Order the output by the ID of the store.

6. Give the IDs and names of all CD stores that placed an order during April of 2021.

7. List, in alphabetical order, the titles of all CDs ordered by stores in New York (‘NY’). (Hint: You will need to join all three tables together to solve this problem.)

8. For each CD, give the title of the CD and how many orders have been placed for that CD – not the total quantity, just how many orders have been placed for any quantity of that CD. Order the output from the CD with the most orders placed for it to the CD with the fewest. (If no one has ordered the CD yet, you do not have to include it in the output.)

You may write and test your queries individually in SQLDeveloper, but once you have them working, you should put them all together into a single script file and be sure that the queries can be run all together in this form. Run the script file containing your queries to verify that your results are correct.

Kent State University Polynomials Questions

Description

We can represent a polynomial of one variable as an ordered list of terms, where the terms are ordered by their exponents. There are multiple ways to add or subtract two polynomials from an algorithmic standpoint. Here are two possibilities:

  • Traverse both lists and examine the two terms at the current iterator position. If the exponent of one is smaller than the exponent of the other, then insert this one into the result and advance that list’s iterator. If the exponents are equal, then create a new term with the exponent and the sum of the coefficients, and advance both iterators.
  • Traverse one list, adding a single term into another polynomial by looking for a matching exponent. If the exponents match, add the coefficients. Otherwise, place the single term in the other list at the right position to keep the terms ordered by exponent.

For example: 3x^4 + 2x^2 + 3x + 7 added to 2x^3 + 4x + 5 yields 3x^4 + 2x^3 + 2x^2 + 7x + 12.

Write a program to add and subtract polynomials (you don’t need to read input from the keyboard, just use methods to construct the polynomials). I have defined a class Term that contains the exponent and coefficient and implements the Comparable interface. You should define a class Polynomial that uses a java.util.LinkedList of Term objects. A toString() and equals() method is provided to help you debug. Things to keep in mind:

  • Make sure that there is only one representation of zero.
    • This is frequently the cause of errors because a polynomial like 0x^4 is not equal to 0x^0 but both have a toString representation of “0”. This yields strange error messages like “Expected polynomial 0 but was 0.”
  • Make sure that polynomials are built in order of exponent.
  • If two terms cancel out, don’t include a zero term unless the whole polynomial is zero.
    • Again, 0x^4 + 0x^3 +0x^2 will print as “0” but is not the same as 0x^0.
  • You should not change the Term class.
  • Do not alter this or the parameter polynomials in your methods. They are expected to be immutable objects (like String objects).

HERE IS THERE PROGRAM YOU HAVE TO DO:import java.util.List;

import java.util.LinkedList;

import java.util.ListIterator;

public class Polynomial {

public static final Polynomial ZERO = new Polynomial(Term.ZERO);

private List<Term> terms;

public Polynomial() {

this.terms = new LinkedList<Term>();

}

public Polynomial(Term [] terms) {

this();

Polynomial p = new Polynomial();

for (Term term : terms) {

p = p.add(new Polynomial(term));

}

this.terms = p.terms;

}

public Polynomial(Term term) {

this();

terms.add(term);

}

public Polynomial(Polynomial other) {

this();

for (Term term : other.terms) {

terms.add(term);

}

}

public Polynomial add(Polynomial other) {

Polynomial result = new Polynomial();

// add your code here

return result;

}

public Polynomial sub(Polynomial other) {

Polynomial result = new Polynomial();

// add your code here

return result;

}

@Override

public boolean equals(Object obj) {

if (!(obj instanceof Polynomial)) {

return false;

}

Polynomial other = (Polynomial)obj;

return this.terms.equals(other.terms);

}

public String toString() {

StringBuilder builder = new StringBuilder();

for (Term term : this.terms) {

if (!term.equals(Term.ZERO)) {

if (builder.length() != 0) {

if (term.isNegative()) {

builder.append(” – “);

term = term.negate();

} else {

builder.append(” + “);

}

}

builder.append(term.toString());

}

}

if (builder.length() == 0) {

return “0”;

}

return builder.toString();

}

}

Java Program Project

Question Description

I’m working on a java project and need a sample draft to help me learn.

I need a java program (code that I can run and/or edit as needed). It needs to be properly documented.

Program requirements:

  • The program shall read from a text file, five, 5-letter words, and make available for the program to use.
  • The program shall take each word and jumble them (scramble each word).
  • The program shall display each jumbled word and interact with the user.
  • The program shall prompt the user to take a guess at each jumbled word, one a time, so that the user can try to guess what word it is.
  • The program shall allow three attempts for each word.
  • The program shall compare the user’s input with the jumbled word and notify the user what letters and in what position they guessed.
  • The program shall include any other messages that help interact with the user.
  • The program shall be properly documented and shall explain each function in detail, and provide guidance in case the user needs to make minor modifications to variables such as the number of attempts, the number of words read, the messages, etc.

Example:.

Read Saved 5, 5-letter words from a text file and make available in the program (load into an array list or similar method)

Input text file with saved words.

Word 1= PRONG

Word 2= abcde (placeholder)

Word 3= fghijk (placeholder)

Word 4= lmnop (placeholder)

Word 5 = rstuv (placeholder)

Program:

jumbled word 1 = NGROP

Display jumbled word “NGROP”

Ask user to guess jumbled word and unjumbled the word

Compare letters entered and their positions and verify how many they got in the correct position. If they did not get the correct word at first, the program outputs “try again”, and outputs the words that they guessed correctly in the correct position, if any, or output zero words guessed. They have three guesses for each word.

Once they make three attempts for word 1, the program continues with word 2, etc., until the user has tried three times for each word. If the user guesses any of the words before their last attempt, the program should output a message confirming they guessed the word, and continue with the next jumbled word.

The program may contain as many output messages as needed to interact with the user, in order to run in accordance with the requirements at the top of the page.

The program ends when the user guesses or make all attempts to each word, until the program finishes with word 5, either by guessing or by attempting three times.

Ex. User entered

Program reads and/or stores Word 1 from text file

P

R

O

N

G

The program jumbles each word. In this example, word 1.

N

G

R

O

P

The program directs the user to input their guess. User input #1

R

O

P

N

G

Program output: Letter 4 and 5 in the correct position. Try again, etc., until they make three attempts, or guess before their third attempt.

User input #2 OR #3

P

R

O

N

G

Program output: Your guess is correct, etc. The program continues with the next word, or exits if there are no remaining words.

Or

“You did not guess word #1. Continue with the next word…” etc.

Please let me know if there are any questions. Thank you for your assistance.

INF 286 John Tyler Community College Html CSS Questions

Description

INF 286

Assignment #12

Instructor Dr. Hongmei Wang

Last Name: First Name:

Grade: 

Comment:

Coding questions. The following question needs your complete HTML code.

Please follow instructions to solve the problems

Please start with       the original code given in each subfolder 

Modify files in the       subfolder without modifying the file names.

Problem 1 (50%): Using JavaScript, create a simple web page that displays a Sales Tax Calculator, which accepts the user input on the sales subtotal and tax rate, and output  the amount of sales tax and total amount of money that the user needs to pay.  

Program Requirements: Your program must be written in JavaScript. In addition, you should follow the specific guidelines below.

The web page displays Sales Tax      Calculator as below. It should include:

two input text boxes for the sales       subtotal and tax rate, and 

two disabled output text boxes for       the sales tax and the sales total

one Calculate button and one Clear       button. 

When the user clicks on the button      Calculate (5%)      , 

(15%) the program validates       each of the input text boxes, including Subtotal and Tax Rate, and gives       an alert dialog about the reason why the input is incorrect if any of the       input is incorrect. Each of the input is required and should be numeric       and greater than 0. 

(15%) If both input are valid,       the text box for Sales Tax and Total will display the amount of sales tax       and sales total respectively.

(15%) When the user clicks      on the button Clear (5%), all the textbox are set to empty (10%).      

  • Others:

Please start with       the original code given in the subfoler sales_tax 

  • Modify files in       this subfolder without modifying the file names.

Problem 2 (50%): Using JavaScript, create a simple web page that displays a Change Calculator, which allows the user to enter amount of change due (0 – 99) in cents, and output the number of each type of coins as change.   

Program Requirements: Your program must be written in JavaScript. In addition, you should follow the specific guidelines below.

The web page displays Change      Calculator as below. It should include:

One input text box for the amount of       change due in cents, and 

Four disabled output text boxes for       the number of quarters, dimes, nickels and pennies. 

one Calculate button. 

When the user clicks on the button      Calculate (5%),      

(15%) the program validates       each of the input text box, and gives an alert dialog about the reason       why the input is incorrect if the input is incorrect. The input is       required and should be numeric and greater than 0. 

(30%) If the input       correct, the four output text boxes will display the number of four       different types of coins. Hint: Instruction       about how to calculate the number of different coins: 

The number of quarters = parseInt(input / 25)

  • input_dime = input%25

The number of dimes = parseInt(input_dime/10)

input_nickels = input_dime%10

  • The number of nickles =        parseInt(input_nickles/5)
  • The number of pennies = input_nickles % 5
  • Others:
  • Please start with       the original code given in the subfoler change_maker 
  • Modify files in       this subfolder without modifying the file names.

CU Javascript Project

Description

Overview

Most Web sites have images. There are many different features and functionality that can be used to work with images via the use of JavaScript. These include preloading, rollovers, and cycling banner ads. In this assessment, you will be working with JavaScript, images, and events, and you will be manipulating the DOM to create an interactive image gallery.

Hint: Preloading your images will only work on a hosting server and not your local drive as there’s no load time for your images locally. Once you have preloaded those images, you may want to clear your cache to test your loading of the images again.

Tip: In a smaller JavaScript program such as this one, each function is created for a specific purpose. However, in more complex sites, it is better to build functions that we can apply to multiple situations. For example, rather than specifying an element name or id, we can use a variable that is passed into the function.

Directions

Use the gallery.html and index.html files that you downloaded in the Zip file in Assessment 1. Create functionality using JavaScript on the following pages:

index.html

  • Preload the images (banner1.jpg, banner2.jpg and banner3.jpg found in the images folder) for the banner at the top of the page.
  • Create a cycling two-state banner that cycles every three seconds.

gallery.html

  • Preload the gallery images.
  • Create rollover functionality for each of the thumbnails in your image gallery. Use appropriate images found in the images folder.
  • Write developer comments to describe the variables being declared and explain the functions and logical blocks of JavaScript code pertaining to the gallery.

Make sure to do the following:

  • Create an onpageload function to preload all of your images.
  • Create a modularized function to cycle the homepage banner.
  • Create a modularized rollover function for gallery images.
  • Once completed, view your pages in each of your two selected Web browsers to see if the content renders appropriately and consistently within each. Next, verify that your code is error-free using the appropriate browser-specific development tool found in the Resources. Take a screen capture of each of your validation results and save it for submission.

Note: “Modularized” refers to creating components that can be re-purposed without significant changes to coding. Modularized components have no “hard coding” of image names, urls, et cetera, in the functions. There is an example JavaScript modularized and non-modularized JavaScript found in the Suggested Resources in the file called “Example Code.”

Submission Requirements

  • Upload your Web site files to your Web host.
  • Submit your work in the courseroom using a single Zip file containing the following:
    • Your entire Web site including all associated files.
    • A Word document with:
      • The url to your Web site so faculty can view your site on a live host.
      • A screen capture of each of your two validations that you completed using the developer tools found in the Resources.

Government College University Developing Multi-Process Program Worksheet

Description

Unix shell with redirects and pipes

The purpose of this assignment is to learn to develop multi-process programs. You are expected to extend the myshell.c program and add pipelines and I/O redirections. In particular, your shell program should recognize the following:

> – Redirect standard output from a command to a file. Note: if the file already exists, it will be erased and overwritten without warning. For example,COP4338$ ls > 1 COP4338$ sort myshell.c > 2
Note that you’re not supposed to implement the Unix commands (ls, sort, …). You do need to implement the shell that invoke these commands and you need to “wire” up the standard input and output so that they “chain” up as expected.

>> – Append standard output from a command to a file if the file exists; if the file does not exist, create one. For example,COP4338$ sort myshell.c >> 1 COP4338$ echo “Add A Line” >> 1

  1. < – Redirect the standard input to be from a file, rather than the keyboard. For example,COP4338$ sort < myshell.c COP4338$ sort < myshell.c > 1 COP4338$ sort > 1 < myshell.c
    The second and third commands are the same: the sort program reads the file named myshell.c as standard input, sorts it, and then writes to file named 1.

| – Pass the standard output of one command to another for further processing. For example,COP4338$ ls | sort COP4338$ sort < myshell.c | grep main | cat > output

Make sure you have your parent process fork the children and ‘wire’ them up using pipes accordingly. There will be spaces separating tokens in the command line. Your program should be able to run with all the Unix commands as expected. Don’t assume your program will only be tested by the above commands. Also, there could be more than two commands chained by pipes, like the second example above.

  1. Your program needs to provide necessary sanity-check from the user input. Prompt meaningful errors accordingly as what you’d experience with your shell.

Hint: use strtok() functions to separate the tokens and use strstr() to locate sub-strings.

  1. You should place the source code and the Makefile in the directory. One should be able to create the executable called myshell by simply ‘make’. The Makefile should also contain a ‘clean’ target for cleaning up the directory (removing all temporary files, object files and executable files). Make sure you don’t include intermediate files: *.o, executables, *~, etc., in your submission. (There’ll be a penalty for including unnecessary intermediate files).

Please make sure you submit homework before the deadline. Extensions cannot be given for the final program.

If the program does not compile and do something useful when it runs it will not earn any credit.

LAPC LAB Software System Manual System in ACME Project

Description

The purpose of this lab is to demonstrate your ability to gather requirements as a part of software system selection.

Current Situation

  • Acme manufacturing is located in Kansas City, MO
  • Total employees – 200
    • 50 office employees, e.g. CEO, Sales, Finance/Accounting, HR, IT, Legal, Engineering
    • 150 employees in manufacturing
  • Revenue – $50M annually
  • Product
    • Specialty project used in construction
    • Weighs 4 ounces
    • Inventory held in 3 warehouses, east, mid-west, west
    • Product is $5/unit, the average sale is 20 units ($100)
    • Product sold via company website (credit cards) or telephone orders (purchase order)
    • Products are sold domestically in the US only (no international sales)
    • Discounts offered to loyal customers

Assignment

  • The head of accounting and finance (CFO) wants a new accounting system for the company as everything is done today is manual
  • Assume you are an IT business analyst and you work closely with the CFO and the Finance team. Also, assume that you already interviewed everyone in the CFO’s organization to collect requirements for the new accounting system.
  • You are getting ready to review the requirements of the new system with the CFO
  • In Microsoft Word, write 8 high-quality requirements in the form of bullets. You should feel free to make assumptions in your bullets to build the requirements. Also note that good requirements are often written as below, describing the current problem and the desired future state. For example:
    • Our current auditors are Ernst and Young. The current quarterly audit takes 2 days and the annual audit 1 week due to all of the manual processes we have in place. The new system needs to enable Acme to reduce quarterly audits to 4 hours and annual audits to 2 days.
  • Here is a very good example of a requirement from a former student of ITM300
    • Our current manual entries for inventory provide no control of systems. They fail to provide real-time accurate inventory which has resulted in severely low stock in our warehouses at least once a month for a whole year. The new system needs to provide accurate real-time inventory for each warehouse. The system should also recognize high, medium, low, severely low inventory ranges with color identifiers. When a low range of inventory is recognized a reminder to warehouse production management should be sent. The reminders should be periodical until a medium inventory range is achieved by the warehouse. If a warehouse remains in a low or severely low inventory range for more than 3 weeks information must be sent to the CEO within 2 business days. The ranges for color identifiers are:
      • Green 100,000 units to 75,000 units.
      • Lime-Yellow 74,999 units to 30,000 units
      • Orange 29,000 units to 10,000 units
      • Red 9,999 units to 0 units

FIU Program that Run on Ocelot and Provide a Multithreaded Solution Question

Description

Write a C program called threadcircuit to run on ocelot which will provide a multithreaded solution to the circuit-satisfiability problem which will compute for what combinations of input values will the circuit output the value 1. This is the sequential solution, which is also attached. You should create 6 threads and divide the 65,536 test cases among them. For example, if p=6, each thread would be responsible for roughly 65,536/6 number of iterations (if it’s not divisible, some threads can end up with one more iteration than the others). The test cases must be allocated in a cyclic fashion one by one.

#include <stdio.h>
#include <sys/time.h>

/* Return 1 if 'i'th bit of 'n' is 1; 0 otherwise */
#define EXTRACT_BIT(n,i) ((n&(1<<i))?1:0)

int check_circuit (int z) {
 int v[16];        /* Each element is a bit of z */
 int i;

 for (i = 0; i < 16; i++) v[i] = EXTRACT_BIT(z,i);
 if ((v[0] || v[1]) && (!v[1] || !v[3]) && (v[2] || v[3])
     && (!v[3] || !v[4]) && (v[4] || !v[5])
     && (v[5] || !v[6]) && (v[5] || v[6])
     && (v[6] || !v[15]) && (v[7] || !v[8])
     && (!v[7] || !v[13]) && (v[8] || v[9])
     && (v[8] || !v[9]) && (!v[9] || !v[10])
     && (v[9] || v[11]) && (v[10] || v[11])
     && (v[12] || v[13]) && (v[13] || !v[14])
     && (v[14] || v[15])) {
   printf ("%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%dn",
       v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],
       v[10],v[11],v[12],v[13],v[14],v[15]);
   return 1;
 } else return 0;
}

int main (int argc, char *argv[])
{
 int count, i;

 count = 0;
 for (i = 0; i < 65536; i++)
   count += check_circuit (i);

 printf ("There are %d solutionsn", count);
 return 0;
}

threadseqcircuit.zip If a thread finds a combination that satisfies the circuit, it should print out the combination (like in the given sequential version), along with the thread id (a number between 0 and 5 (p-1)). In the end, the main thread should print out  the total number of combinations that satisfy this circuit (like in the given sequential program). Mutex should be used to update the total by each thread. An example output of the program is shown below:

% threadcircuit
0) 0110111110011001
0) 1110111111011001
2) 1010111110011001
1) 1110111110011001
1) 1010111111011001
1) 0110111110111001
0) 1010111110111001
2) 0110111111011001
2) 1110111110111001
There are 9 solutions

The source file should have your name & Panther ID, a description and it should have the affirmation of originality included in a comment at the top.

Code should be nicely indented and commented.

Create a simple Makefile to compile your program into an executable called threadcircuit.