Questions
Write a MATLAB program to generate a Gaussian window and apply it to a signal as...

Write a MATLAB program to generate a Gaussian window and apply it to a signal as follows:

  1. 1)Generate a time vector from 0 to 1 seconds with an interval of 0.001 second
  2. 2)Generate two sinusoid signals with a frequency of 90 Hz and 100 Hz, respectively, and add them together
  3. 3)Generate a Gaussian window and apply it to the combined sinusoid signal
  4. 4)Plot an overlay of the original signal and the windowed in the same figure
  5. 5)Add a legend to the figure to identify each signal

In: Computer Science

Course: Big Data Processing Why is the most basic Hadoop deployment at least using Virtualization, what...

Course: Big Data Processing

Why is the most basic Hadoop deployment at least using Virtualization, what happens if we implement Hadoop Without Virtualization, is it possible? What are the consequences if you install Hadoop on a dedicated server?

In: Computer Science

Identify and describe four applications of quantum computing; Explain how regular computing would not be suitable...

Identify and describe four applications of quantum computing; Explain how regular computing would not be suitable for this application and provide a You Tube video(up to 10 min) of each of these applications (200 words).

In: Computer Science

Please in C++ language Write a program that reads 10,000 words into an array of strings....

Please in C++ language

Write a program that reads 10,000 words into an array of strings. The program will then read a second file that contains an undetermined number of words and search the first array for each word. The program will then report the number of words in the second list that were found on the first list.

In: Computer Science

Question 3 - Write a java program named BinaryConversion that will convert base 2 numbers to...

Question 3 - Write a java program named BinaryConversion that will convert base 2 numbers to base 10 numbers.

This complete question is already in chegg study! I want to know the answer for that question?

In: Computer Science

Write a complete Java code that contain two classes. A GradeBook and a GradeBookTester. - The...

Write a complete Java code that contain two classes. A GradeBook and a GradeBookTester.

- The GradeBook class contains the followings:

- An array of grades (integer array) declared as a field.

- A constructor that takes an integer value as parameter (len), and creates the grades array of size equals to len.

- A method called fillArray that fills the grades array with random integers. Acceptable values are between 1 and 100 (inclusive)

- A method called printStatistics that prints 4 values: the average of the grades, the minimum grade, the maximum grade, and the median grade (the middle value of the sorted array).

- The GradeBookTester contains the main and do the followings:

- Uses the input dialog to ask the user to enter an integer value (assume that the user will enter a value that is non-zero and positive / no need to check)

- creates an object of GradeBook class while passing the entered value as parameter.

- calls the functions fillArray and printStatistics for testing.

Please Solve As soon as

Solve quickly I get you thumbs up directly

Thank's

In: Computer Science

important : on regular C programming Write a program for a company called Miller Apartments. The...

important : on regular C programming

Write a program for a company called Miller Apartments. The program will ask the user a series of questions and based on their answers, determine if they have apartments that meet their criteria. You must use functions!
Your main() function must call a function named displayMenu() which will print a welcome message and Menu (see sample output). Your main() function will call a function named millerMain() when option 1 is chosen from the menu. millerMain() will then call a function named inputNumberBedrooms() that will ask the user how many bedrooms they would like. You must validate the data inside the function so that they can only choose between 1 and 4 bedrooms. The number of bedrooms is then returned to the millerMain() function.
Your millerMain() function will then call a function named inputNumberBathrooms() that will ask the user how many bathrooms they would like. You must validate the data inside the function so that they can only choose between 1 or 2 bathrooms. The number of bathrooms is then returned to the millerMain() function.
Next, your millerMain() function will ask the user if they would like utilities included in the rent as a Y or N answer.
After you have all of the information from the user, your millerMain() function will send all of the information to a function called determineRent(). The determineRent() function will use a switch statement to determine the base rent given the following:
​1 bedroom à $600.00​2 bedroom à $750.00
​3 bedroom à $900.00​4 bedroom à $1050.00
Additionally, your determineRent() function will use and if statement to add $50 to the base rent if they asked for 2 bathrooms. Lastly, if they choose to include utilities, then your function will add $50.00 for each bedroom.
Once the rent has been determined, your function will return the rent to millerMain().
Your millerMain() function will ask the user to enter in the maximum amount they would be willing to pay for monthly rent. If the rent is more than what they would be willing to pay, you must specify that the rent is more, give them the amount, and ask if they would like to search again using different criteria. If the rent is not more than what they would be willing to pay, then tell them congratulations. You must also let them know how much their rent will be and whether or not it includes utilities. Then you will display the menu again by exiting millerMain() function and returning to the main() function. (See sample output).

