Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

Algorithm DesignPrior to beginning work on this interactive assignment, read

Get college assignment help at Smashing Essays Question Algorithm DesignPrior to beginning work on this interactive assignment, read Chapters 7 and 11 from the textbook, view theSelect-sort With Gypsy Folk Dance (Links to an external site.), Java: Insertion Sort Sorting Algorithm (Links to an external site.), and Lego Bubble Sort (Links to an external site.) videos.For this assignment, please review the following scenario and instructions.Your company has won a bid on a contract to collect and sort Internet data on customer buying patterns for laundry detergent. You will be collecting public data from more than 100 websites. Your company has been contracted to make this collected data usable by indexing and sorting it so that it is searchable by marketing departments to identify specific consumer buying patterns. These buying patterns will assist in the development of marketing campaigns targeted at appropriate buying populations. In order to do this you have been tasked with the design of an algorithm that will allow marketing departments to search the data to identify these populations. Develop an algorithm to effectively search this data.Review the Sorting Algorithm Animations (Links to an external site.) website. Assess the sort types included there and choose the sort that best fits with the task you have been assigned. Once you have chosen your sort type, create a solution using pseudo-code for your algorithm. Include this pseudo-code in your initial post. Beneath the pseudo-code, explain why this sort type is the best option for searching the data and making it available for buyer population identification. Explain why it is a best practice to sort the data prior to searching it in this instance. Provide evidence from your sources to support your statements. Your initial post should be a minimum of 250 words in addition to the pseudo-code.

The following questions all involve PriQueueInterface, which contains all of

Question The following questions all involve PriQueueInterface, which contains all of the functions required to implement a priority queue, based entirely on the int type.i. Write the definition for PriQueueInterface. You may assume that your queue insertion function takes an additional int parameter priority.ii. Define a class called PriVectorQueue which inherits from PriQueueInterface. PriVectorQueue uses a vector for its queue. Insertion into the priority queue is based on the ‘highest priority served first’ approach.iii. Your manager asks you to add a bypassQueue function as a public function that allows users to select and remove an entry from anywhere in the queue. Is this a good or a bad idea? Discuss your answer in detail.

/* Use while loops allow a user to control when

Question /*  Use while loops allow a user to control when to stopThis program averages 3 test scores. It repeats asmany times as the user wishes.Write while loop that will continue to prompt theuser to enter 3 scores and then calculates the average.After displaying the average, the loop should ask theuser if they want to average another set of scores.*/#include using namespace std;int main(){ int score1; // Three scores int score2; int score3; double average; // Average score char again = ‘Y’; // Initialize loop test variable // TODO: Write while loop that will continue to input 3 scores, //    calculate the average, and display the average as long //    as the user enters Y or y. return 0;}/* SampleEnter 3 scores and I will average them: 88 91 92The average is 90.3333.Do you want to average another set? (Y/N) YEnter 3 scores and I will average them: 65 70 75The average is 70.Do you want to average another set? (Y/N) yEnter 3 scores and I will average them: 92 93 96The average is 93.6667.Do you want to average another set? (Y/N) nPress any key to continue . . .*/ How do I program this properly in c ?

