Answer:
AngularJS (c)
Explanation:
Answer:
AngularJS
node is better
Explanation:
Class description: A MyString class should behave much like the c++ string class. The class should use a dynamically allocated char array to hold a character string. If the amount of memory allocated to the array is too small to complete some necessary task (e.g., assigning a new character string to the object) the object should automatically double its capacity until it is large enough to complete the task. If it's discovered that the object is using less than 25% of its capacity the object should shrink to half its capacity until it is using more that 25% of its capacity.
Assignment: Implement the MyString class using a header and implementation file named MyString.h and MyString.cpp respectively. Even though MyString.h will be provided on the upload site, create own version for testing code locally. Make sure to properly test code on by creating a test driver that fully tests every function created in the MyString class
Memory Requirements: MyString should start with 10 bytes of allocated memory and should grow in size by doubling. So, we should be able to predict the capacity of MyString as acquiring a patten of 10, 20, 40, 80, ⦠bytes of memory depending of the number of characters stored.
Attributes:
int size â the number of characters currently stored in the string object. Do NOT count the NULL character.
int capacity â the number of bytes currently allocated. This should always be at least size + 1. The extra byte is needed to store the NULL character.
char *data â character pointer that points to an array of characters.
Member Functions:
MyString( ) Constructor
MyString(const char *) Constructor with an initialization character string
~MyString( ) Destructor
MyString(const MyString &) Copy constructor
MyString& operator = (const MyString&) Overloaded assignment operator, make a copy of MyString object
bool operator == (const MyString&) const overloaded equivalence relational operator
char& operator [ ] (int) overloaded [ ] should return a char by reference
void operator += (const MyString&) overloaded += operator, use to concatenate two MyStrings
MyString operator + (const MyString&) const Create a new MyString object that is the concatenation of two MyString objects
void getline(istream&, char delimit = â\nâ); reads an entire line from a istream. Lines are terminated with delimit which is newline â\nâ by default
int length( ) const; return the length of the string
friend ostream& operator<< (ostream&, MyString&); overloaded insertion operator
Write a program that prompts the user to input two POSITIVE numbers — a dividend (numerator) and a divisor (denominator). Your program should then divide the numerator by the denominator, and display the quotient followed by the remainder.Hint: If you use division (/) to calculate the quotient, you will need to use int() to remove the decimals. You can also use integer division (// ), which was introduced in Question 10 of Lesson Practice 2.3.Once you've calculated the quotient, you will need to use modular division (%) to calculate the remainder. Remember to clearly define the data types for all inputs in your code. You may need to use float( ) , int( ), and str( ) in your solution.float( ): Anything inputted by a user should be transformed into a float — after all, we are accepting ALL positive numbers, integers and those with decimals.int( ): When you divide the numerator and the divisor using /, make sure that the result is an integer.str( ): After using modular division, you can transform the quotient and remainder back into strings to display the result in the print() command.
Answer:
did you end up getting an answer
Explanation:
You're a ticket agent for a commercial airline and responsible for checking the identification for each passenger before issuing their boarding pass. Due to federal regulations, there is a total of three different forms of ID that can potentially be used. You must determine whether the passenger has the sufficient identification to board the plane or not. Facts: ⢠A passport is enough for a boarding pass ⢠Without a passport, passengers must have two other forms of ID: driver's license birth certificate ⢠If the above two conditions are not met, then they are denied. Input Your solution must take in three boolean inputs. The first input represents whether they have a passport or not. The second input represents whether they have a driver's license or not. The third input represents whether they have a birth certificate or not Output The output should display as a boolean result whether they can board the plane or not. Sample Input Sample output true false false true false true true true false false false false
Answer:
Follows are the code to this question:
import java.util.*;//import package for user input
public class Main //defining class
{
public static void main(String[] as)//main method
{
boolean x,y,z;//defining boolean variable
Scanner ox= new Scanner(System.in);//create Scanner class object for user input
System.out.println("input value: "); //print message
x=ox.nextBoolean();//input value
y=ox.nextBoolean();//input value
z=ox.nextBoolean();//input value
System.out.println("Output: ");//print message
System.out.println(x || (y &&z));//use print method to check value and print its value
}
}
Output:
1)
input value:
true
false
false
Output:
true
2)
input value:
false
true
true
Output:
true
3)
input value:
false
false
false
Output:
false
Explanation:
In the given code, inside the class three boolean variable "x,y, and z" is declared, that uses the scanner class for input the value from the user end, and in the next print, the method is declared, that uses " OR and AND" gate for calculating the input value and print its value.
In the AND gate, when both conditions are true. it will print the value true, and in the OR gate, when one of the conditions is true, it will print the value true.
100 POINTS!!!
Suppose a program requires a password that is a combination of numbers and letters but is not key sensitive. However, the user input is received as a string with letters that can have arbitrary cases. What code can be used to validate user input, u_pass, against the actual password, a_pass?
u_pass.upper() == str(a_pass).upper()
u_pass == a_pass
u_pass == str(a_pass)
u_pass is a_pass
The code that can be used to validate user input, u_pass, against the actual password, a_pass is u_pass.upper() == str(a_pass).upper().
How do one validate user input?The act of input validation is also called data validation. This is said to be the right testing of any input that has been supplied by a user or application.
Conclusively, In Input validation, there is prevention in term of improperly formed data from entering into the information system.
Learn more about coding from
https://brainly.com/question/22654163
If the machine executes 5000 instructions every microsecond (millionth of a second), how many instructions does the machine execute during the time between the typing of two consecutive characters?
Answer:
5*10^9 instructions
Explanation:
Let's apply logic to solve this particular problem.
If 5000 instructions get executed in a millionth of a second, then this means that
5000 instructions gets executed every 1*10^-6 second
5000*10^6 instructions get executed every second, or say
5*10^9 instructions get executed after every second.
Going forward, it isn't stated how long it takes to type two consecutive characters, so will assume it's just 1 second(since it's consecutively).
So, succinctly put, if it takes 1 second to type the two characters consecutively, then the machine executed 5*10^9 instructions. And if it takes 2 seconds to type the two characters, then the machine would have executed 10*10^9 instructions
Java Homework:(The Person, Student, Employee, Faculty, and Staff classes) Design a class named Person and its two subclasses named Student andEmployee. Make Faculty and Staff subclasses of Employee. A person has a name, address, phone number, and email address. A student has a class status (freshman, sophomore, junior, or senior). Define the status as a constant. An employee has an office, salary, and date-hired. Define a class named MyDate that contains the fields year, month, and day. A faculty member has office hours and a rank. A staff member has a title. Override the toString method in each class to display the class name and the person's name.
class Person{
//A person has a name, address, phone number, and email address.
String name;
String address;
String phone;
String email;
}
class Student extends Person{
//A student has a class status
//(freshman,sophomore, junior, or senior).
//Define the status as a constant.
final int freshman =1;
final int sophomore =2;
final int junior=3;
final int senior=4;
int status=freshman;
}
class Employee extends Person{
//An employee has an office, salary, and date hired.
String office;
double salary;
java.util.Date dateHired;
}
class Faculty extends Employee{
//A faculty member has office hours and a rank.
String officeHours;
String rank;
}
class Staff extends Employee{
//A staff member has a title
String title;
}
public class ex112{
}
The outline is given above. Fill in between brackets to finish! Thank you :)
Answer: Wait, so what is the question exactly..?
ASAP.
13. How do distracters impact your study time? They cause you to lose focus and lose time. They make studying almost impossible. They cause you to lose focus and that results in lower grades. They make you drowsy and distracted.
Answer:
A
Explanation:
You could pick any answer and make a case for it. It depends on what you have been told.
I would pick A but I wouldn't be surprised if the answer isn't the last one.
When programming, the word "execute" means which of these?
to kill
to edit
to run
to revise
Answer:
to run!
Explanation:
hope this is helpful!
Can I publish my book on Google?
Answer:
☆|《HOPE IT WILL HELP YOU 》>☆
Explanation:
YES YOU CAN PUBLISH YOUR BOOK ON GOOGLE
please mark my ans as BRAIN LISTGive 2 bennifits of expert system
Answer:
Provide answers for decisions, processes and tasks that are repetitive.
Hold huge amounts of information.
Minimize employee training costs.
Centralize the decision making process.
Make things more efficient by reducing the time needed to solve problems.
here are a few
hope it helps : )
what is an operating system
Answer:
Explanation:
Online Dictionary defines 'Operating System' as "the software that supports a computer's basic functions, such as scheduling tasks, executing applications, and controlling peripherals.''
Hope this helps!
Why was the newspaper readership the highest in 1995?
give the imporntance of having standard funiture in the laboratory
Answer:
I guess if there is experiment going on in absence one of those furniture then the experiment isn't successful
What is Interface in computers
Answer:
An interface could be the design of the homescreen or the way a shell of a computer is designed. I could be wrong tho......
Explanation:
____ is NOT an effective way to do research about a job you want.
Answer:
I would say that asking your friends is probably not a good way to research for a job.
Explanation:
It would definitely be helpful to talk to someone who already works at the job you want. Researching the company or job online is a good way to learn about them. And a guidance counselor can usually help point you in the right direction of what you'd like to know.
What were the first computers made
Answer:
In 1943 he ENIAC computing system was built by John Mauchly and J. Presper Eckert
Explanation:
Answer:
ENIAC (Electronic Numerical Integrator and Computer)
The text help readers understand the relationship between gender and sports?THESE PUMPKINS SURE CAN KICK!
Answer:
What's the question?????I don't understand
Write two statements that each use malloc to allocate an int location for each pointer. Sample output for given program:
Answer:
In the following code, you can see the usage of malloc.
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int* numberPointer1 = NULL;
int* numberPointer2 = NULL;
numberPointer1 = (int *)malloc(sizeof(int *));
numberPointer2 = (int *)malloc(sizeof(int *));
*numberPointer1 = 44;
*numberPointer2 = 99;
printf("numberPointer1 = %d, numberPointer2 = %d\n", *numberPointer1, *numberPointer2);
free(numberPointer1);
free(numberPointer2);
return 0;
}
Explanation:
Malloc allocates memory in the heap according to the input size and returns a pointer to the location where it was allocated, with an extra, it clears all allocated space.
Is a i5 2400 and a GeForce GTX 1060 6GB bottlenecking?
Answer:
In terms of memory, the GTX 1060 6GB 's 6144 MB RAM is more than enough for modern games and should not cause any bottlenecks. This combination between GTX 1060 6GB and Intel Core i5-2400 3.10GHz has less than 15% bottleneck in many games and can cause minor FPS loss.
Explanation:
i wish i had one of these lol
Answer:
Yes very Much
Explanation:
Please No
INTERNET SAFETY RULES
Answer:
1. Keep Personal Information Professional and Limited
2. Keep Your Privacy Settings On
3. Practice Safe Browsing
4. Make Sure Your Internet Connection is Secure. Use a Secure VPN Connection
5. Be Careful What You Download
6. Choose Strong Passwords
7. Make Online Purchases From Secure Sites
8. Be Careful What You Post
9. Be Careful Who You Meet Online
10. Keep Your Antivirus Program Up To Date
kelly wants to buy a new operating system for a laptop. under which category will it be in online store?
Answer:
Kelly should look at the electronics section, where the laptops are because a laptop is an electronic. Just like an iPhone, iPad, and a TV.
Answer:
Application Software
Explanation:
Explain the five most important things that should be taken into consideration when designing a computer network.
Explanation:
Many computer experts (networkers) believe that you consider the following when designing a computer network:
Budget: By considering the amount available to be spent on setting up the computer network, it allows buying the best quality equipment considering the available funds.Type of network connectivity: This involves determining whether the network would only be a wireless connection or wired connection using cables, or involves both combinations.Type of security: This involves deciding the type of network security to be installed. Answering: Would it cloud systems be used? What type of firewall systems to use, etc?The type of hardware and software: This is very important in other to determine how optimal the network would be.Disaster recovery plan: For example, what type of back-up power would be required or affordable, solar power, or generator?Write a program that calculates and displays the amount ofmoney available in a bank account that initially has $8000 deposited in it and that earns interest atthe rate of 2.5 percent a year. Your program should display the amount available at the end of eachyear for a period of 10 years. Use the relationship that the money available at the end of each yearequals the amount of money in the account at the start of the year plus 0.025 times the amountavailable at the start of the year [20 points].
Answer:
Written in Python
import math
principal = 8000
rate = 0.025
for i in range(1, 11):
amount = principal + principal * rate
principal = amount
print("Year "+str(i)+": "+str(round(amount,2)))
Explanation:
This line imports math library
import math
This line initializes principal amount to 8000
principal = 8000
This line initializes rate to 0.025
rate = 0.025
The following is an iteration from year 1 to 10
for i in range(1, 11):
This calculates the amount at the end of the year
amount = principal + principal * rate
This calculates the amount at the beginning of the next year
principal = amount
This prints the calculated amount
print("Year "+str(i)+": "+str(round(amount,2)))
how do you write 4 copies of 3 tenths in standard form
Answer:
four copies of three tenths
Explanation
just like you did it but its all in words
What is a copyright?
the exclusive legal right, given to an originator or an assignee to print, publish, perform, film, or record literary, artistic, or musical material, and to authorize others to do the same.
Lifelong learning ____?
A. stops when your career is over
B. only occurs in a classroom setting
C. begins after you retire
D. can be informal
Answer:
can be informal
Explanation:
just took the Unit Test
Which design principle involves mentally dividing up an image with two horizontal lines and two vertical lines
Answer:
the answer is Rule of thirds
Rule of thirds involves mentally dividing up an image with two horizontal lines and two vertical lines
The rule of thirds is a creation decide that places the subject in the left or right third of an image, leaving the other 66% more open. While there are various sorts of synthesis, the norm of thirds all around prompts persuading and particularly made shots. The Rule of Thirds puts your subject on the left-third or right-third of the edge, making a delightful synthesis.
Rule of thirds involves mentally dividing up an image with two horizontal lines and two vertical lines.
For more information:
https://brainly.com/question/18964599?referrer=searchResults
Create a Python file named num_sum.py that contains: The definition of two functions: volume - accepts three parameters and returns the product of them, but displays nothing sum_of_nums - accepts 1 or more numbers and returns their sum, but displays nothing A print function call that includes a call to volume, passing 2, 3, and 4 A print function call that includes a call to sum_of_nums, passing 1, 2, 3, 4, and 5 Submit the Python program and screenshot. Following is an example showing how your screenshot might look:
Answer:
def volume(n1, n2, n3):
product = n1 * n2 * n3
return product
def sum_of_nums(*args):
total = 0
for n in args:
total += n
return total
print("The product: " + str(volume(2, 3, 4)))
print("The sum: " + str(sum_of_nums(1, 2, 3, 4, 5)))
Explanation:
Create a function called volume that takes three parameters, n1, n2, n3
Multiply the n1, n2, n3 and set it to product
Return the product
Create a function called sum_of_nums that takes *args as parameter (Since the function may take one or more arguments, we may use *args)
Initialize the total as 0
Create a for loop that iterate through args. Add each number to the total (cumulative sum)
When the loop is done, return the total
Call the functions with given numbers and print the results
*See the output in the attachment.
What’s command do we use to update a file on MySQL?
Answer:
The MySQL update command/query is used to update existing records in a table in a MySQL database.
TCP is a more dependable protocol than UDP because TCP is_____ latent/connectionless/connection-oriented/encapsulated
Answer:
connection-oriented
Explanation:
Answer:
TCP is a more dependable protocol than UDP because TCP is
connection-oriented
Explanation:
Because I took a guess and that was the