I need 40 question for requirements for Library System Management. Put 40 question please that we can get requirements for LSM.
In: Computer Science
Write the IEEE floating point representation (single precision) of 3.75 (Show all your steps to get full credit).
In: Computer Science
Having trouble getting started on this
Overview
As a programmer, you have be asked by a good friend to create a program that will allow them to keep track of their personal expenses. They want to be able to enter their expenses for the month, store them in a file, and then have the ability to retrieve them later. However, your friend only wants certain people to have the ability to view his or her expenses, so they are requesting that you include some sort of login functionality.
Instructions
For this challenge, you will start this application for your friend by concentrating on the login functionality. You will have a standard report in a text file where you will build login functionality to access. Below you will find the step by step instructions on how to develop this application.
what I have so far:
hasAt=False
while (not hasAt):
username= input("what is your username?")
if "@" not in username:
print ("wrong username")
print ("try again loser")
else:
password= input ("what is your password?")
hasAt=True
In: Computer Science
1) Only a single main class is required
2) The main class must contain a static method called "getInputWord" that prompts a user to input a word from the keyboard and returns that word as a String. This method must use "JOptionPane.showInputDialog" to get the input from the user (you can find info about JOptionPane in JavaDocs)
3) The main class must contain a static method called "palindromeCheck" that takes a String as an input argument and returns a boolean indicating whether or not that String is a palindrome. This method must utilize a Stack data structure to determine whether the word is a palindrome. Hint: Use the charAt() method of the String class to access each character of the word
Flow of the Program:
1) Read in a word from the user by calling the "getInputWord" method
2) Check if the word is a palindrome using the "palindromeCheck" method
3) Output the result to the screen using "JOptionPane.showMessageDialog" (you can find info about JOptionPane in JavaDocs)
In: Computer Science
Write a simple matching coefficient and jaccard similarity code in python.
For a example x = 10101 and y = 00101 what is the code to check those similarities in python?
In: Computer Science
SQL Assignment:
Provide a made-up scenario about when a database trigger could be used. There is no need to provide the syntax to create the trigger, as this would differ depending upon the actual design of the database. Only provide the scenario of when a trigger could be used.
In: Computer Science
Java
Math Tutor:
Write a program that displays a menu as shown in the sample run. You can enter 1, 2, 3, or 4 for choosing an addition, subtraction, multiplication, or division test. After a test is finished, the menu is redisplayed. You may choose another test or enter 5 to exit the system. Each test generates two random single-digit numbers to form a question for addition, subtraction, multiplication, or division. For a subtraction such as number1 – number2, number1 is greater than or equal to number2. For a division question such as number1 / number2, number2 is not zero.
Here is a sample run: (red indicates a user input)
Main menu 1:
Addition 2:
Subtraction 3:
Multiplication 4:
Division 5:
Exit Enter a choice: 1
What is 1 + 7? 8 Correct
Continue? (y/n) y
Enter a choice: 3
What is 2 * 3? 7
Your answer is wrong.
The correct answer is 6.
Continue? (y/n) n
Good bye!
In: Computer Science
In: Computer Science
What additional features of a MEAN stack applications have to be included in this course and why?
Provide references. 5 points: 3 points for the original post and one point for a meaningful reply.
In: Computer Science
* Javascript *
In: Computer Science
Using HTML: Create a Book of the Month Club Web site. The home page should describe the current month's selection, including book title, author, publisher, ISBN, and the number of pages. Create separate Web pages for book selections in each of the last three months. Add links to the home page that opens each of the three Web pages. Save the home page as BookClub.html, and save the Web Pages for previous months using the name of the month.
BOOK: Principles of HTML, XHTML, and DHTML: The Web Technologies
Series
CHAPTER 2 Building, Linking, Publishing Basic Web Pages
PROBLEM 2-1
In: Computer Science
PYTHON
A Class for a Deck of Cards
We will create a class called Card whose objects we will imagine to be representations of playing cards. Each object of the class will be a particular card such as the '3' of clubs or 'A' of spades. For the private data of the class we will need a card value ('A', '2', '3', ... 'Q', 'K') and a suit (spades, hearts, diamond, clubs).
Before we design this class, let's see a very simple main() (also called the client, since it uses, or employs, our class) that instantiates a few Card objects and displays their values on the screen. We want to do a lot of fun things with our Card, but not yet. We start very carefully and slowly.
from enum import Enum
def main():
card1 = Card()
card2 = Card('5')
card3 = Card('9', Suit.HEARTS)
card4 = Card('j', Suit.CLUBS)
card5 = Card('1', Suit.DIAMONDS)
if not card2.set(2, Suit.CLUBS):
print("GOOD: incorrect value (2 (int), CLUBS) passed to Card's set()\n")
if not card2.set('2', Suit.CLUBS):
print("BAD: incorrect value ('2', CLUBS) passed to Card's set()\n")
print(str(card1) + "\n" + str(card2) + "\n" +
str(card3) + "\n" + str(card4) + "\n"
+ str(card5) + "\n")
card1 = card4
# test assignment operator for objects
print("after assigning card4 to card1:")
print(str(card1) + "\n" + str(card4)
+ "\n")
We can't run this main() without embedding it into a full program that has the Card class definition, but let's look at a copy of the run anyhow, so we can see what the correct output for this program should be:
GOOD: incorrect value (2 (int), CLUBS) passed to Card's set() (A of Spades) (2 of Clubs) (9 of Hearts) (J of Clubs) (A of Spades) after assigning card4 to card1: (J of Clubs) (J of Clubs)
We can learn a lot about what class Card must be and do by looking at main() and the run. Let's make a list of things that we can surmise just by looking at the client.
card1 = Card()
card2 = Card('5')
card3 = Card('9', Suit.HEARTS)
card4 = Card('j', Suit.CLUBS)
card5 = Card('1', Suit.DIAMONDS)
We see that card1 is instantiated with no arguments. This tells us that the class has a constructor (always __init__()) that does not require any arguments. Do you remember how that's done? Right! Either a default constructor (no formal parameters) or a constructor with all default parameters. So it must be one of those types.
However, we also see that card2 is providing the constructor with one argument and card3, card4 and card5 with two arguments. So, we must also have at least a 2-parameter constructor, and whatever number of parameters it has, they must all be default parameters (not counting the self parameter).
card3 = Card('9', Suit.HEARTS)
The first argument, the
value, is passed to the
constructor as what data type? It is
surrounded by quotes '5', '9', 'j', so it must be a
string. (See Note On String Delimiters, below.)
But the suit is a little odd. It is a construct
like Suit.CLUBS or Suit.DIAMONDS with no quotes around it. Words
without quotes in Python usually refer to
variable names, but in this case, that's
not what they are. Here we are using
enumerated or enum
types. You may not have had enums in your first
course, so you will learn about them this week.In: Computer Science
(Use C++ language) CREATE A PROGRAM CALLED and or not.cpp THAT: ASKS USER FOR AGE Note: you must be 18 or older to vote && is the symbol for And | | is the symbol for Or ! is the symbol for Not USE AND, OR, OR NOT TO SEE IF THEY'RE OLD ENOUGH TO VOTE and display appropriate message USE AND, OR, OR NOT TO SEE IF THEY ENTERED A NUMBER LESS THAN 0 and display appropriate message USE AND, OR, OR NOT TO SEE IF THEY ENTERED 18 or higher and display appropriate message DISPLAY A MENU OF CHOICES: 1. Democrat 2. Republican 3. Independent ASK USER TO ENTER THE NUMBER OF THEIR CHOICE USE IF STATEMENT WITH == TO CHECK THEIR CHOICE use a different message for each choice if they enter something other than 1,2, or 3 use AND, OR, or NOT to find out display a message
In: Computer Science
Hierarchical clustering is sometimes used to generate K
clusters, K > 1 by taking the clusters at the K th level of the
dendrogram. (Root is at level 1.) By looking at the clusters
produced in this way, we can evaluate the behavior of hierarchical
clustering on different types of data and clusters, and also
compare hierarchical approaches to K-means.
The following is a set of one-dimensional points: {6, 12, 18, 24,
30, 42, 48}.
(a)
For each of the following sets of initial centroids, create two
clusters by assigning each point to the nearest centroid, and then
calculate the total squared error for each set of two clusters.
Show both the clusters and the total squared error for each set of
centroids.
i.{18, 45}
ii. {15, 40}
(b)
Do both sets of centroids represent stable solutions; i.e., if the
K-means algorithm was run on this set of points using the given
centroids as the starting centroids, would there be any change in
the clusters generated?
(c)
What are the two clusters produced by single link?
( d) Which technique, K-means or single link, seems to produce the
"most natural" clustering in this situation? (For K-means, take the
clustering with the lowest squared error.)
(e)
What definition(s) of clustering does this natural clustering
correspond to? (Well-separated, center-based, contiguous, or
density.)
(f)
What well-known characteristic of the K-means algorithm explains
the previous behavior?
In: Computer Science
CODE IN JAVA
A computer company sells software and computer packages for $75. Quantity discounts are given based on the following criteria:
Quantity Discount
10 -
19
20%
20 -
49
30%
50 -
99
40%
100 or more 50%
Be sure the user is presented with all necessary information, then prompt the user for the quantity of packages. Display the total cost of the purchase making sure to apply appropriate discounts.
Example Output:
Demon software and computers is offering discounts on the Vic Package. This package includes a computer and needed software to perform basic daily functions. The Vic package sells for $75.00. Discounts are given based on quantity. The discounts are listed below:
10 - 19 gives a 20% discount
20 - 49 gives a 30% discount
50 - 99 gives a 40% discount
100 or more gives a 50% discount
How many would you like to purchase?
25
You purchased 25 packages. Your total is $1312.50
In: Computer Science