Questions
C-coding Question1: Fill in the function body for the provided sum() function such that the call...

C-coding

Question1:

Fill in the function body for the provided sum() function such that the call sum(g, i, j) returns the value of the calculation:



Note:
For the case where j < i, the function sum() should return 0.

#include <stdio.h>

int g(int val)

{

return val * val;

}


int sum(int (*f)(int val), int start, int end)

{

/* Your code goes here */

}


int main()

{

printf("Result: %d\n", sum(g, 10, 20));

return 0;

}

******************************************************

Question 2:

Fill in the function body for do_file_menu() such that, when given a string as an argument, the function searches the given array of structures for a matching command name and then calls the function associated with that name.

You will know your solution is working properly when you achieve the following output:

Created New File.

Opened File.

Closed File.

File Saved.

Printing File...

Goodbye.

#include <stdio.h>

#include <string.h>

struct menu {

char *cmd_name;

void (*cmd_ptr)(void);

};


void file_new()

{

printf("Created New File.\n");

}

void file_open()

{

printf("Opened File.\n");

}

void file_close()

{

printf("Closed File.\n");

}

void file_save()

{

printf("File Saved.\n");

}

void file_print()

{

printf("Printing File...\n");

}

void file_exit()

{

printf("Goodbye.\n");

}


/* global variable 'file': array of structs */

struct menu file[] = {

{"new", file_new}, /* file[0] */

{"open", file_open}, /* file[1] */

{"close", file_close}, /* file[2] */

{"save", file_save},

{"print", file_print},

{"exit", file_exit} /* file[5] */

};

void do_file_menu(char *name)

{

/* Your code goes here. */

}

int main()

{

int i;

/* array of char pointers to string literals */

char *test[] = {

"new",

"open",

"close",

"save",

"print",

"exit"

};

/* test all of the commands one by one */

for (i=0; i<sizeof(test)/sizeof(*test); i++)

do_file_menu(test[i]);

return 0;

}

In: Computer Science

Circle Class Write a Circle class that has the following member variables: • radius: a double...

Circle Class

Write a Circle class that has the following member variables:
• radius: a double
• pi: a double initialized with the value 3.14159

The class should have the following member functions:

• Default Constructor. A default constructor that sets radius to 0.0.
• Constructor. Accepts the radius of the circle as an argument.
• setRadius. A mutator function for the radius variable.
• getRadius. An accessor function for the radius variable.
• getArea. Returns the area of the circle, which is calculated as area = pi * radius * radius
• getDiameter. Returns the diameter of the circle, which is calculated as diameter = radius * 2
• getCircumference. Returns the circumference of the circle, which is calculated as circumference = 2 * pi * radius

Write a program that demonstrates the Circle class by asking the user for the circle’s radius, creating a Circle object, and then reporting the circle’s area, diameter, and circumference.

SAMPLE RUN #0: ./circle_Non-Interactive

Interactive Session Standard Error (empty) Standard Output Hide Invisibles

Highlight: NoneStandard Input OnlyPrompts OnlyStandard Output w/o PromptsFull Standard OutputAllShow Highlighted Only

Calling·default·constructor:·The·circle's·radius·in·the·default·Circle·Object·is:·0↵
↵
Calling·setRadius(20)·to·change·radius·of·default:↵
The·circle's·radius·in·the·default·Circle·Object·is·Now:·20↵
↵
Creating·Circle·circle2(10):·↵
The·circle2's·radius·in·the·circle2·Object·is:·10↵
↵
The·circle2's·area·is·therefore:·314.159↵
The·circle2's·diameter·is·therefore:·20↵
The·circle2's·circumference·is·therefore:·62.8318↵

out put must be like sample run. HELP PLEASE

In: Computer Science

1) Define a C struct that can be used to represent an ingredient in a recipe....

1) Define a C struct that can be used to represent an ingredient in a recipe. You must include the ingredient, the amount to use, and the unit of measurement. When allocated, the struct must be self-contained; do not rely on information being stored anywhere else in memory.

2) Define a C function that will print an array of ingredients to the standard output stream, one per line. You must use the struct definition from the first part.