Sample Run #1
----------------------------------------------------------------------
|​​​Welcome to Miller Apartments!​​​​ | ----------------------------------------------------------------------
|​Menu​​​​​​​​​​​ |
|​​New Search:​1​​​​​​​ |
|​​Exit Program:​0​​​​​​​ |
----------------------------------------------------------------------
Enter your choice:​1
How many bedrooms would you like? 1 – 4: 1
How many bathrooms would you like? 1 – 2: 1
Would you like to have utilities included in the rent? Y/N: Y
Enter the maximum amount of rent you are willing to pay: 600.00
Based on your specifications, your total rent of $650.00 is more than your max rent!
Would you like to search using different criteria? Y/N: Y
How many bedrooms would you like? 1 – 4: 1
How many bathrooms would you like? 1 – 2: 1
Would you like to have utilities included in the rent? Y/N: N
Enter the maximum amount of rent you are willing to pay: 600.00
Congratulations! We have an apartment for you to rent!
Your total rent will be $600.00 which does NOT include utilities!
----------------------------------------------------------------------
|​​​Welcome to Miller Apartments!​​​​ | ----------------------------------------------------------------------
|​Menu​​​​​​​​​​​ |
|​​New Search:​1​​​​​​​ |
|​​Exit Program:​0​​​​​​​ |
----------------------------------------------------------------------
Enter your choice:​0
Thank you for choosing Miller Apartments!
Goodbye.
Sample #2:
----------------------------------------------------------------------
|​​​Welcome to Miller Apartments!​​​​ | ----------------------------------------------------------------------
|​Menu​​​​​​​​​​​ |
|​​New Search:​1​​​​​​​ |
|​​Exit Program:​0​​​​​​​ |
----------------------------------------------------------------------
Enter your choice:​1
How many bedrooms would you like? 1 – 4: 6
Invalid number of bedrooms, please try again!
How many bedrooms would you like? 1 – 4: 2
How many bathrooms would you like? 1 – 2: 0
Invalid number of bathrooms, please try again!
How many bathrooms would you like? 1 – 2: 1
Would you like to have utilities included in the rent? Y/N: N
Enter the maximum amount of rent you are willing to pay: 800.00
Congratulations! We have an apartment for you to rent!
Your total rent will be $750.00 which does NOT include utilities!
----------------------------------------------------------------------
|​​​Welcome to Miller Apartments!​​​​ | ----------------------------------------------------------------------
|​Menu​​​​​​​​​​​ |
|​​New Search:​1​​​​​​​ |
|​​Exit Program:​0​​​​​​​ |
----------------------------------------------------------------------
Enter your choice:​0
Thank you for choosing Miller Apartments!
Goodbye.
Sample #3
----------------------------------------------------------------------
|​​​Welcome to Miller Apartments!​​​​ | ----------------------------------------------------------------------
|​Menu​​​​​​​​​​​ |
|​​New Search:​1​​​​​​​ |
|​​Exit Program:​0​​​​​​​ |
----------------------------------------------------------------------
Enter your choice:​1
How many bedrooms would you like? 1 – 4: 1
How many bathrooms would you like? 1 – 2: 1
Would you like to have utilities included in the rent? Y/N: Y
Enter the maximum amount of rent you are willing to pay: 800.00
Congratulations! We have an apartment for you to rent!
Your total rent will be $650.00 which includes utilities!
----------------------------------------------------------------------
|​​​Welcome to Miller Apartments!​​​​ | ----------------------------------------------------------------------
|​Menu​​​​​​​​​​​ |
|​​New Search:​1​​​​​​​ |
|​​Exit Program:​0​​​​​​​ |
----------------------------------------------------------------------
Enter your choice:​0
Thank you for choosing Miller Apartments!
Goodbye.

In: Computer Science

Informational technology has advanced dramatically in recent years at the same time enomous changes in the...

Informational technology has advanced dramatically in recent years at the same time enomous changes in the business world have occurred as companies reflect global competition and more pressure for qualify speed and customer service Did the new technology inspired the business change or it was all the way around?Justify your position

In: Computer Science

Online Store Project Assignment Four Introduction Project Four introduces the ability to read and write data...

Online Store Project Assignment Four

Introduction

Project Four introduces the ability to read and write data to files. This project will create an online store application circa 1990. The application you will build is a standard C++ console project (visual studios). The store will contain basic operations to shop for items, check out of the store, calculate taxes and totals.

All online store applications are “data driven” in that the contents of the store changes over time. In addition, shipping rates change over time. So this project will read shipping rates and tax rates in from a file. It assumes that these rates are based upon the zipcode provided by the user. The sample data for this file is located here:

