Questions
I am working on routing path and subnet. The question is I am given with source...

I am working on routing path and subnet. The question is I am given with source 10.1.240.240 and the destinations is 10.2.240.240. How is the packet traveling?

In: Computer Science

C language problem. Suppose I open I file and read a integer 24. And I want...

C language problem.

Suppose I open I file and read a integer 24. And I want to store them into a array byte [].

The answer should be byte[0] = 0x9F.

How can I do that?

In: Computer Science

1) Use Python to answer the below questions. a) What is the output of the following...

1) Use Python to answer the below questions.

a) What is the output of the following python code?

                        def function(x):
                             return x * 5
                       print(func(7) * func(5))

b) What is the output of the following code fragment?
    required_course = "Programming", "Security", "Cybersecurity"
        a,b,c = required_course
        print(b)

In: Computer Science

Write a java program that will read a file called stateinfo.txt and will store the information...

Write a java program that will read a file called stateinfo.txt and will store the information of the file into a map. The stateinfo.txt file contains the names of some states and their capitals. The format of stateinfo.txt file is as follows.

State                Capital

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

NSW               Sydney

VIC                 Melbourne

WA                 Perth

TAS                 Tasmania

QLD                Brisbane

SA                   Adelaide

The program then prompts the user to enter the name of a state. Upon receiving the user input, the program should display the name of the capital for that particular state. Assume that the name of the state that a user may enter already exists in the stateinfo.txt file.

In: Computer Science

Write a program that prompts the user to insert an item into a stack, delete an...

Write a program that prompts the user to insert an item into a stack, delete an item from the stack, or display all the items in the stack. Assume that the stack maximum capacity is 10. Here is sample run

. Stack operation menu:

1. Insert

2. Delete

3. Display

4. Quit

In: Computer Science

Making a blackjack game in javascript Create a function called createDeck() that will create an array...

Making a blackjack game in javascript

  • Create a function called createDeck() that will create an array of objects (52). Each object contains two properties: suit and value. The suit property will be either 'Hearts', 'Clubs', 'Diamonds', or 'Spades'. The value property will be either 'Ace', 'King', 'Queen', 'Jack', 'Ten', 'Nine', 'Eight', 'Seven', 'Six', 'Five', 'Four', 'Three' , or 'Two''.

    Note: We will probably want to store possible suits and values in separate arrays.
  • Create a function called shuffleDeck() that will randomly "shuffle" our deck of cards
  • We will create a Node application in repl.it that will listen for user input:
  • Create a function that will "draw" four cards (2 for the player and 2 for the computer). The function will choose these cards from our shuffled deck.
  • Display both sets of cards to the console.
  • Create a function to get the numeric card value to calculate the score of each hand
  • Create a function to calculate the score of all the cards in a hand (dealer or player). Hint: You may need two functions.
  • Create a function to "show status" which will be displaying the cards of both players (computer and player) and their score so far. Have the status to the player look like screen shot below:
  •   
  • Well, we need to give the player a chance to hit (get a new card) as many times as they want. We will add the checking for going over 21 and having the computer decide if it it should hit or stand in the next part. Use recursion

In: Computer Science