3) Define a C function that will sort an array of ingredients, alphabetically, using the selection sort algorithm. You must use the struct definition from the first part, and you must use the selection sort algorithm.

In: Computer Science

(My Name is TT please I need new and unique answers, please. (Use your own words,...

(My Name is TT please I need new and unique answers, please. (Use your own words, don't copy and paste),Please Use your keyboard (Don't use handwriting)

((Thank you FOR YOUR HELP))

SUBJECT: IT-210: Computer Networks

Q:Let us assume that some hubs, rather than switches, are connected in a way that they are forming a loop. Elaborate the effect of transmission when a host sends message over such a network.

Apparently, it would not be easy / possible to implement the spanning tree mechanism for hubs. Explain why? Suggest a technique using which the hubs can identify presence of loops and turn off some ports to eliminate the loop. Your solution must be logical and does not need to handle the situation every time.

In: Computer Science

Create a class for working with complex numbers. Only 2 private float data members are needed,...

Create a class for working with complex numbers. Only 2 private float data members are needed, the real part of the complex number and the imaginary part of the complex number. The following methods should be in your class:a. A default constructor that uses default arguments in case no initializers are included in the main.b. Add two complex numbers and store the sum.c. Subtract two complex numbers and store the difference.d. Multiply two complex numbers and store the product.e. Print a complex number in the form a + bi or a – bi where a is the real part of the complex number and b is the imaginary part of the complex number. For example, 4 + 5i, 3 + 0i, 0 + 4if. Change a complex number to its cube. Your main should instantiate two complex numbers and call each of the class methods. The two complex numbers should be printed along with the sum, difference, and product of the two complex numbers. Lastly, print the cubes of the two complex numbers. (Please do not overload the operators for this program.)

This is for C++

In: Computer Science

Software Engineering Course Directions: Read the Initial System Requests below and than answer the identify actors...

Software Engineering Course

Directions: Read the Initial System Requests below and than answer the identify actors and identify use cases questions.

Initial System Requests

Wylie College is planning to develop a new online Course Registration System. The new Web-enabled system replaces its much older system developed around mainframe technology. The new system allows students to register for courses from any Internet browser. Professors use the system to register to teach courses and to record grades.

Because of a decrease in federal funding, the college cannot afford to replace the entire system at once. The college will keep the existing course catalog database where all course information is maintained. This database is an Ingres relational database running on a DEC VAX. The legacy system performance is poor, so the new system accesses course information from the legacy database but does not update it. The registrar’s office continues to maintain course information through another system.

Students can request a printed course catalog containing a list of course offerings for the semester. Students can also obtain the course information online at any time. Information about each course, such as professor, department, credit hours, and prerequisites assists students in making informed decisions.

The new system allows students to select four course offerings for the coming semester. In addition, each student indicates two alternate choices in case the student cannot be assigned to a primary selection. Courses have a maximum of ten and a minimum of three students.

The registration process closes on the first or second day of classes for the semester. Any course with fewer than three students enrolled on the day registration closes is cancelled. All courses without an instructor on the day registration closes are cancelled. Students enrolled in cancelled classes are notified that the course has been cancelled, and the course is removed from their schedules. The registration system sends information about all student enrollments to the Billing System so that the students can be billed for the semester.

For the first two weeks of the semester, students are allowed to alter their course schedules. Students may access the online system during this time to add or drop courses. Changes in schedules are immediately sent to the Billing System so that an updated bill can be sent to the student.

At the end of the semester, the student can access the system to view an electronic report card. Since student grades are sensitive information, the system must employ security measures to prevent unauthorized access. All students, professors, and administrators have their own identification codes and passwords.

Professors must be able to access the online system to indicate which courses they want to teach. They also need to see which students signed up for their course offerings. In addition, professors can record the grades for the students in each class.

Identify Actors

Who uses the system?                                                             

Who gets information from the system?                              

Who provides information to the system?                          

Where in the organization is the system used?                  

Who supports and maintains the system?                           

What other systems use this system?                                   

Identify Use Cases

What are the goals of each actor?

  • What will the actor use the system for?
  • Will the actor create, store, change, remove, or read data in the system?
  • Will the actor need to inform the system about external events or changes?
  • Will the actor need to be informed about certain occurrences in the system?

Does the system supply the business with all of the correct behavior?

In: Computer Science

In language C Have the program present a menu where I can either: Insert a new...

  • In language C
  • Have the program present a menu where I can either:
    • Insert a new integer onto the stack.
    • Process an integer from the stack.
    • Quit the program.
  • Every time that you present the menu, please print out the contents of the stack before I pick a menu option. If the stack is empty, please let the user know.
  • The point of this assignment is to use dynamic memory allocation. So you must use malloc at the start of the program to allocate memory for a single integer. Then use realloc for the remainder of the program. Statically declaring arrays will result in no credit for the assignment!
  • If I choose the second options, which is to process a node, please print out the value that is being processed and then use realloc to appropriately change the size of your array.
  • Be sure to use the free function to release all memory if I decide to quit the program.

You do not have to do this in a function. This can all be done in the main function if you like.

A queue is a similar data structure in which the first item inserted into the queue is the first item processed (FIFO). After I choose to quit the stack loop, reallocate the array pointer back to a single integer and then repeat the program above, but so it processes the integers in the order of a queue rather than a stack. The output should indicate that we are now using a queue as well.

In: Computer Science

I am working on creating a Broadcast Receiver. I am extremely new to Android development and...

I am working on creating a Broadcast Receiver. I am extremely new to Android development and Java. I added my code at the bottom of this, but whenever I press the button the app crashes. I'm assuming something is wrong with connecting the broadcastIntent() function. If you could really focus on the first part that would be great!! I appreciate any help :)

Here are the directions from my professor:

  1. Create an empty project
  2. Create a method in MainActivity.java which creates a Broadcast.

public void broadcastIntent(View view){
       Intent intent = new Intent();
       intent.setAction("my.CUSTOM_INTENT"); sendBroadcast(intent);
   }

  1. Add a button to activity_main.xml and link it to this method.
  2. Is it working? How can you test it? STOP
  3. Create a Broadcast Receiver (accept defaults)
  4. Add the following code to your receiver in onReceive() : (remember to comment out the auto generated exception!) what’s an exception?
Toast.makeText(context, "Intent Detected.", Toast.LENGTH_LONG).show();
  1. Edit your manifest by adding the following as a child node of <receiver>
<intent-filter>
    <action android:name="my.CUSTOM_INTENT"></action>
</intent-filter>
  1. RUN it
MORE DIFFICULT:
  1. Create a second receiver called ConnectionReciever and add the following code in onReceive():
  2. ConnectivityManager cm =             (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);     NetworkInfo activeNetwork = cm.getActiveNetworkInfo();     boolean isConnected = activeNetwork != null &&             activeNetwork.isConnectedOrConnecting();     if (isConnected) {         try {             Toast.makeText(context, "Network is connected", Toast.LENGTH_LONG).show();         } catch (Exception e) {             e.printStackTrace();         }     } else {         Toast.makeText(context, "Network state has changed or reconnected", Toast.LENGTH_LONG).show();     } }
  3. In your manifest include the following as your intent-filter as a node of the new receiver:
<intent-filter>

    <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />

</intent-filter>
  1. Since you are being nosey – you need to ask for user- permission. Include the following as nodes of <manifest> :
<uses-permission android:name="android.permission.INTERNET" />

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
  1. Test it!

MY CODE:

<MainActivity>

package com.example.ica4_broadcast;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;


public class MainActivity extends AppCompatActivity {
    private Button mybutton;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Button mybutton = (Button) findViewById(R.id.mybutton);
    }

    private void broadcastIntent(View view) {
        Intent intent = new Intent();
        intent.setAction("my.CUSTOM_INTENT");
        sendBroadcast(intent);
        }

}

<activity_xml>

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <Button
        android:id="@+id/mybutton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="235dp"
        android:layout_marginEnd="146dp"
        android:layout_marginRight="146dp"
        android:onClick="broadcastIntent"
        android:text="Button"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>

<manifest>

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.ica4_broadcast">

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/Theme.ICA4Broadcast">
        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <receiver android:name=".MyReceiver" android:exported="true">
            <intent-filter>
                <action android:name="my.CUSTOM_INTENT"/>
            </intent-filter>
        </receiver>
    </application>
</manifest>

<MyReceiver>

package com.example.ica4_broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

public class MyReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
            Toast.makeText(context, "Intent Detected", Toast.LENGTH_LONG).show();

    }
}

