The advent of Information and Communication Technology has had a huge impact whether one is doing research, communicating or buying a product online. Write an essay about how ICT has positively impacted the education. write an essay and provide references or sources
In: Computer Science
Write assembly programs with the following I/O
Enter a sentence: Project No Three.
No. of uppercase letters = 3
No. of lowercase letters = 11
You can use c++ for the Inputting and outputting
In: Computer Science
1. Many operating systems now operate on 64 bits of memory. What is the highest base 10 number it could store?
2. How many bits would you need to store the number 8,000,000?
3. How many bits is 5 Gigabytes?
4. In order to get back the original signal without distortion I must sample at _____________ the highest frequency in the signal.
a. at least 2 times
b. exactly
c. exactly 2 times
d. at least half
In: Computer Science
Question I'm having trouble with: Using LISP, write a recursive function that takes a list and returns the number of times the symbol 'a' occurs in it. Note: do not count a's that might occur in a sublist within the list.
In: Computer Science
Write code that would go where the comment "#your line will go here" so that the code would successfully extract all names of dishes from the dictionary popular_foods that have at least one of the following ingredients:
popular_foods = {"Clam Chowder":
{"Country": "United States",
"Main Ingredients": ["clam", "onion",
"celery", "potato", "carrot",
"butter", "flour", "cream",
"red wine vinegar"]},
"Xiaolongbao":
{"Country": "China",
"Main Ingredients": ["flour", "pork",
"crab meat", "roe", "soy sauce",
"ginger", "rice wine",
"green onions"]},
"Feijoada":
{"Country": "Brazil",
"Main Ingredients": ["black beans",
"pork", "cabbage", "red peppers",
"onion", "tomato", "garlic"]},
"Ash Reshteh":
{"Country": "Iran",
"Main Ingredients": ["kidney beans",
"chickpeas", "navy beans",
"parsley", "spinach", "coriander",
"dill", "persian reshteh noodles",
"onions", "flour", "mint", "kashk",
"turmeric"]},
"Draniki":
{"Country": "Russia",
"Main Ingredients": ["potato", "onion",
"egg", "flour", "garlic"]},
"Ata Dindin":
{"Country": "Nigeria",
"Main Ingredients": ["palm oil",
"red bell pepper",
"scotch bonnet", "tomato",
"onion", "chicken stock",
"crayfish", "prawns", "mackerel"]}
}
dishes = []
for dish in popular_foods:
food_search = ["potato", "pork", "garlic"]
for food in food_search:
# your line will go here
dishes.append(dish)
break
In: Computer Science
answer the following using C#
Design and program a Visual Studio Console project in C# that allows your user to enter a number. The program will examine the number to see if it is prime. If it is prime, it will print the next higher prime and the next lower primes to the console. If the number entered by the user is not prime, display a message to that effect.
All code should be written by you. Do not copy/paste any code from any other source.
Assume the input will be within the range 2 to (2^31-1)
You should not validate the user input.
In: Computer Science
Write a program that acts as a basic calculator
please use #include studio not ios.stream
int main(int argc, char* argv[])
{
calculator();
return 0;
}
/* Sample run of the program - Input and Output */
0 - Exit
1 - Add
2 - Subtract
3 - Multiply
4 - Divide
Please select an option : 1
Please enter the value : 5
Result = 5.000000
0 - Exit
1 - Add
2 - Subtract
3 - Multiply
4 - Divide
Please select an option : 2
Please enter the value : 1
Result = 4.000000
0 - Exit
1 - Add
2 - Subtract
3 - Multiply
4 - Divide
Please select an option : 3
Please enter the value : 3
Result = 12.000000
0 - Exit
1 - Add
2 - Subtract
3 - Multiply
4 - Divide
Please select an option : 4
Please enter the value : 2
Result = 6.000000
0 - Exit
1 - Add
2 - Subtract
3 - Multiply
4 - Divide
Please select an option : 0
In: Computer Science
Write a program to carry out the stated task: When one of the buttons is pressed, the face changes to a smiling face [emoticon :-) ] or a frowning face [emoticon :-(]. Written in Visual Basic.
In: Computer Science
Write a program that uses a two-dimensional array to store the highest and lowest temperatures for each month of the year. Prompt the user for 12 months of highest and lowest. Write two methods : one to calculate and return the average high and one to calculate and return the average low of the year. These methods MUST be your original code. Your program should output all the values in the array and then output the average high and the average low.
Remember to submit all your .java files, .class files and screenshots of your code and output.
In: Computer Science
I cant not seem to get this right. I have tried and tried can I please get help. Thank you!
Writing a Modular Program in Java Summary In this lab, you add the input and output statements to a partially completed Java program. When completed, the user should be able to enter a year, a month, and a day to determine if the date is valid. Valid years are those that are greater than 0, valid months include the values 1 through 12, and valid days include the values 1 through 31. Instructions Notice that variables have been declared for you. Write the simulated housekeeping() method that contains input statements to retrieve a year, a month, and a day from the user. Add statements to the simulated housekeeping() method that convert the String representation of the year, month, and day to ints. Include the output statements in the simulated endOfJob() method. The format of the output is as follows: month/day/year is a valid date. or month/day/year is an invalid date. Execute the program entering the following date: month = 5, day = 32, year =2014 Observe the output of this program. Execute the program entering the following date: month = 9, day = 21, year = 2002 Observe the output of this program. The program is entered as the following: /* Program Name: BadDate.java Function: This program determines if a date entered by the user is valid. Input: Interactive Output: Valid date is printed or user is alerted that an invalid date was entered. */ import java.util.Scanner; public class BadDate { public static void main(String args[]) { // Declare variables String yearString; String monthString; String dayString; int year; int month; int day; boolean validDate = true; final int MIN_YEAR = 0, MIN_MONTH = 1, MAX_MONTH = 12, MIN_DAY = 1, MAX_DAY = 31; // This is the work of the housekeeping() method // Get the year, then the month, then the day Scanner input = new Scanner(System.in); // variable = input.nextLine(); // Convert Strings to integers // This is the work of the detailLoop() method // Check to be sure date is valid if( year <= MIN_YEAR ) // invalid year validDate = false; else if ( month < MIN_MONTH || month > MAX_MONTH ) // invalid month validDate = false; else if ( day < MIN_DAY || day > MAX_DAY ) // invalid day validDate = false; // This is the work of the endOfJob() method // Test to see if date is valid and output date and whether it is valid or not if( validDate == true ) { // Output statement } else { // Output statement } } // end of main() method } // end of BadDate class
In: Computer Science
By using Java language, Complete the StackArray.java by using.stackArrayDemo.java.
1.Read the StackArrayDemo.java.
2. Use the demo to complete StackArray.java
StackArrayDemo.java:
public class StackArrayDemo {
public static void main(String [] args) {
StackArray a = new StackArray();
int score = 0;
if (a.peek() == null)
score += 10;
else
System.out.println("Check peek()");
a.push("Orange");
System.out.println(a);
a.push("Apple");
System.out.println(a);
a.push("Guava");
System.out.println(a);
if (a.peek().equals("Guava"))
score += 10;
else
System.out.println("Check push()");
a.pop();
System.out.println(a);
a.pop();
System.out.println(a);
if (a.peek().equals("Orange"))
score += 10;
else
System.out.println("Check pop()");
a.push("Mango");
System.out.println(a);
if (a.getStackSize() == 2)
score += 10;
else
System.out.println("Check getStackSize()");
System.out.printf("Your score is %d/40\n", score);
}
}
StackArray.java
public class StackArray <T> {
public static int CAPACITY = 100;
private final T[] elements;
private int topIndex;
// Constructor
public StackArray() {
// Initialize elements
// Initialize topIndex to -1
}
public T peek() {
// If topIndex is less than zero, return null.
// Otherwise, return element from top of the stack.
}
public T pop() {
// If topIndex is less than zero, return null.
// Otherwise return element from top of the stack, and decrement
topIndex
}
public void push(T obj) {
// Push obj into top of the stack
// And, increment topIndex
}
public int getStackSize() {
// Return stack size, i.e., number of elements
}
@Override
public String toString() {
String s = "The stack is: ";
for (int i = topIndex; i >= 0; i--)
s += elements[i] + " ";
return s;
}
}
In: Computer Science
C language only please
and please make a simple code
Write a function that will find whether there exist two integers that sum to the target integer. The function is to “return” three values.First, return “1” if the integers were found,return “-1” if your search was not successful.If you find two integers which add up to the target value, you should return their respective index position inside the array. Suggested prototype:int TwoSumFunction(int arr[], int size, int target, int*index1, int* index2);Inside TwoSumFunction:
•Pass the sorted array to the function. Set two pointers at the beginning and the end of thearray, then start moving the pointers inward while checking their sum. If it’s exactly the “target”, then we are done, and you can return 1. If it exceeds the “target”value, then any sum using the larger element is too large, so move the pointer corresponding to that element inward. If the sum is less than “target” value, then any sum using the lower element is too small, so move the pointer corresponding to that element inwards. If you are done with scanning the array and cannot find any two elements that sum up to “target” value, return -1.
In: Computer Science
Write a class DataSet that stores a number of values of type
double in an array list. Provide methods to insert a value to the
array list and to compute the sum,
average, and maximum value.
Please put a note on what you did is for what. So I can understand this question better.
Code provided:
import java.util.*;
public class DataSet
{
private ArrayList<Double> data;
/**
Constructs an empty data set.
@param maximumNumberOfValues the maximum this data set can
hold
*/
public DataSet()
{
data = new ArrayList<Double>();
}
/**
Adds a data value to the data set if there is a room in the
array.
@param value a data value
*/
public void add(double value)
{
// COMPLETE THIS METHOD
}
/**
Gets the sum of the added data.
@return sum of the data or 0 if no data has been added
*/
public double getSum()
{
// COMPLETE THIS METHOD
}
/**
Gets the average of the added data.
@return average of the data or 0 if no data has been added
*/
public double getAverage()
{
// COMPLETE THIS METHOD
}
/**
Gets the maximum value entered.
@return maximum value of the data
NOTE: returns -Double.MAX_VALUE if no values are entered.
*/
public double getMaximum()
{
// COMPLETE THIS METHOD
}
}
In: Computer Science
Which of the following is not a router component?
Group of answer choices
RAM
NVRAM
Flash memory
DVRAM
The Cisco command “configure terminal” allows you to _____.
Group of answer choices
Access the User EXEC mode
Access the Privileged EXEC mode
Access the Global configuration mode
Access the Interface configuration mode
To get global configuration mode from the interface mode, you need to type in the following command:
Group of answer choices
Enable
Configure
Configure terminal
Exit
What does the command RouterB(config)#? do?
Group of answer choices
Provides all the commands available at the user exec mode
Provides all the commands available at the Privileged exec mode
Provides all the commands available at the global configuration mode
Provides all the commands available at the line configuration mode
In: Computer Science
Assume that attributes with the same name in different relations represent the same domain and that the primary key attributes in each relation are underlined. Answer the following questions given the relational schema below:
R(A,D) S(A,B,C,D) T(C,D,A,H)
In: Computer Science