[solved] – Question 99244
Squaring a binary number requires a number of
additions (of binary digits) – as well as other manipulations such as
copying strings of bits and layout. Assuming an addition counts as
one operation and other manipulations don’t count as operations
then calculate a worst case scenario value for the Big-O of the
squaring function assuming the values being squared have N binary
digits – i.e. Squaring = O(f(N)). Approximate f(N).
Expert Answer
[solved] – Question 99266
Write a program to plot a bar chart in python to display the result of a school for five consecutive years
Expert Answer
[solved] – Question 99311
“Display recored of opinent cricket team with season wise like season type, season name, season year and win or loss and compare result of the team”
Using double linked list
Expert Answer
[solved] – Question 9933
Write a program composed of an Interface class Students.java having the necessary
variable declarations and setters and getters methods to represent the following
information for students: name, surname, yearClass, course, GPA. Define the interface
class in OneStudent.java class. Then write an Abstract class Deprtaments.java that its
constructor will instantiate an ArrayList myStudents to store all Students objects. This
class should also have a setter and getter method for handling the arraylist. Then create
the ComputerScience.java and ComputerEngineering.java classes that will extend the
Departments abstract class. Finally, create the University.java class that will prompt the
user to choose from a menu one of the following:
Create a new student and based on his course add him into the appropriate
department. (Tip: each department will have an arraylist for their student, each
time a new student is to be entered, get the arraylist, add the student and the set
the arraylist back to the deprtment.)
Choose a department to display all its students’ information.
Choose a department to display the average GPA of its students.
Find a student based on his name and surname. Display all student’s info
otherwise display that the student does not exist.
Choose a classYear to display all students on that year from both departments,
separating them based on their department.
Exit program
Expert Answer
[solved] – Question 9934
How can i use stdin to gather a string separated by spaces and add each element to an arraylist of strings?
Expert Answer
[solved] – Question 99340
use a one dimensional array to solve the following problem. read in 20 numbers, each of which is between 10 and 100 inclusively. as each number is read, print it only if its not a duplicate of a number already read. provide for the worst case scenario in which all 20 numbers are different . use the smallest possible array to solve this problem.
Expert Answer
[solved] – Question 99352
Shopping at the Mega store
A customer walks into a Mega showroom and browses around the store for a while ((simulated by sleep(random time)) before (s)he finds an item (s)he likes. When a customer does so, (s)he might be a bit undecided if (s)he should buy or not purchase the item (simulate this with yield() twice). Once decided, the customer must go to the floor-clerks and receive a slip with which (s)he can pay for the item and then take it home.
Floor clerks wait (by doing busy waiting) for customers to arrive; then, they help them (in a FCFS order) with whatever information they need. However, floor clerks can only help one customer at a time; therefore, a customer must wait (busy waiting on a shared variable) for an available clerk to help him/her.
After all of the customers are assisted (you should keep track of the number of assisted customers), the floor clerks wait for closing time (sleep(of a long time)).
Expert Answer
[solved] – Question 99361
A chatbot is a computer program designed to emulate human conversation. For this program you will use if statements, user input, and random numbers to create a basic chatbot.
Here is the scenario: you have decided to start a website. You are creating a prototype to show investors so you can raise money and launch your website.
You should ask the user at least five questions and use if-elif-else statements and give answers depending on how they answer. Some responses should be based on what they type, and some should be based on random numbers.
For example, if they say they are sad, your chatbot might respond “I’m sorry to hear that”.
You could also have a random number generated between 1 and 3 and have a corresponding response depending on the number such as “That is great to hear” or “So interesting”.
Expert Answer
[solved] – Question 9937
I’m doing a project and I don’t understand why my label isn’t showing when I press the radio button here is my code that I have in one sub:
Private Sub radCierra_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles radCierra.Click
Dim pic1 = Me.PictureBox1.Image.Equals(My.Resources.me_final_project_brooo)
If radCierra.Checked And pic1 Then
lblAnswer.Text = “You are correct!”
End If
End Sub
Expert Answer