In: Computer Science

I did the complete programming in python , just want to use tkinter for GUI. please...

I did the complete programming in python , just want to use tkinter for GUI. please look at the 2nd part . i did some part of this program using tkinter but could not finis it. Thank you.

import random

image = 'w'
# modified functions which accepts two numbers each and returns the respective
# output
def add(a, b):
    return a + b

def subtract(a, b):
    return a - b

def multiply(a, b):
    return a * b



def kidCalc():
    a = random.randint(0, 9)
    b = random.randint(0, 9)

    print("0. Exit")
    print("1. Add")
    print("2. Subtract")
    print("3. Multiply")
    choice = int(input("Enter choice: "))
    cnt = 0  # To hold number of tries
    if choice == 1:
        while True:
            print(" what do you think the sum of these two numbers are? ", a, " + ", b)
            print("This is how it looks viually", a * image, "+ ", b * image)

            sum = input()
            answer = int(sum)
            if answer == add(a, b):
                print("Perfect, the answer is correct...")
                cont = input("\nIf you want to solve another question then press 1. If not then any other key ")
                if cont == "1":
                    a = random.randint(0, 9)
                    b = random.randint(0, 9)
                    cnt = 0
                    continue
                else:
                    break

            elif answer != add(a, b):
                print("I am sorry, your answer is wrong Sean,Please Try again:")
                # Incrementing count
                cnt = cnt + 1
                # Checking count
                if cnt == 3:
                    # Prompting for next try
                    ans = input("\nMax number of tries reached. Do you want to try another question or quit? (T/Q): ")
                    # Checking answer
                    if ans.upper() == "T":
                        a = random.randint(0, 9)
                        b = random.randint(0, 9)
                        continue
                    else:
                        print('Bye!')
                        break

                else:
                    continue

    if choice == 2:
        while True:
            print(" what do you think the sum of these two numbers are? ", a, " - ", b)
            print("This is how it looks viually", a * image, "- ", b * image)

            sub = input()
            answer = int(sub)
            if answer == subtract(a, b):
                print("Perfect, the answer is correct...")
                cont = input("\nIf you want to solve another question then press 1. If not then any other key ")
                if cont == "1":
                    a = random.randint(0, 9)
                    b = random.randint(0, 9)
                    cnt = 0
                    continue
                else:
                    break

            elif answer != subtract(a, b):
                print("I am sorry, your answer is wrong Sean,Please Try again:")
                # Incrementing count
                cnt = cnt + 1
                # Checking count
                if cnt == 3:
                    # Prompting for next try
                    ans = input("\nMax number of tries reached. Do you want to try another question or quit? (T/Q): ")
                    # Checking answer
                    if ans.upper() == "T":
                        a = random.randint(0, 9)
                        b = random.randint(0, 9)
                        continue
                    else:
                        print('Bye!')
                        break

                else:
                    continue
    if choice == 3:
        while True:
            print(" what do you think the sum of these two numbers are? ", a, " - ", b)
            print("This is how it looks viually", a * image, "- ", b * image)

            mult = input()
            answer = int(mult)
            if answer == multiply(a, b):
                print("Perfect, the answer is correct...")
                cont = input("\nIf you want to solve another question then press 1. If not then any other key ")
                if cont == "1":
                    a = random.randint(0, 9)
                    b = random.randint(0, 9)
                    cnt = 0
                    continue
                else:
                    break

            elif answer != multiply(a, b):
                print("I am sorry, your answer is wrong Sean,Please Try again:")
                # Incrementing count
                cnt = cnt + 1
                # Checking count
                if cnt == 3:
                    # Prompting for next try
                    ans = input("\nMax number of tries reached. Do you want to try another question or quit? (T/Q): ")
                    # Checking answer
                    if ans.upper() == "T":
                        a = random.randint(0, 9)
                        b = random.randint(0, 9)
                        continue
                    else:
                        print('Bye!')
                        break

                else:
                    continue