What is the difference between Computer Science and Software Engineering? (Academic and in your “own” words...

What is the difference between Computer Science and Software Engineering? (Academic and in your “own” words response)

Give examples of what is considered Computer Science and what is considered Software Engineering. Be very specific.

What is your major and why?

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

What is an Solution Architect?
What is the value of a AS? What skills are needed to be a good SA?
---------------
What is Requirements Engineer?

What is the value of a RE? What skills are needed to be a good RE?

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

Use sources from Software Engineering by Ian Sommerville when applicable.

In: Computer Science

What is the difference between software copyrights and software patent ? NO plagiarism please.

What is the difference between software copyrights and software patent ? NO plagiarism please.

In: Computer Science

A simple c program is needed to create encrypt and decode social security numbers. Then a...

A simple c program is needed to create encrypt and decode social security numbers. Then a validation must be used to make sure there are no invalid numbers.

**********************************************C PROGRAMMING*********************************************************************************

char social[][12] = {"164-55-0726","948-44-1038","193-74-0274","458-57-2867","093-00-1093","159-56-9731","695-21-2340","753-66-
6482","852-73-4196","648-81-1456","879-61-1829","123-87-0000","000-65-3197","741-85-9632","963-25-7418"};

Create a function that will accept as input a properly formatted social security number.
Then increment each digit by one. If the digit is "9" then make it a "0". Return a properly formatted
social security number.
Then create a function that will do the opposite. This function will take an encoded social security
number and convert it back into an unencrypted social security number. The de-encoded number is
what this function will return.

Create a function to scan all of the patient's social security numbers and detect if any of them are
invalid.
A Social Security Number (SSN) consists of nine digits, commonly written as three fields separated by
hyphens: AAA-GG-SSSS. The first three-digit field is called the "area number". The central, two-digit field
is called the "group number". The final, four-digit field is called the "serial number". Any SSN conforming
to one of the following criteria is an invalid number:

Any field all zeroes (no field of zeroes is ever assigned).
First three digits above 740
If you detect an invalid social security number, print the patient's name, their social security number,
and then either "area number", "group number", or "serial number" to indicate where the problem with
the social security number was detected.

In: Computer Science

********************************************C PROGRAMMING************************************************************************************* char lname[][10]={"Johnson","Williams","Ling","Albin","Anderson","Baca","Birner","Dominguez","Aimino", "Armstron

********************************************C PROGRAMMING*************************************************************************************

char lname[][10]={"Johnson","Williams","Ling","Albin","Anderson","Baca","Birner","Dominguez","Aimino", "Armstrong","Beard","Calderon","Carter","Chaname","Chaney"};

char fname[][10] ={"Fred","Betty","Hector","Ross","Jason","Elisa","Dalton","Javier","Ann","Addison","Cindy","Yamil","Thomas","Bryan","Kris"};

char middle[] = {'N','L','X','L','O','L','M','B','S','T','J','C','P','D','Z'};

char city[][10] = {"Lakeland","Orlando","Tampa","Lakeland","Tampa","Lakeland","Orlando","Orlando", "Lakeland","Lakeland","Orlando","Tampa","Tampa","Lakeland","Orlando"};

Create a report that lists all of the cities that patients live in and provide a count for
each city of how many patients come from that city. Print this list out in alphabetical
order based on city name.

In: Computer Science

Complete each of the programs here. Create a separate Netbeans project for each program using the...

Complete each of the programs here. Create a separate Netbeans project for each program using the name I specified. Create a single java main class for each of the programs using the filename I specified.

Task 1: (5 points)
Project name: CtoFConverter
Main file name: TempConverter.java
A program that converts an inputted temperature in C and provides the equivalent temperature in F. Hint: Google is your friend! Given C, solve for F. Again, check for a valid input value and only respond with the F value if you got it, otherwise output an appropriate error msg to the user. Testing: 3 conditions: Bad Input, then test for the known freezing and boiling points.

EMBED SCREEN SHOT(S) OR COPY THE OUTPUT WINDOW OF NETBEANS HERE SHOWING YOUR PROGRAM TEST RUN(S):

Task 2: (5 points)
Project name: FuelCosts
Main file name: FuelCost.java
Write a program that asks the user to input
• The number of gallons of gas currently in the tank
• The fuel efficiency in miles per gallon
Then print how far the car can go with the gas in the tank. Again, check for valid input and exit with an error msg if you do not have it. Testing: here just use some reasonable values that you can inspect the calculations and determine they are correct.

In: Computer Science

home / study / engineering / computer science / computer science questions and answers / instructions...

home / study / engineering / computer science / computer science questions and answers / instructions write a program to convert the time from 24-hour notation to 12-hour notation ...

Question: Instructions Write a program to convert the time from 24-hour notation to 12-hour notation and vi...

Instructions

Write a program to convert the time from 24-hour notation to 12-hour notation and vice versa. Your program must be menu driven, giving the user the choice of converting the time between the two notations.

Furthermore, your program must contain at least the following functions:

  • a function to convert the time from 24-hour notation to 12-hour notation;
  • a function to convert the time from 12-hour notation to 24-hour notation;
  • a function to display the choices;
  • function(s) to get the input;
  • and function(s) to display the results.
    (For 12-hour time notation, your program must display AM or PM.)
  • the language must be c++, also the out put format should be (The time is: hh:mm:ss

In: Computer Science

Discuss the negatives of Net Neutrality from the perspective of an ISP. Discuss the positives of...

Discuss the negatives of Net Neutrality from the perspective of an ISP.
Discuss the positives of Net Neutrality from the perspective of an e-commerce site.
Weigh both cases and discuss, from a societal perspective, which argument (for or against) you support and why.

Give more details.

In: Computer Science

In C++ Valid Palindrome In this assignment, you need to implement a bool isPalindrome(string s) function....

In C++ Valid Palindrome

In this assignment, you need to implement a bool isPalindrome(string s) function. Given a string s, isPalindrome(s) can determine if s is a palindrome, considering only alphanumeric characters and ignoring cases.

Note: for the purpose of this problem, we define empty string as valid palindrome.

Example 1: Input: ”A man, a plan, a canal: Panama” Output: true

Example 2: Input: ”race a car” Output: false

Requirement: There are many methods to check if a string is a palindrome or not. In this assignment, you need to use stack AND queue to in your implementation.

Suggestions: You don’t need to create the stack and queue classes by yourself. You can use the stack and queue implemention provided on Blackboard or use STL directly.

Consider all possible cases.

In: Computer Science

Create 6 tags with text inside them (in a valid HTML page,) color each differently. All...

  1. Create 6 tags with text inside them (in a valid HTML page,) color each differently. All show up on the page at this point... it's better to try to have everything upfront and in the open 1st and later have them hide, hover, or whatever interaction they will do. See the video for the text, don't bother matching the colors in the video.

  2. Validate the HTML. Bugs multiply as you make the page more complex; a CSS problem could actually be an HTML problem.

  3. Find the CSS property to HIDE something using CSS (there are two different ones that would work.) Hide all the tags by default. Knowing how to hide things with CSS is extremely useful (not just necessary for this assignment.)

  4. Using Media Queries show the proper tags depending upon the device changes:

    1. show landscape when the device is in landscape orientation

    2. show portrait when the device is in portrait orientation

    3. show >300 wide when the device is over 300px wide

    4. show >300 tall when the device is over 300px high

    5. show HD TV when the device the exact aspect ratio is 16/9 (there is a feature for aspect ratio; in firefox to preview you will need the exact window size for that ratio, you do not have to use HD you can use smaller numbers; equation: width = height*16/9. Also, you can look at the video)

    6. show big when the device is above in 400px width and height.

  5. Optional: instead of px pixel units, try using rem units. If you do, you should look up what a root em unit is so you know how big they are.

In: Computer Science