90001 0.09000 1.55 1.65 1.72

90002 0.09000 1.55 1.65 1.72

90003 0.09000 1.55 1.65 1.72

9000411 0.09000 1.55 1.65 1.72

90005 0.09000 1.55 1.65 1.72

90006 9 1.55 1.65 1.72

90007 0.09000 1.55 1.65 1.72

90008 0.09000 1.55 1.65 1.72

90009 0.09000 1.55 1.65 -1.72

90010 0.09000 1.55 1.65 1.72

90011 0.09000 -1.55 1.65 1.72

90012 0.09000 1.55 1.65 1.72

90013AB 0.09000 1.55 1.65 1.72

90014 0.09000 1.55 1.65 1.72

90015 0.09000 1.55 1.65 1.72

90016 0.09000 1.55 1.65 1.72

90017 0.09000 1.55 1.65 1.72

90018 0.09000 1.55 1.65 1.72

90019 0.09000 1.55 1.65 1.72

90020 0.09000 1.55 1.65 1.72

90021 0.09000 1.55 1.65 1.72

90022 0.09000 1.55 1.65 1.72

90023 0.09000 1.55 1.65 1.72

90024 0.09000 1.55 1.65 1.72

90025 0.09000 1.55 1.65 1.72

90026 0.09000 1.55 1.65 1.72

90027 0.09000 1.55 1.65 1.72

90028 0.09000 1.55 1.65 1.72

90029 0.09000 1.55 1.65 1.72

90030 0.09000 1.55 1.65 1.72

90031 0.09000 1.55 1.65 1.72

90032 0.09000 1.55 1.65 1.72

90033 0.09000 1.55 1.65 1.72

90034 0.09000 1.55 1.65 1.72

90035 0.09000 1.55 1.65 1.72

90036 0.09000 1.55 1.65 1.72

90037 0.09000 1.55 1.65 1.72

90038 0.09000 1.55 1.65 1.72

90039 0.09000 1.55 1.65 1.72

90040 0.09000 1.55 1.65 1.72

90041 0.09000 1.55 1.65 1.72

90042 0.09000 1.55 1.65 1.72

90043 0.09000 1.55 1.65 1.72

90044 0.09000 1.55 1.65 1.72

90045 0.09000 1.55 1.65 1.72

90046 0.09000 1.55 1.65 1.72

90047 0.09000 1.55 1.65 1.72

90048 0.09000 1.55 1.65 1.72

90049 0.09000 1.55 1.65 1.72

90050 0.09000 1.55 1.65 1.72

90051 0.09000 1.55 1.65 1.72

90052 0.09000 1.55 1.65 1.72

90053 0.09000 1.55 1.65 1.72

90054 0.09000 1.55 1.65 1.72

When a consumer checks out of the store with their shopping cart, most eCommerce applications will email an invoice to the customer. Unfortunately, emailing receipts to customers is beyond the scope of this class! So you will need to write the invoice to a file. The format is described below. You will need to upload a sample output file along with the .cpp file.

Steps and Requirements