kidCalc()

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

from tkinter import *
import random

# FUNCTION
def calc_For_Kids():
    # create the tk
    var1 = Tk()
    var1.title("Kitty Calculator")
    var1.geometry('450x450')
    # generate the two numbers
    numb1 = random.randint(0, 9)
    numb2 = random.randint(0, 9)

    # ask usr for sum
    temp = ("what do you think the sum of these two number is : " + str(numb1) + "+" + str(numb2))

    # label
    qLabel = Label(var1, text=temp)
    qLabel.grid(row=0, column=0)

    qLabel1 = Label(var1, text="")
    qLabel1.grid(row=1, column=0)

    userEntry = Entry(var1)
    userEntry.grid(row=2, column=0)

    qLabel4 = Label(var1, text="")

    # function for checking the result
    def func():
        textEntered = int(userEntry.get())
        if ((numb1 + numb2) == textEntered):
            qLabel4.configure(text="Perfect, the answer is correct:")

        else:
            qLabel4.configure(text="i am so sorry , your answer is wrong kitto: Try again : ")

    # label for spacing
    qLabel2 = Label(var1, text="")
    qLabel2.grid(row=3, column=0)

    ok_Button = Button(var1, text="OK", command=func)
    ok_Button.grid(row=4, column=0, columnspan=2)

    qLabel3 = Label(var1, text="")
    qLabel3.grid(row=5, column=0)

    # label for result
    qLabel4.grid(row=6, column=0)

    qLabel5 = Label(var1, text="")
    qLabel5.grid(row=7, column=0)

    var1.mainloop()


