Answer:
Here is the C++ program:
#include <iostream> //to use input output functions
#include <cstring> // used to manipulate c strings
using namespace std; //to identify objects cin cout
const int SIZE = 20; //fixes constant size for firstName, middleName and lastName arrays
const int FULL_SIZE = 60; //constant size for fullName array
int main() { //start of main method
char firstName[SIZE]; //declares a char type array to hold first name
char middleName[SIZE];//declares a char type array to hold middle name
char lastName[SIZE]; //declares a char type array to hold last name
char fullName[FULL_SIZE]; //declares a char type array to hold full name
cout << "Enter first name: "; //prompts user to enter first name
cin>>firstName; //reads first name from user, stores it in firstName char array
cout << "Enter middle name: "; //prompts user to enter middle name
cin>>middleName; //reads middle name from user, stores it in middleName char array
cout << "Enter last name: "; //prompts user to enter last name
cin>>lastName; //reads last name from user, stores it in lastName array
strcpy(fullName, lastName); //copies last name from lastName to fullName array using strcpy method which copies a character string from source to destination
strcat(fullName, ", "); //appends comma "," and empty space " " after last name in fullName using strcat method which appends a string at the end of another string
strcat(fullName, firstName); //appends first name stored in firstName to the last of fullName
strcat(fullName, " "); //appends an empty space to fullName
strcat(fullName, middleName); //appends middle name stored in middleName char array to the fullName char array
cout <<"Full name is:\n"<<fullName<< endl; } //displays the full name
Explanation:
I will explain the program with an example inshaAllah
Lets say user enters Carol as first name, Lynn as middle and Smith as last name. So firstName char array contains Carol, middleName char array contains Lynn and lastName char array contains Smith.
Next the fullName array is declared to store Carol Lynn and Smith in a specific format:
strcpy(fullName, lastName);
This copies lastName to fullName which means fullName now contains Smith.
strcat(fullName, ", ");
This appends comma and an empty space to fullName which means fullName now contains Smith with a comma and empty space i.e. Smith,
strcat(fullName, firstName);
This appends firstName to fullName which means Carol is appended to fullName which now contains Smith, Carol
strcat(fullName, " ");
This appends an empty space to fullName which means fullName now contains Smith, Carol with an empty space i.e. Smith, Carol
strcat(fullName, middleName);
This appends middleName to fullName which means Lynn is appended to fullName which now contains Smith, Carol Lynn
Now cout <<"Full name is:\n"<<fullName<< endl; prints the fullName so the output of this entire program is:
Full name is:
Smith, Carol Lynn
The screenshot of the program along with its output is attached.
what type of model does the Web use?
Answer:
Microsoft, Firefox, Google, and Office onenote webisite
Explanation:
cause they are a model
fill in the blanks – the icons mean arranging them in a proper sequence
Define an average function that takes 4 arguments, calculates the average of the 4 numbers passed to it, and returns the result back to the caller. Capture the 4 values from the user in main() and pass them to the function average. Call the average function from main. Print the results returned in the main function. Call the average function three more times with three more sets of four numbers and return the results back to the caller. Save the return values in variables in main(). Pass all four return values saved in main() back to the average function as arguments to calculate the average of the averages and return the result to main() which will print the final result ( average of the averages).
Answer:
ok so basically 3 x 9 is 278
Explanation:
ok so basically 3 x 9 is 278
which of the following is an example of a technique used by a texture artist? A: Using multiple colors in a landscape B: Animating water to simulate rainfall C: Choosing hair color for a character D: Making concrete have a rough appearance
Answer:
A: Using multiple colors in a landscape I think
Explanation:
Answer:
I believe its D making concrete have rough appearances
Explanation:
color is not the texture artist job
Think about what your living room or bedroom will look like in 25 years. (One Paragraoh) Describe the technology and devices that will exist. Dream big, but be realistic. Who can guess the future?
Answer:
I think that there wont be much of a difference, other people might think there will be a big difference and get their hopes up. They will fail drastically multiple times. We will still be playing on our pcs at home or xbox. We will still have different varieties of xbox, video cards, ram, mother boards, and hard drives and all. Internet speeds will be through the roof.
Explanation:
Which is smaller - 1 PB or 1,000 TB? *
1 PB
1,000 TB
O They're equal
PLEASE HELP 10points
Answer:
they are all equal
Explanation:
I did this before
A colon after a word in a search engine entry indicates:
A.the word is a command with a specific function.
B.the word should be excluded from the search.
C.the word MUST be included in all search results.
D.which type of logic system the search engine should use.
Answer:
The answer is A)
Explanation:
I got it right when i took the test.
A colon after a word in a search engine entry b: The word is a command with a specific function. Hence, option A is correct.
What is colon after a word?A colon is a punctuation mark that can be used to emphasize, indicate composition titles, start text lists, and start a sentence. Emphasis: Only a proper noun or the start of a full sentence should come before the first word following the colon. She had fallen head over heels for Western Michigan University.
A whole sentence almost always precedes a colon; the text that follows the colon may or may not be a simple list, another entire sentence, or even just a single word. Although it tends to be preferred in American language, a capital letter usually follows a colon in British usage.
Thus, option A is correct.
For more information about colon after a word, click here:
https://brainly.com/question/1246927
#SPJ5
What are three steps to use to research relevant information on the internet? (Site 1)
Answer:
Step 1: Questioning --- Before going on the Internet, students should structure their questions. Step 2: Planning --- Students should develop a search strategy with a list of sites to investigate. Step 3: Gathering --- Students use the Web to collect and gather information.
Explanation:
there i did it for you can I get brainlyest
Answer:
Step 1: Questioning --- Before going on the Internet, students should structure their questions. Step 2: Planning --- Students should develop a search strategy with a list of sites to investigate. Step 3: Gathering --- Students use the Web to collect and gather information.
Explanation:
Write an application that displays every perfect number from 1 through 1,000. A perfect number is one that equals the sum of all the numbers that divide evenly into it. For example, 6 is perfect because 1, 2, and 3 divide evenly into it, and their sum is 6; however, 12 is not a perfect number because 1, 2, 3, 4, and 6 divide evenly into it, and their sum is greater than 12.
Answer:
Written in Python
for num in range(1,1001):
sum=0
for j in range(1,num+1):
if num%j==0:
sum = sum + j
if num == sum:
print(str(num)+" is a perfect number")
Explanation:
This line gets the range from 1 to 1000
for num in range(1,1001):
This line initializes sum to 0 for each number 1 to 1000
sum=0
This line gets the divisor for each number 1 to 1000
for j in range(1,num+1):
This following if condition line checks for divisor of each number
if num%j==0:
sum = sum + j
The following if condition checks for perfect number
if num == sum:
print(str(num)+" is a perfect number")
What would you do if you noticed a glass bottle of apple juice fell from a shelf and spilled in the aisle? What steps would you take to make sure no one got hurt?
answer/Explanation:
I would first put up a caution sign about the floor being wet. I would then carefully pick up the broken bottle. I would then mop up the spilled juice and make sure I had swept up all the tiny pieces of glass. I would leave the caution sign up while the floor was drying so that customers would know to be careful while walking down that aisle.
in a company you are in charge of system maintainance. Justify with 5 reasons why your role is key
Answer:
As u are the in charge of system maintainance u have to maintain safety and security to the system.as the system maintainance is a very big role and u can say it is the key to ur company or to ur work.
Can someone tell me what to type up this is for my web page design class
Answer:
You have to write the HTML code as given instructions/design.
Write the below code in text file and save as test.html and run.
Explanation:
<html>
<head>
<title>
Storyboard Practice - Text Formatting
</title>
</head>
<body>
<center>
<h1>
Web Design Overview
</h1>
</center>
</body>
</html>
A first-in first-out (FIFO) is a memory unit that stores information in such a manner that the item first in is the item first out. Show how a FIFO memory operates with three counters: a write counter WC that holds the address for the memory write operation; a read counter RCthat holds the address for the read operation; and an available storage counter ASC that indicates the number of items stored. ASC is incremented for every item stored and decremented for every item that is retrieved. The memory unit communicates with MAR and MBR.
Answer:
tews
Explanation:
What is a browser?
software that enables individual computers to access Web sites on the World Wide Web through a graphical user interface
text that contains hyperlinks, which are connections to other data such as documents or web pages
a service that is available over the Internet
another term for web-based applications
Answer:
software that enables individual computers to access Web sites on the World Wide Web through a graphical user interface
Explanation:
Answer:
software that enables individual computers to access Web sites on the World Wide Web through a graphical user interface
Explanation:
3.24 LAB: Seasons
Write a program that takes a date as input and outputs the date's season. The input is a string to represent the month and an int to represent the day.
Ex: If the input is:
April 11
the output is:
Spring
In addition, check if the string and int are valid (an actual month and day).
Ex: If the input is:
Blue 65
the output is:
Invalid
The dates for each season are:
Spring: March 20 - June 20
Summer: June 21 - September 21
Autumn: September 22 - December 20
Winter: December 21 - March 19
270738.1591718
import java.util.Scanner;
public class LabProgram {
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
int inputYear;
boolean isLeapYear;
isLeapYear = false;
inputYear = scnr.nextInt();
/* Type your code here. */
}
}
Answer:
Seasons Write a program that takes a date as input and outputs the date's season. The input is a string to represent the month and an int to represent the day. Ex: If the input is: April 11 the output is: Spring In addition, check if the string and int are valid (an actual month and day). Ex: If the input is: Blue 65 the output is: Invalid Invalid The dates for each season are: Spring: March 20 - June 20 Summer: June 21 - September 21 Autumn: September 22 - December 20 Winter: December 21 - March 19 LAB ACTIVITY 3.24.1: LAB: Seasons 0/10 main.cpp Load default template... 1 #include eam> 2 #include <string> 3 using namespace std; 4 5 int main() 6 string inputMonth; 7 int inputDay; 8 9 cin >> inputMonth; 10 cin >> inputDay; 11 12 /* Type your code here. */ 13 14 return; 15 }
In the ____ model, each computer in a network can act as a server for all the other computers, sharing files and access to devices.
Answer:
peer to peer
Explanation:
i just know
In a peer-to-peer model, each computer in a network can act as a server for all the other computers, sharing files and access to devices.
What do you mean by Computer Network?Computer Network may be defined as a type of system that significantly connects two or more computing devices with the intention of transmitting and sharing information with one another. In a more simple sense, there is an interconnection between computing devices.
In a peer-to-peer networking model, a group of computers are linked together with having equal responsibilities for the processing of data and information. Each computer is capable to initiate a command that has to be followed by the rest.
Therefore, in a peer-to-peer model, each computer in a network can act as a server for all the other computers, sharing files and access to devices.
To learn more about the peer-to-peer model, refer to the link:
https://brainly.com/question/9315259
#SPJ2
We need a program to calculate future cost of a loan taken by a user. The financial institution charges the following interest rates for loans. The user inputs are the amount of loan desired, the loan period (number of years), and the number of compounding per year. Your program should determine the interest rate based on the amount of the loan. Your program should calculate the future dollar amount of this loan. The total amount of interest at the end of the loan period. Your program should incorporate a looping structure so that the user could check out many loan scenarios. You need to determine how to stop the loop. Interest rate schedule is per following schedule: Loan < 10k rate = 2% 10k =
Answer:
Follows are the code to this question:
#include<iostream>//defining the header file
#include<cmath>//defining the header file
using namespace std;
int main() //defining main method
{
double p,a,r;//defining double variable
int n,t;//defining integer variable
bool flag = true;//defining bool variable flag
while(flag) //defining while loop for input value
{
cout<<"Enter Present Worth: ";//print message
cin>>p;//input value in p
cout<<"Enter number of compounding: ";//print message
cin>>n;//input value in n
cout<<"Enter Loan Period: ";//print message
cin>>t;//input value in t
if (p<10000)//defining if block that check principle value is graeter then 10000
{
r = 0.02;//defining r varaible that store 0.02 value
}
else if (p>=10000 && p<=50000)//defining else if that value of p is in 10000 to 50000
{
r = 0.05;//defining r varaible that store 0.05 value
}
else if (p>50000)//defining else if that value of p is in 50000
{
r = 0.07;//defining r varaible that store 0.07 value
}
a = p*pow((1 + r/((double)n)), n*t);//defining formula for calculate A
cout<<"\nInterest Rate of Loan: "<<r<<endl;//print r rate value
cout<<"Future Worth: $"<<a<<endl;//print A value
cout<<"Total Interest: $"<<(a-p)<<endl<<endl;//print total interest value
char c;//defining char variable c
cout<<"Do you want to check for more loans(Press 'Y' for yes, otherwise press any other key): ";//print message
cin>>c;//input char value
if (c!= 'Y' && c!= 'y')//define if block that check c value is not equal to y
flag = false;//use flag that hold value false
}
cout<<"Thank you!!!"<<endl;//print message
return 0;
}
Output:
please find the attched file.
Explanation:
In the code, inside the main method three double variables "p, a, and, r", two integer variable "n and t", a bool variable is defined, in which double variable "p, n, and t" is used to input the value from the user-end.
In the next step, a condition statement has used that check the p-value and set the value according to the "p" variable value.The formula is used that calculates the value and prints its value, and uses a char variable that takes input "y" for again run the code or input other value to exit the program.New trends and tools are continuously emerging in the field of digital media. Discuss the advantages of these trends and tools for a digital media professional.
Answer:
There are multiple ways of being recognized and known, if new trends are emerging, people will try and get the most out of it so they can be recognized. Another reason is that people can try new things, it could be a new hobby, a new liking or just something they might want to share meaning it gets more attention
Explanation:
balance = 100
balance = ((1.05) * balance) + 100
balance = ((1.05) * balance) + 100
balance *= 1.05
print(round(balance, 2))
Answer:
huh?
Explanation:
Making a Type I error means: _________.
a. We do not find enough evidence that there`s a difference in TV habits by gender for the class, when actually there is a difference.
b. We find evidence that there`s a difference in TV habits by gender for the class. There is a difference in TV habits by gender.
c. We do not find enough evidence that there`s a difference in TV habits by gender for the class.
d. We find evidence that there`s a difference in TV habits by gender for the class, when there is actually no difference. There is no difference in TV habits by gender.
Answer:
d.
Explanation:
Making a Type I error means we find evidence that there`s a difference in TV habits by gender for the class when there is actually no difference. There is no difference in TV habits by gender. Type 1 errors are usually seen in statistical hypothesis testing and refer to accepting a conclusion that only occurred due to lucky circumstances but are not factually correct and will likely not happen again, the same applies for the opposite where a conclusion is rejected due to an unlikely circumstance when in actuality it is a correct conclusion.
We may think of relationships in the E/R model as having keys, just as entity sets do. Let R be a relationship among the entity sets E1, E2, …,En. Then a key for R is a set K of attributes chosen from the attributes of E1, E2,…, En such that if (e1,e2,…,en) and (f1,f2,…,fn) are two different tuples in the relationship set for R, then it is not possible that these tuples agree in all the attributes of K. Now, suppose n=2; that is, R is a binary relationship. Also, for each I, let Ki be a set of attributes that is a key for entity set Ei. In terms of E1 and E2, give a smallest possible key for R under the assumption that:_________.1. R is many-many
2. R is many-one from E1 to E2.
3. R is many-one from E2 to E1.
4. R is one-one.
Explanation:
1
R is many - many;
in this case we have that E1 is not what should be used to determine E2 and in this same way, W2 is not what should determine E1. So non of these can be a key on its own.
2.
R is many-one from E1 to E2
in this case there are 2 tuples (f1,f2) and (e1,e2) which have to be the same if they have the same key attribute for E1. All of them are the same so all the pairs are the same.
3.
R is many-one from E2 to E1:
the explanation for this is is almost the same with that of b. we apply the same logic. since for all keys, all pairs and sets are the same.
4.
R is one-one:
E1 is what determines E2 and likewise, E2 is what determines E1. irrespective of the key that is used, key K is going to the same value of n.
Which one of these stores more data than a DVD ?
Floppy
CD Rom
Blue Ray Disk
Red Ray Disk
Submit
Answer:
Blue Ray Disk
Explanation:
in the evolution of the internet which event occurred most recently ?
Answer:
The real answer is: Web 2.0 replaced the World Wide Web.
Explanation:
a p e x
The World Wide Web was succeeded by Web 2.0, which is often referred to as the internet and was the most recent development.
What is Web 2.0?Websites that emphasize user-generated content, usability, participatory culture, and interoperability for end users are known as “Web 2.0” sites.
On the internet, the greater user interaction and cooperation, more ubiquitous network connectivity, and improved communication channels are characteristics of web 2.0.
Darcy DiNucci initially used the phrase in 1999, while Tim O'Reilly and Dale Dougherty popularized it in late 2004 at the inaugural Web 2.0 Conference. A Web 2.0 website enables on the internet users to communicate and work together as co-creators of user-generated content in a virtual community through social media discussion.
Therefore, it is Web 2.0.
To learn more about the internet, refer to:
https://brainly.com/question/13308791
#SPJ6
Multiple Choice
Which discipline would you study to help a company have better tech support?
O information systems
O information technology
O computer engineering
O computer science
Answer:
information technology
Explanation:
correct on edge
The education discipline that helps in providing a company with technological support has been information technology. Thus, option B is correct.
What is tech support?Tech support has been the acronym for technological support. A company has been requiring the backend support that helps in resolving the issues related to the technical products.
The registered users can gain support for the products such as software, and the bugs can be resolved by the support team.
The support team has to deal with the problems related to the software and the technical bugs in the system that can be studied or solved with the knowledge of computer technology or information technology.
Thus, the discipline required for the tech support team is information technology. Hence, option B is correct.
Learn more about tech support, here:
https://brainly.com/question/21415070
#SPJ2
The K-Means algorithm terminates when:_______
a. a user-defined minimum value for the summation of squared error differences between instances and their corresponding cluster center is seen.
b. the cluster centers for the current iteration are identical to the cluster centers for the previous iteration.
c. the number of instances in each cluster for the current iteration is identical to the number of instances in each cluster of the previous iteration.
d. the number of clusters formed for the current iteration is identical to the number of clusters formed in the previous iteration.
Answer:
b. the cluster centers for the current iteration are identical to the cluster centers for the previous iteration.
Explanation:
K-mean algorithm is one of the mot widely used algorithm for partitioning into groups of k clusters. This is done by partitioning observations into clusters which are similar to each other. When using k-mean algorithm, each of the different clusters are represented by their centroid and each point are placed only in clusters in which the point is close to cluster centroid.
The K-Means algorithm terminates when the cluster centers for the current iteration are identical to the cluster centers for the previous iteration.
The K-Means algorithm terminates when:_
B. the cluster centers for the current iteration are identical to the cluster centers for the previous iteration.
According to the given question, we are asked to show when the K-Means algorithm terminates and the conditions which must be observed before this happens.
As a result of this, we can see that the K-mean algorithm has to do with dividing and organising k clusters of data which have similarities to each other and are denoted by a centroid.
With this in mind, we can see that the algorithm terminates when the cluster centers for the current iteration are identical to the cluster centers for the previous iteration.
Therefore, the correct answer is option B
Read more here:
https://brainly.com/question/15016224
How to give brainliest?
Answer:
Once two people answer a question, it'll have a bar on each answer that says Mark As Brainliest. Click that and it'll make it the Brainliest answer
Answer:
when two people answer there would be a white crown at the bottom right corner (of the answer) when you click on it it turns yellow/gold which means that you have marked that answer brainliest.
Pick the better answer (in your opinion) and then mark it brainliest.
A friend of yours is analyzing data collected on the response time to emergency calls. They are unsure about statis have asked for your advice:
Friend: I have got data on the response time to emergency calls for a random sample of 60 emergency responses. I've been asked to report some numbers to describe the center and spread of this data. Apparently there are several ways to do that and I am unsure which method I should use. I've looked at the data and it seems that the response times are fairly evenly spread around a time of 5 minutes. How should I best report the center and spread of this data?
You respond to your friend saying that, in this case, it is best to report the:____.
a. mean, minimum and maximum values.
b. median and interquartile range.
c. mean and standard deviation.
d. variance.
e. mode and range.
f. mean only.
Answer:
c. mean and standard deviation.
Explanation:
You respond to your friend saying that, in this case, it is best to report the mean and standard deviation. The mean will provide the best representation of the average based on the data that is provided. Meaning that response time that occurs the most often from all the data that was provided. While the standard deviation tells us, by how much the rest of the data is separated from the calculated average value.
What is the purpose of application software
Answer:
Explanation:
type of computer program that performs a specific personal, educational, and business function. Each program is designed to assist the user with a particular process, which may be related to productivity, creativity, and/or communication.
Who could vote in the first democracy?
A.
Everyone
B.
Citizens
C.
Adults
D.
Women
Correct Answer: citizens
John needs to create a presentation on programming languages. He begins with the earliest developed language. Which programming language
does John begin with?
A. machine language
B. assembly language
C. C++
D. Visual Basic
Answer:
Of the given choices, Assembly.
Explanation:
Assembly was one of the first fully flushed programming languages, built on paradigms built throughout the late 40's and early 50's.
FORTRAN however was the first programming language with a compiler.