/* Use a while to search data, looking for the

Question /* Use a while to search data, looking for the largest entry Demonstrate how to use an event-controlled loop to read input and find (remember) the largest value entered and number of values that were entered. NOTE: This program uses a constant defined in C called INT_MIN. This constant represents the smallest integer that C can handle. When we initialize the variable for the largest value to this it means any int read after that will be larger (by definition). Think about why this is necessary. What would happen if we initialize largest to 0 and then the user enters a negative number. The 0 would be bigger, but the user never really entered a 0… */#includeusing namespace std;int main(){ char goAgain; // variable to control event loop int latestInput; // input values int largestSoFar = INT_MIN; // variable to remember largest value int count = 0; // variable to count loop iterations cout << "The program will remember the largest integer value entered.n"; // LOOP CONTROL: initialize loop event cout <> goAgain; cout << endl; // TODO, LOOP CONTROL: remove comment symbols on the while // line below and code the text expression between ( and ). //  while( /* replace with test expression */ ) { // TODO, LOOP PROCESS: prompt the user and get an input value // TODO, LOOP PROCESS: test if new entry is now the largest seen // TODO, LOOP PROCESS: update iteration counter // TODO, LOOP CONTROL: ask the user if they want to enter another and // read a new value into the loop control variable } // end of loop body // LOOP EXIT: display status of loop count and largest value cout << "You entered " << count << " values." < 0) cout << "The largest value entered was " << largestSoFar << endl; cout << "nEnd Program – "; return 0;}/* Sample Interaction and OutputTest #1:=======================================================The program will remember the largest integer value entered.Would you like to begin (y or n): nYou entered 0 values.End Program – Press any key to continue . . .Test #2:=======================================================The program will remember the largest integer value entered.Would you like to begin (y or n): YEnter a whole number: -19Enter another (Y or N): yEnter a whole number: 99Enter another (Y or N): YEnter a whole number: 7Enter another (Y or N): nYou entered 3 values.The largest value entered was 99End Program – Press any key to continue . . .*/How do I program/code this properly in C programming ?

/* Use nested while loops to produce rows and columns

Question /* Use nested while loops to produce rows and columns Demonstrate how to use nested While loops to print a multiplication table. */#include#include // you will need to use setw() to get columns to align properlyusing namespace std;int main(){ const int MAX = 10; // TODO: Declare a column counter, and //    declare and initialize a row counter // TODO: Remove comment symbols, and write outer loop for MAX rows //  while( /* replace with test expression */ ) { // TODO: Initialize column counter for each row // TODO: Write inner while loop for MAX columns { // TODO: Display the next product (row * col) – use the variable names you declared // TODO: Increment the column counter } // end of inner loop body // TODO: Print a new line, and //    update the row counter } // end of outer loop body cout << endl; cout << "Done for " << MAX << " by " << MAX << " table." << endl; return 0;}/* Sample Output  1  2  3  4  5  6  7  8  9 10  2  4  6  8 10 12 14 16 18 20  3  6  9 12 15 18 21 24 27 30  4  8 12 16 20 24 28 32 36 40  5 10 15 20 25 30 35 40 45 50  6 12 18 24 30 36 42 48 54 60  7 14 21 28 35 42 49 56 63 70  8 16 24 32 40 48 56 64 72 80  9 18 27 36 45 54 63 72 81 90 10 20 30 40 50 60 70 80 90 100Done for 10 by 10 table.Press any key to continue . . .*/ How do i program/code this properly in C programming?

Hi Tutor,Could you please assist to perform the solution by