# PROGRAM EXECUTION STARTS HERE
calc_For_Kids()

In: Computer Science

Put theory into practice by performing stopwords removal and text processing in Python using the popular...

Put theory into practice by performing stopwords removal and text processing in Python using the popular NLTK library.

1:Obtain number of lines from the above text and make each line to store in an element of array؟

This is my first program.

. We are the students of Master’s in Data Science, Hello! How are you?

We are here to learn the python script, this is it now.

In: Computer Science

I. Design the C++ code for a program which will use the Pythagorean Theroem to calculate...

I. Design the C++ code for a program which will use the Pythagorean Theroem to calculate and display the length of a right triangle hypotenuse,c, given the lengths of its adjacent sides: a and b.. (hint: a^2 + b^2 = c^2)

II. Design the C++ code for a program which will calculate and display the roots of a quadratic equation of the form ax^2 + bx + c = 0, given its coefficients, a, b, and c.

In: Computer Science

What is one of the main purposes of IP version 6 (IP Next Generation)? a. Allows...

What is one of the main purposes of IP version 6 (IP Next Generation)?

a. Allows for more applications

b. Allows for more IP addresses

c. Allows for more Class C addresses

d. Creates a connection-oriented mode for IP

38. Address 205.169.85.0 is assigned by ICANN as a corporate IP address. Which of the following statements is true:

a. It is a class C address

b. It is a class B address

c. It is a class A address

d. It is a loopback address

39. Company X requests an Internet address from the ICANN. Company X will require 129 nodes to be connected to the network across 14 locations (separate physical networks).

A) What type of address will most likely be issued by the ICANN?

B) How will this address be subnetted to allow for the 14 physical networks to exist?

C) What is the total number of nodes that can be individually addressed at each location?

D) What will the subnet and host portion of the addresses look like?

40. For the following subnets answer the following. How many subnets can there be and how many hosts can be attached to each subnet. Class B address with 4 bits as subnet, 12 bits representing hosts. Class B address with 5 bits as subnet, 11 bits representing hosts. Class B address with 6 bits as subnet, 10 bits representing hosts. Class B address with 7 bits as subnet, 9 bits representing hosts. Class C address with 3 bits as subnet, 5 bits representing hosts.