Follow the steps below to create your program.

  • Display a welcome statement to the user. Come up with a creative name for the store – such as “Hot Tub Time Machine Parts and Supplies”.
  • The main() function should have a loop that displays a menu of shopping options. This is the control loop for the entire program. Once the user decides to check out or exit the store, the loop can stop.
  • The main function will also need to define all of the variables to be passed to the functions listed below. This includes the
    • Customer name, address, city, zipcode
    • Shopping cart/catalog array – the simplest way to track a catalog of items is to define a structure which will contain the item description, the price of the item, the quantity purchased, and the weight of the item. The weight of items can be in ounces or grams (pick one). Then define an array of structures to track the item quantities.
  • Create the following functions and place the function calls at the appropriate spots in the main() program.
    • loadShipping() - load the shipping rates and tax rates from the sample data file. This function should be called once at the beginning of main().
      • This function will receive an array of structures as input. You need to use a structure to save each rate for later use. Define the structure at the top of the program. There will be multiple lines in the file. The function does not have to return anything.
      • The layout of the file is
        • Zipcode taxrate USPSrate UPSrate FedexRate
      • Your function should validate the input data from the file. If data is invalid, skip over that line and proceed to the next line of the file. Things to check for include
        • Zipcode longer than 5 digits
        • Negative or invalid tax and shipping rate values. In project one, you hardcoded a shipping rate for each carrier. The file will now contain the rate (as a real number). When you look at the text file you will see some Los Angeles zipcodes with invalid data. Do NOT fix the data. Your code should handle these problems by displaying an error message and skipping that row of data.
        • The sample file contains all zip codes for California. This is over 2600 zip codes. Your array needs to be at least this big.
        • Hint – Make a copy of the zip code file and delete all lines after line 15. This will create a much smaller set of zip codes to test your program. Once you get everything working, use the main zip code list from Canvas.
    • displayMenu() –It displays the menu options. It does not need any input parameters. It returns the menu choice that the user selected. It should clear the screen each time it is called (hint – one option is to use system(“cls”)). It should validate the user input to make sure they have selected a valid option. The menu should have the following choices:
      • Create Customer Account
      • Shop for Items
      • Proceed to Check Out
      • Exit Store (without buying)
    • createCustomer() – This function prompts for the user’s name and address and saves the results. Input parameters include the name, address, city, and zip. If you choose to use string data types, then you will need to pass by reference. This function does not return anything.
    • maintainCart() – This function allows the user to add an item into their shopping cart. The shopping “cart” is represented by an array. This array is an input parameter to the cart function. Prompt the user with a catalog of items to purchase. You can make up your own list of items with prices that you want to sell (have at least 4-5 items). The user will choose a specific item. Validate the choice. Once a valid choice is made, then ask the user for the quantity to purchase. Save the quantity into the correct array slot. For example,
      • cart[0] – Hut Tub Cover, Price = $150.00
      • cart[1] – Pool Chemicals, Price = $12.00
      • cart[2] – Bubbles, Price = $18.00
      • cart[3] – Time Machine, Price = $4000.00
    • checkOut() – This function will “process” the customer order. In a true eCommerce application, you would charge a credit card and calculate shipping. For this application, the check out consists of calling the following functions. The input parameters are the zipcode, the quantity array. If the zipcode is empty (in the case where the user did not enter their customer info), prompt the user to enter a zipcode at this point.
      • displayReceipt() – This function should loop through all items in the cart and display the item, quantity, price, and extended amounts (price & quantity). This function returns the subtotal of all the items purchased.
      • calculateShipping() – Add up the total weight of all products ordered (quantity > 0). Prompt the user for the shipping method (USPS, UPS, or FEDEX). Based upon their zipcode, find the appropriate rate. Use the following table to calculate the shipping amount. Return this amount from the function.

Weight

Modifier

1-10

1x

11-50

5x

> 50

10x

For example, total weight = 50 ounces shipped via USPS to 90001, results in amount = 5 * 1.55 = $7.55

  • calculateTax() – This function should receive the location of the customer (zipcode) and the subtotal of the order as parameters. Look up the zipcode in the zipcode array to get the tax rate. Calculate the tax amount = subtotal * rate. It should return the tax amount.
  • calculateTotal() – This function should receive the subtotal, shipping amount, and tax amount. It then returns the total. It should verify that the input amounts are valid.

After calling the above functions, the checkOut() routine should display the subtotal, tax, and total amounts to the screen. It should save the invoice or receipt to a file. You should print out the customer name at the top. Follow this with the item descriptions, price, quantity and extended price. Then print the subtotal, tax, shipping, and grand total (on separate lines of the file). Name the file “invoice.txt”.

    • Make sure not to print out any items that may not have been ordered (quantity = 0) from the cart.
  • Extra Credit One (2 points) – Use the C++ date functions to print out the current date in the saveInvoice function. This can be tricky to get formatting correct.
  • Extra Credit Two (4 points) – For the saveInvoice function, save the file in .html format. Use basic tags such as header <h1>, paragraph <p>, lists <ul> to format the invoice. With the HTML format, the grader should be able to double click on the file and have it launch to a browser.

In: Computer Science

Operating System Management kmalloc() Can be used by regular processes as a faster, lower-level version of...

Operating System Management

  1. kmalloc()
    • Can be used by regular processes as a faster, lower-level version of malloc
    • Allocates memory in the kernel with different priorities
    • Only accepts allocation requests that are evenly divisible by the page size
    • Returns the physical address of allocated memory
    • All of the above

In: Computer Science

FINISH print and freelist #include<stdio.h> #include <stdlib.h> struct node {      int data;      struct node  *next; }; struct...

FINISH print and freelist

#include<stdio.h>

#include <stdlib.h>

struct node {

     int data;

     struct node  *next;

};

struct node* insert(struct node* list,int d );

struct node* del(struct node* list,int d );

void print( struct node *list);

void freeList(struct node* list);

void copy ( struct node *q, struct node **s );

