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 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 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 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 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
In: Computer Science
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.
In: Computer Science
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", "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
In: Computer Science
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:
In: Computer Science
In: Computer Science
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 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.
Validate the HTML. Bugs multiply as you make the page more complex; a CSS problem could actually be an HTML problem.
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.)
Using Media Queries show the proper tags depending upon the device changes:
show landscape when the device is in landscape orientation
show portrait when the device is in portrait orientation
show >300 wide when the device is over 300px wide
show >300 tall when the device is over 300px high
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)
show big when the device is above in 400px width and height.
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