Answer:
The correct loop is as follows:
for year in range(starting_tuitionYear, ending_tuitionYear, increment):
tuition = startingTuition + rate * startingTuition
startingTuition = tuition
print('Tuition for the year of ' + str(year)+ ' is ' + str(tuition));
Explanation:
Required
The correction to the attached program
Some variables are not needed; so, I've removed the redundant variables.
The main error in the program is in the loop;
After the tuition for each year has been calculated, the startTuition of the next year must be set to the current tuition
See attachment for complete program
Here is a nested loop example that graphically depicts an integer's magnitude by using asterisks, creating what is commonly called a histogram: Run the program below and observe the output. Modify the program to print one asterisk per 5 units. So if the user enters 40, print 8 asterisks.num = 0while num >= 0: num = int(input('Enter an integer (negative to quit):\n')) if num >= 0: print('Depicted graphically:') for i in range(num): print('*', end=' ') print('\n')print('Goodbye.')
Answer:
Please find the code in the attached file.
Output:
Please find the attached file.
Explanation:
In this code a "num" variable is declared that use while loop that check num value greater than equal to 0.
Inside the loop we input the "num" value from the user-end and use if the value is positive it will define a for loop that calculates the quotient value as integer part, and use the asterisks to print the value.
If input value is negative it print a message that is "Goodbye".
Please find the code link: https://onlinegdb.com/7MN5dYPch2
Question Statement: Explain the steps needed to the display all the items in a linked list
Answer:
A list of linked data structures is a sequence of linked data structures.
The Linked List is an array of links containing items. Each link contains a link to a different link. The second most frequently used array is the Linked List.
Explanation:
Create a node class with 2 attributes: the data and the following. Next is the next node pointer.
Create an additional class with two attributes: head and tail.
AddNode() adds to the list a new node:
Make a new node.
He first examines if the head is equal to zero, meaning that the list is empty.
The head and the tail point to the newly added node when this list is vacant.
If the list isn't empty, the new node will be added at the end of the list to point to the new node of tail. This new node is the new end of the list.
Show() will show the nodes in the list:
Set a node current that first points to the list header.
Cross the list until the current null points.
Show each node by referring to the current in each iteration to the next node.
True or false a mirrorless camera has a pentaprism
Answer:
No the pentaprism or pentamirror are both optical viewfinder viewing systems and are not part of the mirrorless camera. Some thing the pentaprism actually operates better than the electronic viewfinder of mirrorless cameras.
Explanation:
Waygate's residential Internet modem works well but is sensitive to power-line fluctuations. On average, this product hangs up and needs resetting every 200 hours. On average about 45 minutes is needed to reset this product. What is this product's availability
Answer:
The answer is "In excess of 0.95 "
Explanation:
[tex]MTBF= 200\ hours (12,000\ minutes)\\\\MTR= 45\ minutes (0.75\ hours)[/tex]
Availability equation [tex]=\frac{ MTBF}{(MTBF+MTR)}[/tex]
Calculating the minutes as the common units:
[tex]= \frac{12,000}{(12,000+45)}\\\\= \frac{12,000}{(12,045)}\\\\= 0.9962\\\\= In\ excess\ of\ 0.95[/tex]
Calculating the hours as the common units:
[tex]= \frac{200}{(200+0.75)}\\\\= \frac{200}{200.75}\\\\= 0.9962\\\\= In \ excess\ of\ 0.95[/tex]
A External hackers have some access to a company's website and made some changes. Customers have submitted multiple complaints via email for wrong orders and inappropriate images on the website. The Chief Information Officer (CIO) is now worried about the distribution of malware. The company should prepare for which of the following other issues or concerns?
A. Domain reputation
B. Domain hijacking Confirm
C. URL redirections
D. DNS poisoning
Answer:
Option A (Domain reputation) and Option C (URL redirections) is the correct answer.
Explanation:
Domain reputation:
Receipts examine how almost every communication uses one's domain as well as how the communication or transaction will finish up throughout the box.URL redirections:
A component of webhosting that transfers a consumer across one towards the very next URL. Redirects are usually typically self-directed redirect which always utilizes several of the hypertext protocol's set Site Observations.Other options are not related to the given scenario. So the above two are the correct ones.
The issues or Concerns that the company should prepare for are;
A; Domain reputation
C; URL redirections
We are told that the external hackers have some access to a company's website and made some changes.
We are also told that Customers have submitted multiple complaints via email for wrong orders and inappropriate images on the website.
Thus, if the chief information Officer (CIO) is now worried about the distribution of malware, then the other issue to be worried about are domain reputation and URL redirections.This is because;
Domain reputation receipts are used to thoroughly check how almost every communication are used by a one domain and also the way that the communication will end throughout the box. Due to the hacker issues, it is likely that there will be URL redirections because a component of webhosting could transfer a consumer from one URL to the very next one.Read more about Hackers at; https://brainly.com/question/23294592
When creating a multi-dimensional array dynamically in C/C++ the Memory Manager will go to great pains to make sure the array is completely contiguous with each row followed immediately by another row in the array. The goal is to keep all the data together in memory rather than "wherever it fits." A. True B. False
Answer:
Here the statement is false.
Explanation:
In C/C++, we can define multidimensional arrays in simple words as an array of arrays. Data in multidimensional arrays are stored in tabular form (in row-major order).
General form of declaring N-dimensional arrays:
data_type array_name[size1][size2]....[sizeN];
data_type: Type of data to be stored in the array.
Here data_type is valid C/C++ data type
array_name: Name of the array
size1, size2,... ,sizeN: Sizes of the dimensions.
Foe example:
Two dimensional array:
int two_d[10][20];
Three dimensional array:
int three_d[10][20][30];
Calculate the total capacity of a disk with 2 platters, 10,000 tracks, an average of
400 sectors per track, and 512 bytes per sector?
Answer:
[tex]Capacity = 2.048GB[/tex]
Explanation:
Given
[tex]Tracks = 10000[/tex]
[tex]Sectors/Track = 400[/tex]
[tex]Bytes/Sector = 512[/tex]
[tex]Platter =2[/tex]
Required
The capacity
First, calculate the number of Byte/Tract
[tex]Byte/Track = Sectors/Track * Bytes/sector[/tex]
[tex]Byte/Track = 400 * 512[/tex]
[tex]Byte/Track= 204800[/tex]
Calculate the number of capacity
[tex]Capacity = Byte/Track * Track[/tex]
[tex]Capacity= 204800 * 10000[/tex]
[tex]Capacity= 2048000000[/tex] --- bytes
Convert to gigabyte
[tex]Capacity = 2.048GB[/tex]
Notice that the number of platters is not considered because 10000 represents the number of tracks in both platters
At one college, the tuition for a full-time student is $6,000 per semester. It has been announced that the tuition will increase by 2 percent each year for the next five years. Design a program with a loop that displays the projected semester tuition amount for the next five years.
Answer:grhgrt
Explanation:
The program is an illustration of loops;
Loops are program statements used to perform repetition
The tuition programThe program written in Python, where comments are used to explain each action is as follows:
#This initializes the fee
fee = 6000
#The following loop is repeated 5 times
for i in range(5):
#This calculates the fee, each year
fee *= 1.02
#This prints the calculated fee
print(round(fee,2),end=" ")
Read more about loops at:
https://brainly.com/question/24833629
#SPJ6
Write a program that tells what coins to give out for any amount of change from 1 cent to 99 cents. For example, if the amount is 86 cents, the output would be something like the following:
86 cents can be given as 3 quarters 1 dime and 1 penny
Use coin denominations of 25 cents (quarters), 10 cents (dimes), and 1 cent (pennies). Do not use nickel and half dollar coins. Your program will use the following function (among others):
void computeCoin(int coinValue, int& number, int& amountLeft);
For example, suppose the value of the variable amountleft is 86. Then, after the following call, the value of number will be 3 and the value of amountLeft will be 11 (because if oyu take three quarters from 86cents, that leaves 11 cents):
computecoins (25, number, amountLeft);
Include a loop that lets the user repeat this computation for new input values until the suer says he or she wants to end the program (Hint: use integer division and the % operator to implement this function.)
Add all numbers up
and you will get your sum
How much data do sensors collect?
Answer:
2,4 terabits (TB) of data every minute. Sensors in one smart-
Mining safety sensors may create up to 2.4 terabits (TB) of data every minute.
What is the significance of sensors?Sensors can help to improve the world by improving diagnostics in medical applications, the performance of energy sources such as fuel cells, batteries, and safety, solar power, people's health, and security, sensors for exploring space and the known university, and improved environmental monitoring.
Sensors play an important role in industrial applications such as process control, monitoring, and safety. The change in sensor output compared to a unit change in input is measured as sensitivity.
It provides several advantages, including increased sensitivity during data gathering, practically lossless transmission, and continuous, real-time analysis.
Real-time feedback and data analytics services ensure that processes are operational and being carried out optimally. Sensors in a single smart-connected house may generate up to 1 gigabit (GB) of data every week.
Learn more about the sensors, refer to:
https://brainly.com/question/15396411
#SPJ2
A ___________ consists of a large number of network servers used for the storage, processing, management, distribution, and archiving of data, systems, web traffic, services, and enterprise applications.
Answer:
Data center
Explanation:
A network service provider can be defined as a business firm or company that is saddled with the responsibility of leasing or selling bandwidth, internet services, infrastructure such as cable lines to both large and small internet service providers.
Generally, all network service providers, internet service providers and most business organizations have a dedicated building or space which comprises of a large number of computer systems, security devices, network servers, switches, routers, storage systems, firewalls, and other network associated devices (components) typically used for remote storage, processing, management, distribution, and archiving of large amount of data, systems, web traffic, services, and enterprise applications.
Furthermore, there are four (4) main types of data center and these includes;
I. Managed services data centers.
II. Cloud data centers.
III. Colocation data centers.
IV. Enterprise data centers.
on a client server network clients and servers usually require what to communicate?
Answer:
A connectivity device. Your colleague, in describing the benefits of a client/server network, mentions that it's more scalable than a peer-to-peer network.
Explanation:
You are required to make a carrier with the following details:
Frequency-1 hz/sec
Amplitude - 2
Phase - O degree
Once this carrier has been drawn, please perform the following on the data:
10110010
1. FSK
2. ASK
3. PSK
Calculate the total capacity of a disk with 2 platters, 10,000 tracks, an average of
400 sectors per track, and 512 bytes per sector?
Answer:
[tex]Capacity = 2.048GB[/tex]
Explanation:
Given
[tex]Tracks = 10000[/tex]
[tex]Sectors/Track = 400[/tex]
[tex]Bytes/Sector = 512[/tex]
[tex]Platter =2[/tex]
Required
The capacity
First, calculate the number of Byte/Tract
[tex]Byte/Track = Sectors/Track * Bytes/sector[/tex]
[tex]Byte/Track = 400 * 512[/tex]
[tex]Byte/Track= 204800[/tex]
Calculate the number of capacity
[tex]Capacity = Byte/Track * Track[/tex]
[tex]Capacity= 204800 * 10000[/tex]
[tex]Capacity= 2048000000[/tex] --- bytes
Convert to gigabyte
[tex]Capacity = 2.048GB[/tex]
Notice that the number of platters is not considered because 10000 represents the number of tracks in both platters
Write a program whose inputs are three integers, and whose output is the smallest of the three values. Ex: If the input is: 7 15 3 the output is: 3
Answer:
The program in Python is as follows:
nums = []
for i in range(3):
num = int(input(""))
nums.append(num)
print(min(nums))
Explanation:
This initializes a list of numbers
nums = []
This loop is repeated 3 times
for i in range(3):
For each repetition, this prompts the user for input
num = int(input(""))
This appends the input to the list
nums.append(num)
This gets the smallest of the three inputs using the min() function. The smallest is also printed
print(min(nums))
The Answer is in Bold:
#include <iostream>
using namespace std;
int main() {
int a, b, c; //NOTE: you don't have to put a, b, c. you can put it as x, y, z
//or you can make it as num1, num2, num3 etc.
cin >> a;
cin >> b;
cin >> c;
if (a < b && a < c) {
cout << a <<endl;
}
else if(b < a && b < c) {
cout << b << endl;
}
else {
cout << c <<endl;
}
return 0;
}
Calculate the boiling point of 3.42 m solution of ethylene glycol, C2H602, in water (Kb =0.51°C/m, the normal boiling point of water is 100°C):
Answer:
128.10 degree Celsius
Explanation:
The boiling point is given by
[tex]T_b = \frac{1000*K_b * w}{M*W}[/tex]
Substituting the given values, we get -
[tex]T_b = \frac{1000*0.51 * 3.42}{62.07}\\T_b = 28.10[/tex]
Tb is the change in temperature
T2 -T1 = 28.10
T2 = 28.10 +100
T2 = 128.10 degree Celsius
What term refers the built-in redundancy of an application's components and the ability of the application to remain operational even if some of its components fail
Answer:
Fault tolerance.
Explanation:
A software can be defined as a set of executable instructions (codes) or collection of data that is used typically to instruct a computer on how to perform a specific task and solve a particular problem.
Simply stated, it's a computer program or application that comprises of sets of code for performing specific tasks on the system.
Fault tolerance is an ability of the component of a software application or network to recover after any type of failure. Thus, it is the redundancy of an application's components built-in by default and the ability of this software application to remain functional or operational even if some of its components fail or it encounter some code blocks.
Basically, fault tolerance makes it possible for a software application or program to continue with its normal operations or functions regardless of the presence of hardware or system component failure.
Hence, it is an important requirement for any software application that should be incorporated by software developers during the coding stage of the software development life cycle (SDLC).
Create a static method that: - is called appendPosSum - returns an ArrayList - takes one parameter: an ArrayList of Integers This method should: - Create a new ArrayList of Integers - Add only the positive Integers to the new ArrayList - Sum the positive Integers in the new ArrayList and add the Sum as the last element For example, if the incoming ArrayList contains the Integers (4,-6,3,-8,0,4,3), the ArrayList that gets returned should be (4,3,4,3,14), with 14 being the sum of (4,3,4,3). The original ArrayList should remain unchanged.
Answer:
The method in Java is as follows:
public static ArrayList<Integer> appendPosSum(ArrayList<Integer> nums) {
int sum = 0;
ArrayList<Integer> newArr = new ArrayList<>();
for(int num : nums) {
if(num>0){
sum+=num;
newArr.add(num); } }
newArr.add(sum);
return newArr;
}
Explanation:
This defines the method; it receives an integer arraylist as its parameter; nums
public static ArrayList<Integer> appendPosSum(ArrayList<Integer> nums) {
This initializes sum to 0
int sum = 0;
This declares a new integer arraylist; newArr
ArrayList<Integer> newArr = new ArrayList<>();
This iterates through nums
for(int num : nums) {
If current element is greater than 0
if(num>0){
This sum is taken
sum+=num;
And the element is added to newArr
newArr.add(num); } }
At the end of the iteration; this adds the calculated sum to newArr
newArr.add(sum);
This returns newArr
return newArr;
}
The range of a finite nonempty set of $n$ real numbers $S$ is defined as the difference between the largest and smallest elements of $S$. For each representation of $S$ given below, describe an algorithm in pseudo code to compute the range. Indicate the time efficiency classes of these algorithms using Big-$O$.
Answer: Hello your question is poorly written attached below is the well written question
answer:
a) Determine ( compute ) the difference between the max and minimum value. determine the Min and max values using 1.5n comparisons
time efficiency = θ( n )
b) A(n-1) - A(0)
time efficiency = θ( 1 )
Explanation:
a) An unsorted array
To find the maximum and minimum values scan the array of elements , then determine ( compute ) the difference between the max and minimum value. to determine the range. Alternatively determine the Min and max values using 1.5n comparisons
Algorithm's time efficiency = θ( n )
b) A sorted array
To determine the range, we will determine the difference between the first and last element i.e. A(n-1) - A(0)
time efficiency = θ( 1 )
Write a program that repeatedly shows the user a menu to select the shape form three main shapes or to print the shapes created so far. If the user selects to create a new shape, the program prompts the user to enter the values for the size of the selected shape (How many of the selected shape user wants to create). The shape is then stored in an array. If the user selects to print the current shapes, print the name and the total area of each shape to the console.
Answer:
Explanation:
The following code is written in Python. It creates a program that keeps printing out a menu allowing the user to create shapes. These shapes are saved in an array called shapes. Once the user decides to exit, it prints all of the shapes in the array along with their total area. The output can be seen in the attached picture below. Due to technical difficulties, I have added the code as a txt file below.
Both symmetric and asymmetric encryption methods have their places in securing enterprise data. Compare and contrast where each of these are used in real-life applications. Use at least one global example in identifying the differences between applications.
Definition of the term social factor and explain why texting while driving can be classified as a social factor causing accidents?
A scheduler needs to determine an order in which a set of processes will be assigned to processor. Theith process requirestiunits of time and has weightwi. For a given schedule, definethe finish time of processito be the time at which processiis completed by the processor. (Assumethat the processor starts processing the tasks at time 0.)
Answer:
d
Explanation:
computer __ is any part of the computer that can be seen and touched
Write a program that prints the following line of output 1000 times:
All work and no play makes Jack a dull boy.
You should not write a program that uses 1000 lines of source code; use methods to shorten the program.
(Hint: use methods to shorten the program). Each print statement should only have one line of "All work and no play makes Jack a dull boy". What is the shortest program you can write that will produce the 1000 lines of output, using only the material?
White spaces will be ignored (empty lines, (. ). class header, method headers, etc)
AllWorkNoPlay: Using static methods to shorten the program (no loops allowed)
AllWorkNoPlay
Answer and Explanation:
Using javascript:
var play;
function AllWorkNoPlay(){
Console.log("All work and no play makes Jack a dull boy");
play++
If(play<=1000){
AllWorkNoPlay()
}
else(
return;
)
}
AllWorkNoPlay()
From the above we have defined a function that uses recursive function to print "All work and no play makes Jack a dull boy" to the console 1000 times and not more than that. We have called the function after that.
Security monitoring has detected the presence of a remote access tool classified as commodity malware on an employee workstation. Does this allow you to discount the possibility that an APT is involved in the attack
Answer:
No it doesn't
Explanation:
Targeted malware can be linked to such high resource threats as APT. Little or nothing can be done to stop such advanced persistent threats. It is necessary to carry out an evaluation on other indicators so that you can know the threat that is involved. And also to know if the malware is isolated or greater than that.
What aspect should you consider before adding pictures to a document?
You should structure the BLANK first before you search for a relevant picture.
Answer:
You should structure the text first before you search for a relevant picture.
Explanation:
When adding a picture or pictures to a text document, the structure of the text must be considered.
Structure as used in the above sentence means (but is not limited to), the headings, the layouts, the spacing, paragraphs and word formatting in the document.
In other words, the way the document is organized
All these must be put in to place before one adds pictures into the document.
Please help im not good at computer class
Answer:
W.
Explanation:
Answer:
Letter K
AANSJXJSJWNDX
Implement a program that manages shapes. Implement a class named Shape with a method area() which returns the double value 0.0. Implement three derived classes named Rectangle, Square, and Circle. Declare necessary properties in each including getter and setter function and a constructor that sets the values of these properties. Override the area() function in each by calculating the area using the defined properties in that class.
Answer:
Explanation:
The following code is written in Python. It creates the parent class Shape and the three subclasses Rectangle, Square, and Circle that extend Shape. Shape has the constructor which is empty and the area method which returns 0.0, while the three subclasses take in the necessary measurements for its constructor. Each subclass also has getter and setter methods for each variable and an overriden area() method which returns the shapes area.
class Shape:
def __init__(self):
pass
def area(self):
return 0.0
class Square(Shape):
_length = 0
_width = 0
def __init__(self, length, width):
self._width = width
self._length = length
def area(self):
area = self._length * self._width
return area
def get_length(self):
return self._length
def get_width(self):
return self._width
def set_length(self, length):
self._length = length
def set_width(self, width):
self._width = width
class Rectangle(Shape):
_length = 0
_width = 0
def __init__(self, length, width):
self._width = width
self._length = length
def area(self):
area = self._length * self._width
return area
def get_length(self):
return self._length
def get_width(self):
return self._width
def set_length(self, length):
self._length = length
def set_width(self, width):
self._width = width
class Circle(Shape):
_radius = 0
def __init__(self, radius):
self._radius = radius
def area(self):
area = 2 * 3.14 * self._radius
return area
def get_radius(self):
return self._radius
def set_radius(self, radius):
self._radius = radius
What is the key stroke combination for BOLD text?
O Ctrl + B
O Ctrl + D
O Ctrl + H
O Ctrl + M
Answer:
Ctrl + B.....................