Question Hi Tutor,Could you please assist to perform the solution by using “Java” for the following question?HKJC targets to develop a program letting people to choose numbers in Mark Six Lottery.  The program should have the following functionalities.  1. Users can specify the computer to generate set(s) of Mark Six numbers randomly.  2. Within a set, no duplicate numbers are allowed. In other words, a set could not appear a number more than once.  3. Each set must be presented in ascending order.  4. Users may indicate several preferred numbers and the program generates the remaining numbers. For example, users have indicated the preference number 3, 23. All generated set of number would contain 3 and 23.  5. For having preference numbers indicated, the program should be smart enough to check for unreasonable cases.  For example, users have indicated the number of sets they wanted is 100, but their preference numbers 2 3 8 9 33. The program should show an error message because the system could only generate 49 sets at most in this case.  6. In addition presenting the results on screen, the generated sets would be stored in a file (text file) for users to print it out for tickets purchase.  In this assignment, you may only submit those items that you could handle even not all features are implemented. The marks allocation are as follows:  Requirement 1, 2, 3:        50 marks Requirement 4:      15 marks Requirement 5:      5 marks Requirement 6:      20 marks Use of data structure:     5 marks Programming style and documentation: 5 marks  Different programmers would have their own data structure design and style in coding. To be a successful programmer, you need to spend effort in solving the problem. Though you may search on the net for reference, you are not allowed to copy the program codes and usage of data structure that you do not understand the details and could not face the challenge for an explanation on the logic behind. If you really have no idea, the following step by step hints may be useful  Part A – Set up the program  1. Choose the program name with a public class and the main method.  2. Set up the various sections in the program with comment indicator. For example, data declaration section, user input section, processing section and output section.  Part B – Generate ONE random number  1. In the data declaration section, declare a variable for storing the random number to be generated.  2. In the processing section, generate a number within 1 and 49.  You may consider to write a method say generateNumber for this task.  3. In the output section, print the generated number out.   Part C – Generate a set of random number  1. In the data declaration section, declare the data structure for storing six random numbers. If you are not familiar with other structure, array data structure is most easy and efficient.  2. Make use of a loop, generate six numbers. The number that are generated may be repeated at this stage.  3. In the output section, enhance the output of six numbers instead of just one (in Part B).  4. Now start to consider the duplication issue. Write a method say checkDuplicate for the checking process. In the method, design the input parameters and the return result.  The input parameters include array for the generated numbers, up to which elements needed to be checked. The return value is a Boolean value of true (for duplication) and false (for no duplication).  5. After the checking method has been completed, consider at which place to invoke the method at the processing section. Take appropriate measures based on the return value.  6. In the output section, check the numbers to ensure there is no duplication. The numbers presented are not in ascending sequence.  Part D – Display the numbers in ascending sequence  1. Write a method say sortNumber for the sorting task. Design the input parameters and whether there is any return result.  2. In coding the sortNumebr method, apply a sorting algorithm that you have learnt (for example, bubble sort algorithm) to put the numbers in sequence.  3. Invoke the sortNumber method in the processing section.  4. In the output section, check the given numbers are in proper sequence.  Part E – Generate the number of sets Indicated by User  1. In the data declaration section, declare a variable for storing the number of sets that the user wants to generate and the input class object say Scanner object or jOptionPane object. Adjust the data structure for storing multiple sets of mark six numbers. You may consider using two-dimension array with the first index showing the set number and the second index showing the corresponding mark six number.  For example, if the array name is markSix : markSix[0][0] stands for the first number (for betting) in the first set; marksix[3][5] stands for the last number in the fourth set.  2. In the user input section, accept the number of required sets from the user.  3. Develop a method say checkDuplicateSet. The input parameter of the method are the mark six array and the set number for checking. The return value would be a Boolean of true indicating having duplicate and false for no duplicate.  4. In the processing section, set up another loop to repeat mark six set generations according to the user input number. In each loop, once the set is generated, invoke the checkDuplicateSet to ensure there is no duplication on sets.   5. Test the program is properly done.  Up to this part, you have completed the requirements 1 to 3.  Part F – Allow Users to enter the Favorite Numbers  1. In the data declaration section, declare an array for storing the preference numbers which is almost 6 elements.  2. In the user input section, accept the number of favorite mark six numbers the user wants to enter.  3. With the input of the number of sets required and the number of favorite mark six numbers, check for their reasonableness. Display error messages and start the input all over again.  4. Based on the input number, loop to accept the favorite mark six numbers and store them in the preference number array.  5. When generating each set, the first couple of numbers would already been preassigned with those preference numbers.  6. Test the program is properly done.  Up to this part, you have completed the requirements 4 and 5 as well.   Part G – Write the result to a File  1. Create a filename variable . 2. Set up an output file object with FileWriter class using the filename variable.  3. According to the random numbers generated, write a set of the number to the file with numbers delimited with a comma.  4. If more than one set is drawn, use a loop to repeat writing to a file for all the number sets..  5. Close the file object after the completion of output.  6. Using a text editor say Notepad to check the file content is correct and properly formatted.  7. Up to this part, you have completed the requirement 6.  Part H – Round Up  1. Perform more testings to identify whether there are hidden bugs.  2. Check the program logic to find out further improvement could be made.  3. Complete the inline program documentation for ease of future maintenance.  4. Submit the work on the SOUL platform.  5. From this practical experience, evaluate whether you have learnt something for being a programmer.   Thanks Student

How long has this website been available?

