Answer:
Explanation:
//Include the required header files.
#include<iostream>
using namespace std;
//Define the main function.
int main()
{
//Define the variables.
int i, sum = 0, sqSum = 0, firstNum = 1, secondNum = 0;
char ch;
//Check for valid input.
while (!(firstNum < secondNum))
{
cout << "Enter starting number: ";
cin >> firstNum;
cout<<"Enter ending number(must be > startingNumber): ";
cin >> secondNum;
}
//Store first number in i
i = firstNum;
//Dispaly the number.
cout << "The odd numbers between " << firstNum
<< " and " << secondNum << " are:\n";
//Iterate between first and second number.
while (i <= secondNum)
{
//Check for even numbers.
//Store the sum
if (i % 2 == 0)
sum = sum + i;
//Print the odd numbers
//Evaluate the square of sum of odd number.
else
{
cout << i << " ";
sqSum = sqSum + i * i;
}
//Increase the value of i.
i++;
}
//Dispaly the sum of even numbers.
cout << "\n\nThe sum of the even numbers is:"
<< sum << endl << endl;
//Dispaly the sum of square of odd number.
cout << "The sum of squares the odd numbers is:"
<< sqSum << endl;
//Set i to 1.
i = 1;
//Dispaly the message.
cout << "\nNumber Square\n";
//Iterate and print number between 1 andd 10
//along with the sum.
while (i <= 10)
{
cout << " " << i << "\t " << i * i << endl;
i++;
}
//USe for visual studio.
system("pause");
//Return the value 0.
return 0;
}
Explanation:
The program code will perform the function listed below using loop.
Prompt the user to input two integers: firstNum and secondNum (firstNum must be less than secondNum). Output all odd numbers between firstNum and secondNum. Output the sum of all even numbers between firstNum and secondNum. Output the numbers and their squares between 1 and 10. Separate the numbers using any amount of spaces. Output the sum of the square of the odd numbers between firstNum and secondNum. Output all uppercase letters.
Hope this helps!
Service and software companies typically have a high return-on-assets ratio because they require lower blank as compared to manufacturing companies.
Answer:
So whats the question here? Your just saying a statment ...
Explanation:
Answer:
Resources
Explanation:
The logical answer would be resources. As someone who has ran both, a software company requires less physical resources such as materials, tools, a large labor force, etc. With a manufacturing company, it requires a lot more tangible resources to be successful. Not sure if that is the correct answer, but it is the most logical one.
The________ partitioning scheme enables you to create more than four primary partitions without needing to use dynamic disks
Answer:
three primary partitions
Use the drop-down menus to complete the sentences about the Calendar view Arrange command group.
Under the Calendar view, you will see your calendar as
by default.
When you create an appointment, you are creating an activity that will not send
to other people.
A meeting is an activity where individuals are invited and
are shared.
is an all-day incident placed on the calendar.
Answer:
Use the drop-down menus to complete the sentences about the Calendar view Arrange command group.
Under the Calendar view, you will see your calendar as
✔ monthly
by default.
When you create an appointment, you are creating an activity that will not send
✔ an invitation
to other people.
A meeting is an activity where individuals are invited and
✔ resources
are shared.
✔ An event
is an all-day incident placed on the calendar.
Explanation:
edge 2021
The complete sentences about the calendar view arrange command group are as follows:
Under the Calendar view, you will see your calendar as monthly by default. When you create an appointment, you are creating an activity that will not send an invitation to other people.A meeting is an activity where individuals are invited and resources are shared. An event is an all-day incident placed on the calendar.What do you mean by Calender view?Calendar view may be characterized as a type of feature within calendar software in which the user can choose from various formats in order to view the calendar more accurately and interestingly.
A calendar view lets a user view and interacts with a calendar that they can navigate by month, year, or decade. A user can select a single date or a range of dates. It doesn't have a picker surface and the calendar is always visible.
Command and control functions are performed through an arrangement of personnel, equipment, communications, facilities, and procedures employed by a commander in order to execute its functions.
Therefore, the complete sentences about the calendar view arrange command group are well mentioned above.
To learn more about Calendar view, refer to the link:
https://brainly.com/question/17524242
#SPJ2
What is Ephemeral graphic communication?
Write a program that reads a file called 'test.txt' and prints out the contents on the screen after removing all spaces and newlines. Punctuations will be preserved. For example, if 'test.txt' contains: This is a test file, for chapter 06. This a new line in the file! Then, your program's output will show: Thisisatestfile,forchapter06.Thisanewlineinthefile! Hint: Consider using the 'strip()' and 'replace()' functions.
Answer:
I don't know you should figure that out good luck
Explanation:
good luck
Create a text file content.txt and copy-paste following text (taken from Wikipedia) into it: A single-tasking system can only run one program at a time, while a multi-tasking operating system allows more than one program to be running in concurrency. This is achieved by time-sharing, dividing the available processor time between multiple processes that are each interrupted repeatedly in time slices by a taskscheduling subsystem of the operating system. Now, write a C program that opens content.txt file for reading and calls fork() function. The child process in the program will print first 150 characters from the file and the remaining characters will be printed by the parent. However, at the
Answer:
s0 you should figure that out because I don't know how to
Explanation:
good luck
Ram and Hari can finish a piece of work in 6 days and 12 days respectively in how many days will they finish it working together
Answer:
4 days
Explanation:
Given - Ram and Hari can finish a piece of work in 6 days and 12 days
respectively.
To find - In how many days will they finish it working together
Proof -
As given,
Ram and Hari can finish a piece of work in 6 days and 12 days respectively.
⇒1 day work of Ram done in = [tex]\frac{1}{6}[/tex]
1 day work of Hari done in = [tex]\frac{1}{12}[/tex]
If they work together,
1 day work of both together done in = [tex]\frac{1}{6}[/tex] + [tex]\frac{1}{12}[/tex] = [tex]\frac{2 + 1}{12} = \frac{3}{12}[/tex] = [tex]\frac{1}{4}[/tex]
As we know Work is inversely proportional to efficiency
And efficiency = Person's 1 day work
As we have ,
1 day work of both together done in = [tex]\frac{1}{4}[/tex]
⇒ Total work done in 4 days if they work together.
Write two alternate functions specified below, each of which simply triples the variable count defined in main. These two functions are: a. Function tripleByValue that passes a copy of count by value, triples the copy and returns the new value.b. Function tripleByReference that passes count by reference via a reference parameter and triples the original value of count through its alias(i.e. the reference parameter)For example, if count
Answer:
Following are the code to this question:
#include <iostream>//header file
using namespace std;
int triplebyValue(int count)//defining a method triplebyValue
{
int x=count*3;//defining a variable x that multiply by 3 in the count
return x;//return value of x
}
void triplebyReference(int& count)//defining a method triplebyReference that hold count variable as a reference in parameter
{
count*=3;//multipling a value 3 in the count variable
}
int main()//main method
{
int count;//defining integer variable
count=triplebyValue(3);//use count to call triplebyValue method
cout<<"After call by value, count= "<<count<<endl;//print count value with message
triplebyReference(count);//calling a method triplebyReference
cout<<"After call by reference, count= "<<count<<endl;//print count value with message
return 0;
}
Output:
After call by value, count= 9
After call by reference, count= 27
Explanation:
In this code two methods "triplebyValue and triplebyReference" are declared, which accepts a count variable as a parameter, and in both multiply the count value by 3 and return its value.
Inside the main method, an integer variable "count" is declared that first calls the "triplebyValue" method and holds its value into count variable and in the next, the method value is a pass in another method that is "triplebyReference", and use print method to print both methods value with a message.
How do you guys feel about McCree’s new look in Overwatch 2? I personally like it but some people have a distaste towards it. I personally think it’s a step in the right direction and improves on how he used to look.
Answer:
Agreed.
Explanation:
I also laugh that you put this on Brainly.
I agree
Explanation:
It's lit, very lit
Trace the output of this code
Answer:
The output is 5
Explanation:
Given
Dim x As Integer
x = 5
If x <=5 Then x = x + 1
Label1.text = x -1
Required
The output
On the second line of the code, x=5
The third line is an if condition which checks if x<=5
So, we have:
5 <= 5 ....This is true
So, x = x + 1 will be executed
[tex]x = 5 + 1[/tex]
[tex]x = 6[/tex]
The last line of the program subtracts 1 for x and outputs the result on Label1
Label1.text = x -1
Label1.text = 6 -1
Label1.text = 5
Hence, the output is 5
10. Differentiate between equity share & preference share.
Answer:
Equity Shares are commonly called Common shares and have both advantages and disadvantages over Preference shares.
Equity shareholders are allowed to vote on company issues while preference shareholders can not.Preference shareholders get paid first between the two in the case that the company liquidates from bankruptcy. Preference shareholders get a fixed dividend that has to be paid before equity share dividends are paid. Preference shareholders can convert their shares to Equity shares but equity shareholders do not have the same courtesy.Preference shares can only be sold back to the company while equity shares can be sold to anybody.what is the use of printer
Answer:
To print stuff
Explanation:
Answer:
well um
Explanation:
ummmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
to print things (⌐■_■)
when computer network are joined together they form a bigger network called the
Answer:
A WAN can be one large network or can consist of two or more lans connected together. The Internet is the world's largest wan.
Explanation:
The Westfield Carpet Company has asked you to write an application that calculates the price of carpeting for rectangular rooms. To calculate the price, you multiply the area of the floor (width times length) by the price per square foot of carpet. For example, the area of floor that is 12 feet long and 10 feet wide is 120 square feet. To cover that floor with carpet that costs $8 per square foot would cost $960. (12 × 10 × 8 = 960.) First, you should create a class named RoomDimension that has two FeetInches objects as attributes: one for the length of the room and one for the width. (You should use the version of the FeetInches class that you created in Programming Challenge 11 with the addition of a multiply member function. You can use this function to calculate the area of the room.) The RoomDimension class should have a member function that returns the area of the room as a FeetInches object. Next, you should create a RoomCarpet class that has a RoomDimension object as an attribute. It should also have an attribute for the cost of the carpet per square foot. The RoomCarpet class should have a member function that returns the total cost of the carpet. Once you have written these classes, use them in an application that asks the user to enter the dimensions of a room and the price per square foot of the desired carpeting. The application should display the total cost of the carpet.
Answer:
Answered below
Explanation:
#program is written in Java
class RoomDimension{
double length;
double width;
RoomDimension (double length, double width){
this.length = length;
this.width = width;
}
public double roomArea ( ){
return length * width;
}
}
class RoomCarpet{
RoomDimension rd;
double price;
RoomCarpet ( RoomDimension rd, double price){
this.rd = rd;
this.price = price;
}
public double totalCost( ){
double area = rd.roomArea();
return area * price;
}
}
Help a brother out
Write a java program with these specifications.
playRps – This method plays 24 rounds of rps and returns the total points earned. For each of the 24 rounds, player1’s hand
gesture will be based on calling the nextInt method of the given Random object. If the next integer is even, player1 will play
rock. If it is odd, player1 will play paper. Player1 never plays scissors. Player2 will play rock in the first round, paper in the
second round, scissors in the third round, and repeat the cycle starting with rock again in the fourth round. The method will sum
the return values for the 24 calls to rps and return the total. Note, since an invalid input is never passed in to an rps call using
playRps, your return value should always be a non-negative number.
Answer:
import java.util.*;
class Main {
private enum RPS { Rock, Paper, Scissors };
private static RPS[] options = { RPS.Rock, RPS.Paper, RPS.Scissors };
private static String[] names = {"Rock", "Paper", "Scissors"};
// Return 1 if player 1 beats player 2, 0 otherwise
static public int rps( RPS p1, RPS p2 ) {
if (p1 == RPS.Rock && p2 == RPS.Scissors) return 1;
if (p1 == RPS.Scissors && p2 == RPS.Paper) return 1;
if (p1 == RPS.Paper && p2 == RPS.Rock) return 1;
return 0;
}
static public int playRps() {
Random rnd = new Random();
int totalPoints = 0;
for(int round = 0; round < 24; round++) {
int randomNumber = rnd.nextInt(2);
RPS player1 = options[randomNumber];
RPS player2 = options[round%3];
String name1 = names[randomNumber];
String name2 = names[round%3];
int score = rps(player1, player2);
if (player1 == player2) {
System.out.printf("%d. Both players %s. Draw.\n", round+1, name1);
} else if (score == 0) {
System.out.printf("%d. %s does not beat %s, player 1 loses.\n", round+1, name1, name2);
} else {
System.out.printf("%d. %s beats %s, player 1 wins.\n", round+1, name1, name2);
}
totalPoints += score;
}
return totalPoints;
}
public static void main(String[] args) {
System.out.println("Playing RPS.");
int total = playRps();
System.out.printf("Player 1 earned %d points.\n", total);
}
}
visual media that gives the appearance of a movement can be a collection of graphics
its called animation, a collection of a movement of graphics.
45. Our goals are a reflection of our:
O values
O standards
O obstacles
O resources
beliefs
values and beliefs
List 5 ways by which Artificial intelligence (AI) can be used to drive our business.
Answer:
start a website
Explanation:
true
Suppose we are now working with memory words of length 8. We have already calculated that we need 4 check bits, and the length of all codewords will be 12. We now receive the following code word: 0 1 0 1 1 1 0 0 1 1 1 1 Is this a legal codeword, assuming even parity? If not, where is the error?
Answer:
12
Explanation:
and it is also an error
Give 2 examples of how technology/AI has helped to achieve the SDGs.
Answer:
Although AI-enabled technology can act as a catalyst to achieve the 2030 Agenda, it may also trigger inequalities that may act as inhibitors on SDGs 1, 4, and 5. This duality is reflected in target 1.1, as AI can help to identify areas of poverty and foster international action using satellite images5.
n is assisting immensely to serve all these needs. For example, digital e-health solutions such as 'mhealth' and remote diagnostics using telemedicine services have contributed significantly to improving access to healthcare facilities, reducing neonatal mortality, and providing better health coverage
You are working with a client who wants customers to be able to tap an image and see pricing and availability. As you are building the code in Java, what will you be using?
graphical user interface
icon public use
graphical public use
icon user interface
Answer:
A. Graphical user interface
Explanation:
In Java the graphical user interface is what manages interaction with images.
Answer: A.)
Explanation:
The answer is A because
I was born to rule the world
And I almost achieved that goal
(Giovanni!)
But my Pokémon, the mighty Mewtwo,
Had more power than I could control
(Giovanni!)
Still he inspired this mechanical marvel,
Which learns and returns each attack
(Giovanni!)
My MechaMew2, the ultimate weapon,
Will tell them Giovanni is back!
There'll be world domination,
Complete obliteration
Of all who now defy me.
Let the universe prepare,
Good Pokémon beware,
You fools shall not deny me!
Now go, go, go, go!
It will all be mine,
Power so divine
I'll tell the sun to shine
On only me!
It will all be mine,
Till the end of time
When this perfect crime
Makes history
Team Rocket! This is our destiny!
Listen up, you scheming fools,
No excuses, and no more lies.
(Giovanni!)
You've heard my most ingenious plan,
I demand the ultimate prize
(Giovanni!)
Now bring me the yellow Pokémon
And bear witness as I speak
(Giovanni!)
I shall possess the awesome power
In Pikachu's rosy cheeks!
There'll be world domination,
Complete obliteration
Of all who now defy me.
Let the universe prepare,
Good Pokémon beware,
You fools shall not deny me!
Now go, go, go, go!
It will all be mine,
Power so divine
I'll tell the sun to shine
On only me!
It will all be mine,
Till the end of time
When this perfect crime
Makes history
Team Rocket! This is our destiny!
To protect the world from devastation
To unite all peoples within our nation
To denounce the evils of truth and love
To extend our reach to the stars above
Jessie!
James!
There'll be total devastation,
Pure annihilation
Or absolute surrender.
I'll have limitless power,
This is our finest hour
Now go, go, go, go!
Question 9 (3 points)
When you add a row, where will it appear?
To insert the row, Click the Insert command on the Home tab. The new row will appear above the selected row.
What is a cell?A column and a row's intersection form a rectangular space known as a cell. The Cell Name or Reference, which is discovered by adding the Column Letter and the Row Number, is used to identify cells.
A row can be inserted either above or below where the cursor is. Then click the Table Layout tab after selecting the area where you wish to add a row. Click Above or Below under Rows & Columns. A row can be inserted either above or below where the cursor is.
Then click the Table Layout tab after selecting the area where you wish to add a row. Click Above or Below under Rows & Columns.
Therefore, it can be concluded that the raw appears in the home tab in the section of Row.
Learn more about cells here:
https://brainly.com/question/8029562
#SPJ2
What is IP address ?explain
Answer:
An IP address is a unique address that identifies a device on the internet or a local network. IP stands for "Internet Protocol," which is the set of rules governing the format of data sent via the internet or local network.
Explanation:
IP addresses provide a way of doing so and form an essential part of how the internet works.
Answer: An Internet Protocol address is a number which is unique to. each device connected to the label. It is used for identification and location.
Explanation:
What were Roman Capitals first used for?
Answer:
Square capitals were used to write inscriptions, and less often to supplement everyday handwriting. When written in documents this style is known as Latin book hand. For everyday writing the Romans used a current cursive hand known as Latin cursive. Notable examples of square capitals used for inscriptions are found on the Roman Pantheon, Trajan's Column, and the Arch of Titus, all in Rome. Square capitals are characterized by sharp, straight lines, supple curves, thick and thin strokes, angled stressing and incised serifs. These Roman capitals are also called majuscules, as a counterpart to minuscule letters such as Merovingian and Carolingian.
an algorithm to display multiplication table a number up to 12
Explanation:
Explanation:They are
Explanation:They are 1) start the process
Explanation:They are 1) start the process 2) Input N, the number for which multiplication table is to be printed
Explanation:They are 1) start the process 2) Input N, the number for which multiplication table is to be printed 3) For T = 1 to 10
Explanation:They are 1) start the process 2) Input N, the number for which multiplication table is to be printed 3) For T = 1 to 104) print M = N*T
Explanation:They are 1) start the process 2) Input N, the number for which multiplication table is to be printed 3) For T = 1 to 104) print M = N*T5) End for
Explanation:They are 1) start the process 2) Input N, the number for which multiplication table is to be printed 3) For T = 1 to 104) print M = N*T5) End for6) Stop the process
In the early days of the Internet, most access was done via a modem over an ________.
Question 10 options:
Analog telephone line
Fax
Telegram
None of the above
Answer:
analog telephone line
Explanation:
I hope this helps! :)
☁️☁️☁️☁️☁️☁️☁️☁️☁️
Which of the following commands are part of the Cells group on the HOME tab?
common commands such as bold, underline, copy, and paste. Also for cells format worksheet something like that...
The one that is a part of the Cells group on the home tab is insert. The correct option is 1.
What is a home tab?In Microsoft Word, the Home tab is the default tab. The relevant commands are divided into five groups: Clipboard, Font, Paragraph, Styles, and Editing.
It enables you to edit document settings such as font size, bullet placement, style selection, and many other standard features.
The most utilised document controls can be found under the Home Tab; using these controls, you can alter the text's font and size, paragraph and line spacing, copy and paste, and organisational structure. The Home Tab is divided into four separate sections.
Insert is the one that is a member of the Cells group on the home tab.
Thus, the correct option is 1.
For more details regarding home tab, visit:
https://brainly.com/question/9646053
#SPJ2
Your question seems incomplete, the missing options are:
i. Insert
ii. Delete
iii Format
iv. All of these
Can software work without Hardware? Why?
Answer:
No
Explanation:
Software requires hardware to run. Think about a computer, you can't have windows without having the computer. Software is programmed to run on hardware.
What are some study habits that you practice? Check all that apply.
studying with friends
studying on a regular schedule
taking breaks while studying
getting good sleep
studying in a quiet area
Answer:
studying in quiet place
Taking breaks
Reading from notes
good sleep
eating healthy foods
group study
studying on regular schedule
revision
Some study habits that you should practice are studying with friends, studying on a regular schedule, taking breaks while studying, getting good sleep, and studying in a quiet area. All options are correct.
What are good studying habits?
Effective study techniques can be used by someone who wants to get good scores. Summarizing, limiting distractions, taking breaks, and memorization are some good study techniques.
Several good study practices include: When studying, summarize your notes, avoid studying when you're sleepy, memorize your notes, limit distractions, and take breaks.
Study habit is an action such as reading, taking notes, holding study groups which the students perform regularly and habitually in order to accomplish the task of learning.
Therefore, the correct options are a, b, c, d, and e.
To learn more about studying habits, refer to the link:
https://brainly.com/question/14735769
#SPJ5
When preparing a photo for a magazine, a graphic designer would most likely need to use a program such as
-Microsoft Excel to keep track of magazine sales.
-Microsoft Word to write an article about the photo.
-Adobe Photoshop to manipulate the photo.
-Autodesk Maya to create 3-D images that match the photo.
Answer:
C. Adobe Photoshop To Manipulate The Photo.
Explanation:
:)
Answer:
C
Explanation: