Please provide a very detail oriented explanation regarding troubleshooting techniques when technologies are not used correctly. Please ensure original work and that the response is between 250-550 words.
In: Computer Science
for java
Welcome to a classic homework problem! Create a public class called Last8. You should exposed two public methods: add: adds a value, does not return a value last: returns an array containing the last 8 values that were added, in any order. You do not need a constructor, but you can add an empty one if you need. Until 8 values have been added you should return 0s in their place. For example, here's how an instance of Last8 should work:
In: Computer Science
Write a function called checkFormat that will check the format of a given username to make sure it follows some formatting restrictions. This function should take one input parameter – a string that contains the username to be checked. The username should look like [email protected] where cccc can be any 4 lowercase letters. The following conditions must be satisfied to be a valid username:
The length should be 19 characters
The 5th character should be “@”
The username should end with “abcdefghij.edu”
The username should start with 4 lowercase letters
python, use boolean function
In: Computer Science
The sum of positive integers from 1 to 1 is 1;
The sum of positive integers from 1 to 2 is 3;
The sum of positive integers from 1 to 3 is 6;
The sum of positive integers from 1 to 4 is 10;
The sum of positive integers from 1 to 5 is 15;
⁞
The sum of positive integers from 1 to 100 is 5050.
(The program should include a main
method, and no tester class is needed)
2. You need to control the number of people who can be in an oyster
bar at the same time. Groups of people can always leave the bar,
but a group cannot enter the bar if they would make the number of
people in the bar exceed the maximum of 100 occupants. Write a
program that reads the sizes of the groups that arrive or depart.
Use negative numbers for departures. After each input, display the
current number of occupants. As soon as the bar holds the maximum
number of people, report that the bar is full and exit the
program.
In: Computer Science
Could you give some sample Java code of creating a program where users are prompt to determine how many exams they have taken then it is prompt that they have to enter their test scores and gives the sum of all their test scores? You should have to use looping
In: Computer Science
• Choose any entity of your choice to represent a superclass. It must not be any of the following:
- Human, Student, Vehicle, Person, Car, Animal
• Create a class for your entity with the following: - 3 instance variables - 3 instance methods - 2 of the instance methods must show overloading - A default constructor - A parameterized constructor that initializes all instance variables - Getters and setters for the instance variables - Method to print all the details for the class objects with captions for the data.
java language
• Create 2 subclasses for the superclass
• Each subclass must have the following: - 2 instance variables - A constructor that first initializes its object variables using the superclass constructor, then initializes the rest. - Getters and setters - A method that overrides the print method in the superclass
• Create a test class and test the print methods in all the classes.
In: Computer Science
Part 2
Write a C code to create a user defined function called RecArea that will calculate the area of a rectangle. Call the function to print the area of the rectangle on the screen.
Note: The user will enter the length and width of a rectangle (decimal values, float) and you
Part 3 (Continue on part 2)
Create another user defined function called TriArea that will calculate the area of a triangle. Print the area of the rectangle on the screen. Area of a triangle is given by:
Note: The user will enter the height and base of the triangle (decimal values or float)
Part 4 (Continue on part 3)
Sum up the two areas found in parts 2 and 3 and display the result to the user.
In: Computer Science
Write a MIPS assembly language program to solve the following problem: For a set of integers stored in an array, calculate the sum of the even numbers and the sum of the odd numbers. The program should store these numbers in memory variables: evenSum and oddSum. Numbers should be read from the array one at a time with a zero value (0) being used to signal the end of data in the array.
In: Computer Science
In: Computer Science
Q1 If you had 25% more text than could fit on a single page, what measures could you take to ensure all of it fit on one page without really affecting legibility?
Q2As a multimedia project manager, explain how you would handle a situation where both your audio and video specialists suddenly asked for a pay increase in the middle of the project but you did not have the budget for it. Consider also what the consequences of your approach to this problem might be.?
In: Computer Science
A purchase request is initiated when an employee at the company fills in and signs a form on paper. The purchase request includes information about the good to be purchased, the quantity, the desired delivery date, the approximate cost. The employee can also nominate a specific vendor. Employees often request quotes from vendors in order to get the required information. Completing the entire form can take a few days as the requestor often does not have the required data. The quote is attached to the purchase request. This completed request is signed by two supervisors. One supervisor has to provide a financial approval, while the other supervisor has to approve the necessity of the purchase and its conformance with company’s policy (e.g. does a requested software form part of the standard operating environment?). Collecting the signatures from the two supervisors takes on average five days. If it is urgent, the employee can hand-deliver the form, otherwise it is circulated via internal mail. A rejected purchase request is returned to the employee. Some employees make some minor modifications and try in a second attempt other supervisors in order to get approval. Once a purchase request is approved, it is returned to the employee who initiated the purchase requisition. The employee then forwards the form to the Purchasing Department. Many employees make a copy of the form for their own record, in case the form gets lost. The central purchasing Department checks the completeness of the purchase request and returns it to the employee if it is incomplete. Based on attached quotes and other information, the purchasing Department enters the approved purchase request into the company’s Enterprise System. If the employee has not nominated any vendors, a clerk at the purchasing Department will select one based either on the quotes attached to the purchase requisition, or based on the list of vendors (also called Master Vendor List) available in the company’s Enterprise System. Sometimes the initial quote attached to the request has expired in the meantime. In this case, updated quote is requested from the corresponding vendor. In other cases, the vendor who submitted the quote is not recorded in the company’s Enterprise System. In this case, the purchasing Department should give preference to other vendors who are registered in the Enterprise System. If no such vendors are available or if the registered vendors offer higher prices than the one in the submitted quote, the purchasing Department can add the new vendor into the Enterprise System. When a vendor is selected, a purchase order is automatically generated by the Enterprise System. Then, a fax is generated and sent to the vendor.
Create a BPMN model for this process
In: Computer Science
Practice: Look at the following function header:
def foo(a, b, c, d, e)
answer the following questions:
In: Computer Science
1. Create a new class called Card that contains the following attributes: [3 K]
Suit (Clubs, Diamonds, Spades, Hearts)
Value (do not use Jack, Queen, King, Ace, instead, the value of your cards should be 1-13 where 11 = jack, 12 = Queen, 13 = King, and 1 = Ace)
Colour (Red or Black)
2. Make two constructions for your card: [2 A]
A default constructor for when you create an object without any arguments
A constructor that has 3 parameters, one for each attribute
Card should overwrite the corresponding print method to print the card nicely to the user with the following layout (colour does not need to be outputted): [1 K]
Value of Suit
ex. "5 of Hearts"
3. Card should also contain the following methods/functions:
isRed() – returns true or false if the card is Red [1 I]
isLarger(card)– takes in a card and returns the larger card according to the values. Note Ace (1) is smallest card and King (13) is largest. If the cards are the same, return the card the method is called on. [2 I]
copyCard() – creates and returns a new card object with all the same attributes [2 I]
In the main, feel free to test your methods in any way. The test cases will not be affected by any print statements. You must submit before lunch even if all the tests do not pass. Note that commenting is necessary and will count for 2 marks. [2 C]
[4 K, 5I, 2C, 2A]
Code:
Main.java
class Main {
public static void main(String[] args) {
}
}
Card.java
class Card {
}
In: Computer Science
Question 1. The following code asks the user to enter the password and check it with the pre-defined password that stored in the system. If the entered password is correct, it will authenticate the user to log-in into the account, otherwise reject!
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
int main(void)
{
char buff[8];
bool pass = true ;
printf("\n Enter the password : \n");
gets(buff);
if(strcmp(buff, "admin") ==0)
{
printf ("\n Correct Password \n");
pass = true;
}
else
{
printf ("\n Wrong Password \n");
pass = false;
}
if(pass)
{
/* authorized the user*/
printf ("\n Permission is given to the user \n");
}
return 0;
}
Submission
For this assignment, you need to write a report file of your work. The report should answer each question in details, providing outputs of the code to justify your answer.
In: Computer Science
This class contains the main method. In this class you should:
In: Computer Science