int main( ) {

    int number = 0, choice = 0;

    struct node *pList=NULL;

    struct node *nList = NULL;

   

    while(choice!= 4)

    {

       

        printf("Do you want to (1)insert, (2)delete, (3)Copy (4)quit.\n");

        scanf("%d", &choice);

        printf("Your choice is %d\n", choice);

        if (choice == 1)

        {

           

            printf("Enter the value to insert\n");

            scanf("%d", &number);

            pList = insert(pList, number);

                  

            printf("Items in linked list: ");

            print(pList);

            printf("\n");

        }

        else if (choice == 2)

        {    

            printf("Enter the value to delete.\n");

            scanf("%d", &number);

            pList = del(pList, number);

                   

            printf("Items in linked list: ");

            print(pList);

            printf("\n");

        }

        else if (choice == 3)

        {

            if (nList)

                freeList(nList);

            copy(pList, &nList);

            printf("Items in NEW linked list: ");

            print(nList);

            printf("\n");

        }

        else

        {

              break;

        }

    }

    freeList(nList);

    freeList(pList);

    printf("\nBye..\n");

    return 0;

}



void copy ( struct node *source, struct node **dest )

{

    if(source != NULL)

    {

        *dest = malloc(sizeof(struct node));

        

        (*dest)-> data = source -> data;

        (*dest) -> next= NULL;

        copy(source->next, &((*dest)->next));

    }

    

}


struct node* insert(struct node *list,int item)

{

    if(list == NULL || item <= list->data)

    {

        struct node * pNew = (struct node *) (malloc(sizeof(struct node)));

        pNew->data = item;

        pNew->next = list;

        return pNew;

    }

    list->next = insert(list->next, item);

    return list;

}


struct node* del(struct node *list, int item)

{

    if(list == NULL)

        return NULL;

    

    if(list->data == item)

    {

        struct node* rest = list->next;

        free(list);

        return rest;

    }

    list->next = del(list->next, item);

    return list;


}


void print(struct node *list)

{

    

}


void freeList(struct node* list)

{

    

}

In: Computer Science

In C++ write a function to find a product of two matrices using arrays. The function...

In C++ write a function to find a product of two matrices using arrays. The function should be general and should accept any size matrices.

In: Computer Science

Question 1 Draw a Entity Relationship Diagram Snooty Fashions is an exclusive custom fashion designer business....

Question 1 Draw a Entity Relationship Diagram

Snooty Fashions is an exclusive custom fashion designer business.

The Snooty Fashions Operations Database will keep track of the following:

  • For each designer: a unique designer identifier and unique SSN as well as the name (composed of first and last name);
  • For each customer: a unique customer’s identifier as well as his or her name and multiple phone numbers;
  • For each tailoring technician: a unique SSN as well as his or her name (composed of first and last name);
  • For each outfit: a unique outfit’s identifier as well as the outfit’s planned date of completion and its unreasonable price;
  • For each fashion show: a unique show identifier as well as the date of the show and location;
  • Each designer designs many outfits. Each outfit has only one designer.
  • Each outfit is sold (in advance) to exactly one customer. Customers can buy one or many outfits (Snooty Fashions will not keep track of customers who have not made any purchases yet).
  • Each tailoring technician must work on at least one outfit but can work on many. Each outfit has at least one tailoring technician working on it but can have many.
  • Snooty Fashions will keep track of the date when a tailoring technician started working on a particular outfit.
  • Each designer can participate in a number of fashion shows, but does not have to participate in any. Each fashion show can feature one or two Snooty Fashions designers. (Snooty Fashions will not keep track of fashion shows that do not feature Snooty Fashions designers.

Question 2 Draw a Schema Diagram with the same information.

In: Computer Science

Given the unordered array: [0] [1] [2] [3] [4] [5] [6] [7] [8] P E R...

Given the unordered array:

[0]

[1]

[2]

[3]

[4]

[5]

[6]

[7]

[8]

P

E

R

Y

I

H

J

L

S

Suppose this array were being sorted using the quick sort algorithm from the course content,

into ASCENDING order, with the left-most item as the pivot value.

List the letters in the resulting array, in order AFTER the FIRST PARTITIONING.

[0]

[1]

[2]

[3]

[4]

[5]

[6]

[7]

[8]

In: Computer Science

The internet and other ICTs have played a key role in transforming business. Write a report...

The internet and other ICTs have played a key role in transforming business. Write a report
analysing the impact of the internet and ICT on Disney World’s business. Refer to the following elements in your report:
1. How the digital economy, including m‐commerce, has enabled Disney World to
transform its business.
2. How Disney World has used MagicBands as part of an enterprise system (ES) to exploit ICT.
3. How the Internet and related technologies, as disruptive technologies, have assisted Disney World in improving customer experiences.

In: Computer Science