In: Computer Science

1. What is the purpose of source encoding? How does source encoding integrate in modulating and...

1. What is the purpose of source encoding? How does source encoding integrate in modulating and demodulating (MODEM) technology? How can you improve source encoding strategies?

In: Computer Science

7.14 LAB: Temperature conversion In this lab, you will implement a temperature converter. Five UI elements...

7.14 LAB: Temperature conversion

In this lab, you will implement a temperature converter. Five UI elements are declared for you in the template:

Element's ID Element description
cInput Text input field for Celsius temperature
fInput Text input field for Fahrenheit temperature
convertButton Button that, when clicked, converts from one temperature to the other
errorMessage Div for displaying an error message when temperature cannot be converted
weatherImage Image corresponding to the temperature

Implement the conversion functions (2 points)

Implement the convertCtoF() and convertFtoC() functions to convert between Celsius and Fahrenheit. convertCtoF() takes a single numerical argument for a temperature in Celsius and returns the temperature in Fahrenheit using the following conversion formula:

°F = °C * 9/5 + 32

Similarly, convertFtoC() takes a single numerical argument for a temperature in Fahrenheit and returns the temperature in Celsius using the following conversion formula:

°C = (°F - 32) * 5/9

Register conversion button's click event in domLoaded() (2 points)

When the DOM finishes loading, the domLoaded() function is called. Implement domLoaded() to register a click event handler for the Convert button (id="convertButton"). Use addEventListener(), not onclick.

When the Convert button is pressed, the text box that contains a number should be converted into the opposing temperature. So if a number is in the Celsius text box (id="cInput"), the temperature should be converted into Fahrenheit and displayed in the Fahrenheit text box (id="fInput") and vice versa. Use parseFloat() to convert from a string to a number and do not round the result.

Ensure that only one text field contains a value (2 points)

Ensure that only one text field contains a value at any moment in time unless the Convert button has been pressed. Ex: When the Celsius field has a number and the user enters a Fahrenheit entry, the Celsius field should be cleared as soon as the user begins to type. This will require implementing an input event handler for each of the text fields that clears the opposing text field when a change occurs. Register each input event handler in the domLoaded() function. Use addEventListener(), not oninput.

Change the image to reflect the temperature (2 points)

When the temperature is converted, change the image to reflect the temperature in Fahrenheit. Each image is in the same directory as your .html page.

Below 32 F 32 - 50 F Above 50 F
cold.gif cool.gif warm.gif

Handle bad input (2 points)

When parseFloat() returns a NaN for the temperature to be converted, set errorMessage's innerHTML to the message: "X is not a number", where X is the string from the text input. When parseFloat() returns a valid number, set errorMessage's innerHTML to an empty string. The image below shows a sample error message.

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

CODE GIVEN:

index.html

<!DOCTYPE html>
<html lang="en">
<title>Temperature Converter</title>
<script src="convert.js"></script>
<style>
label {
display: block;
}

#errorMessage {
color: red;
}
</style>

<body>
<p>
<label for="cInput">Celsius:</label>
<input id="cInput" type="text">
</p>
<p>
<label for="fInput">Fahrenheit:</label>
<input id="fInput" type="text">
</p>
<input id="convertButton" type="button" value="Convert">
<div id="errorMessage">
</div>
<p>
<img id="weatherImage" src="warm.gif" alt="Warm">
</p>
</body>

</html>

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

convert.js

window.addEventListener("DOMContentLoaded", domLoaded);

function domLoaded() {
// TODO: Complete the function
}

function convertCtoF(degreesCelsius) {
// TODO: Complete the function
}

function convertFtoC(degreesFahrenheit) {
// TODO: Complete the function
}
----------------------------------------------------------------------------------------------------------------------------------------------------------

OTHER FILES:

cold.gif || warm.gif || cool.gif ||

In: Computer Science

Use a comparison table and text to compare the following three forensic tools: FTK Imager, Encase,...

Use a comparison table and text to compare the following three forensic tools: FTK Imager, Encase, Sift Workstation.

include at least 6 features in your comparison.

In: Computer Science