Question How long has this website been available?

Alabama Mobiles Inc. designs and manufactures mobiles, lightweight “kinetic sculptures”

Question Alabama Mobiles Inc. designs and manufactures mobiles, lightweight “kinetic sculptures” consisting of decorative objects and bars, each bar having a string tied to each end from which hang other bars or decorative objects.A bar is a straight length of light plastic (negligable weight) with two other mobile elements hanging from it, one at each end of the bar. The bar will itself be hanging from a string, which may be tied anywhere along its length.A decorative object is much heavier than any bar, but of negligible size and having no other elements hanging from it.A well-designed mobile must have the weights of all the decorative items balanced, so that each bar in the mobile will naturally tend to hang horizontally.A bar with elements of weight XX and YY hanging from its left and right ends respectively, and hanging from a string tied at a fraction PP, 0≤P≤10≤P≤1, from its left end, is balanced if P∗X=(1.0−P)∗YP∗X=(1.0−P)∗Y.That faction PP is called the “balance point” of the bar.For example, if a bar has a total of 100g hanging from the left and 100g hanging from the right, the balance point PP is 0.5, right in the middle.But if a bar has a total of 100g hanging from the left and 200g hanging from the right, the balance point PP is 0.67, two thirds of the way down the bar.2 The AssignmentYour task is to complete a program that reads a description of a mobile and computes, for each bar, the position along that bar where the string should be tied so that, when the bar is hanging from that string, it will be balanced. This position will be expressed as a fraction (between 0 and 1) of the length of the bar from the left end to the place where the string is tied.Your task is to write the function balance(), which computes the connection points for the bar it is given as a parameter and for all bars hanging from it, directly or indirectly. Given a mobile with NN bars, it should accomplish this task in O(N)O(N) time.2.1 InputThe program reads, from standard input, a description of a mobile in an s-expression format (s-expressions are a common technique for representing trees in text form). A mobile is described either as

For this project you will need four to five images

Question For this project you will need four to five images or pictures. They can be from a hobby or interest of yours or maybe a vacation. You will store the images in an images folder but you will display only one image at a time on the page. Create five buttons on the page, each one will have a name that describes one of the pictures (e.g. scene from the beach, scene from the park, etc). When the user clicks on one of the buttons, you will display the picture related to that button (e.g. the beach picture). You will use the Javscript skills you have learned thus far (images, functions, document object model) to make the page work. Your page will also have two additional buttons that will allow the user to resize the current image. One button will resize it to a larger size and one button will resize it to a smaller size. You should accomplish this by reseting the width and height attributes of the image tag. You can use the examples from Tutorials Point as a starting point.

It’s often useful to display the events that occur during

Question It’s often useful to display the events that occur during the execution of an application. This can help you understand when the events occur and how they’re generated. Write a application that enables the user to generate and process every event discussed in the GUI related chapters. The application should provide methods from the ActionListener, ItemListener, ListSelectionListener, MouseListener, MouseMotionListener and KeyListener interfaces to display messages when the events occur. Use method toString to convert the event objects received in each event handler into Strings that can be displayed. Method toString creates a String containing all the information in the event object.

I want help in this question ATTACHMENT PREVIEW Download attachment

Get college assignment help at Smashing Essays Question I want help in this question ATTACHMENT PREVIEW Download attachment d35b59f7-26dc-4e7c-be75-db3940bcd8f2.jpg (b) (2 points each) Fill in the blank. i. nero lance is a form of software reuse in which new classes absorb the data and behaviors of existing classes and embellish these classes with new capabilities. ii. C provides for mu We’ve

src=”/qa/attachment/8318304/” alt=”d35b59f7-26dc-4e7c-be75-db3940bcd8f2-1.jpg” />can you solve it please Attachment 1 Attachment

Question src=”/qa/attachment/8318304/” alt=”d35b59f7-26dc-4e7c-be75-db3940bcd8f2-1.jpg” />can you solve it please Attachment 1 Attachment 2 ATTACHMENT PREVIEW Download attachment af0a39b6-41a2-43e3-b78d-80a6cecf472c.jpg ii. Write the main function and include an array of type Base of size 2 by using the new operator. The array shall be called baseArray. Answer: int main( )s Bace barse Arrog = now Base (2J s 7 iii. The following statements are added to the main function: 22 baseArray [0] = new A; 23 baseArray [1] = new B; 24 for (int i = 0; 1

I need help with my programming essentials classou are the

Question I need help with my programming essentials classou are the nutritional coach for a local high school football team. You realize that some of the players are not up to par having returned from summer break. Realizing nutrition plays a key in a productive team, you decide to implement a Body Mass Index Program.Write a modularized Body Mass Index (BMI) Program which will calculate the BMI of a team player. The formula to calculate the BMI is as follows:BMI = Weight *703 / Height^2Note: Height^2 means, the value of Height raised to the power of 2.Your program should utilize the following functions:A method to obtain the weight of a playerA method to obtain the height of a playerA method to calculate the BMI of a playerA method to display the height, weight, and calculated BMIFor this project:You will submit your python code in either the original .py file, or copied into a .txt file.A screenshot of your code having been executed (run). How to Take a ScreenshotTips: Remember, changing a value that has been passed into a function does not change the original value. Data passed into functions are only copies of the original value.Remember to follow the guidelines of good program design. Make sure to use meaningful variable names, include comments as needed, and provide thoughtful output.Remember, while you can pass as many arguments into a function as you want, but a function can only return one thing at a time. Ideally, to use a function to modify a variable or object, you will pass that object into the function, along with any other needed information to make the modifications, make the modifications to the new local copy of the object inside of the function, and then return the modified object. Thus, you will overwrite the original object with the returned modified object.example 1: object1 = modifyFunction( object1 ) #returns modified object1example 2: object1 = modifyFunction( object1, newData ) #returns modified object1Example output:C:>python week3.pyWelcome to the BMI Index Calculator.Please begin by entering the student’s name, or 0 to quit: NathanPlease enter student’s height in inches: 70Please enter student’s weight in pounds: 135Nathan ‘s BMI profile:———————–Height: 70″Weight: 135 lbs.BMI Index: 19.4Enter next student’s name or 0 to quit: TobyPlease enter student’s height in inches: 73Please enter student’s weight in pounds: 310Toby ‘s BMI profile:———————–Height: 73″Weight: 310 lbs.BMI Index: 40.9Enter next student’s name or 0 to quit: 0Exiting program…

How many times will HI be displayed when the following

Question How many times will HI be displayed when the following lines are executed? (3 points) Dim c As Integer = 15 Do     lstBox.Items.Add(“HI”)     c = 3 Loop Until (c >= 27)What is wrong with the following calling statement and its corresponding Sub statement? (2 points) MyProcedure(“The Jetsons”, 1000, 209.53) Sub MyProcedure(varl As Double, var2 As Double, var3 As Double)

src=”/qa/attachment/8318443/” alt=”Screen Shot 2019-07-01 at 1.18.31 PM.png” />can you solve

Question src=”/qa/attachment/8318443/” alt=”Screen Shot 2019-07-01 at 1.18.31 PM.png” />can you solve it please and make sure it is correct Attachment 1 Attachment 2 Attachment 3 Attachment 4 Attachment 5 ATTACHMENT PREVIEW Download attachment Screen Shot 2019-07-01 at 1.17.59 PM.png Question 2 (10 points) Consider the program segment below: vector

src=”/qa/attachment/8318453/” alt=”Screen Shot 2019-07-01 at 1.19.27 PM.png” />can you help

Question src=”/qa/attachment/8318453/” alt=”Screen Shot 2019-07-01 at 1.19.27 PM.png” />can you help me to solve it Attachment 1 Attachment 2 Attachment 3 Attachment 4 Attachment 5 ATTACHMENT PREVIEW Download attachment Screen Shot 2019-07-01 at 1.19.03 PM.png Question 6 (10 points) Consider the program segment below: list

What is the best way to add to the code

Question What is the best way to add to the code by including this comparison:jIf today’s date is later than January 1, 1980, display “Today is later than January 1, 1980” on the console.If today’s date is earlier than January 1, 2020, display “Today is earlier than January 1, 2020” on the console.What Java™ methods could be used to code these new requirements?From import java.time.*;A new Java™ project, name this new project testDate, and include the following code in the main() method:System.out.println(“Local date is ” LocalDate.now());System.out.println(“Local time is now ” LocalTime.now());System.out.println(“Local time and date is: ” LocalDateTime.now());       LocalDate date = LocalDate.now();DayOfWeek myDayOfWeek = date.getDayOfWeek();System.out.println(“Here is what day of the week it is: ” myDayOfWeek);Test and debug successfully with the above criteria is the goal.

  1. When would a programmer use String vs. StringBuilder?
  2. What are Java™

Question

  1. When would a programmer use String vs. StringBuilder?
  2. What are Java™ exceptions, and why should programmers handle them?
  3. What is the difference between a Java™ error and a Java™ exception?
  4. What is the difference between a checked exception and an unchecked exception?

Code listed Below:public class { public static void main(String args[]){

Question Code listed Below:public class {  public static void main(String args[]){    int a,b,c; // We define variables of type integer namned a, b, and c.     try { // We set up the try check block. We will be looking for an invalid value for integer c       a=0; // Now we assign values to the variables.        b=15;       c=b/a; // The result of dividing a number by 0 is undefined. Exception!       System.out.println(“This line will not be executed when a=0 because when a=0, the previous line throws an exception to the catch block.”);        }    catch(ArithmeticException e) { // As soon as an exception is thrown in the “try” block, execution of this code begins.       System.out.println(“Catching this exception thrown by the try block: ” e);     }    System.out.println(“Execution resumes here after both the try and catch blocks execute.”);  }} 

Code listed below:package;import java.util.*; // wildcard to import all the

Question Code listed below:package;import java.util.*;   // wildcard to import all the util. classes import java.text.*;   // wildcard to import all the text classes  public class {  public static void main(String[] args){  // The getInstance() method returns a Calendar object whose calendar fields have been initialized with the current date and time.  Calendar calendar = Calendar.getInstance(); {  LINE 1. BEGIN THE TRY BLOCK.           String str_date=”01-Nov-17″; // Declare a string that we will use later to format a date like this: ##-XXX-##        DateFormat formatter; // Declare an object of type DateFormat so that we can call its parse() method later        Date myFormattedDate; // Declare a variable of type Date to hold the formatted date                 formatter = new SimpleDateFormat(“dd-MMM-yy”);  // Assign a specific date format to the formatter variable        // The given date is taken as a string that is converted into a date type by using         // the parse() method          myFormattedDate = (Date)formatter.parse(str_date);    // setting up the format                 System.out.println(“The formatted date is ” myFormattedDate);        System.out.println(“Today is ” calendar.getTime() );           LINE 2. WRITE THE CATCH BLOCK TO CATCH EXCEPTIONS OF TYPE ParseException (TO HANDLE EXCEPTION, SIMPLY PRINT THE EXCEPTION)    } }}

the owner of mack’s coffee cove, mack swellhouse, has been

Question the owner of mack’s coffee cove, mack swellhouse, has been advertising a one-day promotion, in which a customer gets coffee for half-price by filing out a customer survey card and depositing it in a box. the cards are timestamped when customers drop them into the box. eventually, the owner will tally up responses to the questions, but for now, the cards should be gouped into categories by time of day (morning,afternoon, or evening. you are to write a program that asks for card category for a batch of cards in the batch. The program will add up the totals during the input, and after all the cards have been entered, the program will display the totals in each category. HINT: you can use a selection to check the category inside the loop for user input. using pseudocode, design a complete algorithm for accumulating three totals and then calculating and displaying them. Save your pseudocode file as coffeesuvery.txtconvert the algorithm in 6-3 to javascript be sure to initialize your totals for the card categories to 0.

The post Algorithm DesignPrior to beginning work on this interactive assignment, read appeared first on Smashing Essays.

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"