Write a C++ Program to read 2 grades from the keyboard ( Math and Physics ) .

Answers

Answer 1
cin is discouraged, so I'd go with:

string math, physics;
getline(cin, math);
getline(cin, physics);

of course, parsing needs to happen to verify that a correct grade was typed...

Related Questions

What should you do when an error message pops up on the screen?

Answers

consult an athourity depending on the situation of run an antivirus check

Every file name consists of two elements: a name and a folder. true or false

Answers

This statement is false.

What type of interview would be most likely for the following scenario?

doing a telephone poll to find out how many people plan to vote
selection
information-gathering
problem-solving
persuasive

Answers

I'd say information-gathering but I'm not really sure

Answer:

information-gathering

Explanation:

What is done to prevent a plan from becoming confusing because of too much detail

Answers

when providing instructions or rule to follow, it is important to make them as clear as possible. Simple commands follow by an example (when possible) are basic steps to deliver a precise massage. 
Another thing is to bare in mind who is receiving the instruction. The receptor should be apt to the plan knowing vocabulary, structures, etc. 
Last but not least, check if the receptor understood the plan, double check if you think it is necessary 

To prevent a plan from becoming confusing due to an excessive amount of detail, the strategies are

Clear and Concise ObjectivesPrioritize Information

What is the strategies

Clearly state the goals of the plan in a brief way. The goals should be clear, able to be measured, something that can be realistically achieved, related to the situation, and have a deadline (SMART). This helps to stay focused on the goal without adding unnecessary details.

Focus on the most important information and put it ahead of everything else when making a plan. Figure out which information is necessary to comprehend and carry out the plan successfully. Non-important or too much information can be removed or put in extra papers or materials for further reading.

Read more about  plan  here:

https://brainly.com/question/24864915

#SPJ6

Which of the following statements about the use of desktop publishing software is true

Answers

What did you do when you got to school tomorrow and then again I don't want it

The correct statement is that most desktop publishers prefer to create the text portion of their documents in a word processing program and then import it into a desktop publishing file. So, option D is correct.

Desktop publishing software is designed for creating complex page layouts with precision, which is why desktop publishers often use word processing programs for writing text and then import the text for formatting and design. This workflow leverages the strengths of both types of software.

For example, while word processors like Microsoft Word are excellent for writing and editing text, desktop publishing programs like Adobe InDesign allow for advanced layout features such as text wrapping, image placement, and grid layouts, making them ideal for producing publications like brochures or newspapers.

Complete question :

Which of the following statements about the use of desktop publishing software is true?

A. There's no visible difference between pages produced by word processing and desktop publishing software.

B. Most publishers prefer to use their desktop publishing software as their main word processor.

C. Today's professional-strength word processing programs can do everything high-end desktop publishing software can.

D. Most desktop publishers prefer to create the text portion of their documents in a word processing program and import the text into a desktop publishing file.

Up to 10 people is a good guideline for the size of your study group.

Answers

The answer is false                                                                .

Answer:

false

Explanation:

Do you think the rise of Pinterest indicates a turning point for the world of social media?

Answers

Yes because Pinterest sort of controls the internet with most apple phones using pinterest

Answer: yes, because Pinterest is influencing a great number of people and with this new style of social media, more and more people will be attracted to it.

Usually the storage device and storage medium are two separate pieces of hardware (that is, the storage medium is ____). question 8 options: 1) procurable 2) static 3) removable 4) configurable

Answers

Storage media are typically removable. This gives the user the ability to change out for a larger or newer piece of equipment if and when it is needed or the equipment fails. The device itself can be taken out of the medium (i.e., a caddie or some similar holding compartment.)

The colors red, blue, and yellow are known as the primary colors because they cannot be made by mixing other colors. when you mix two primary colors, you get a secondary color: when you mix red and blue, you get purple. when you mix red and yellow, you get orange. when you mix blue and yellow, you get green. design a program that prompts the user to enter the names of two primary colors, one at a time. if the user enters anything other than "red," "blue," or "yellow," the program should print "you didn't input two primary colors." otherwise, it should print something in the format: "when you mix red and blue, you get purple." (assuming the user entered "red" and "blue”.)

Answers

The Python program prompts the user for two primary colors, checks the input validity, and prints the resulting secondary color if valid, or an error message otherwise.

Below is a Python program designed to prompt the user for two primary colors and provide the corresponding secondary color based on the user input:

def mix_colors(color1, color2):

   if color1 not in ["red", "blue", "yellow"] or color2 not in ["red", "blue", "yellow"]:

       print("You didn't input two primary colors.")

   else:

       if color1 == "red" and color2 == "blue" or color1 == "blue" and color2 == "red":

           print(f"When you mix {color1} and {color2}, you get purple.")

       elif color1 == "red" and color2 == "yellow" or color1 == "yellow" and color2 == "red":

           print(f"When you mix {color1} and {color2}, you get orange.")

       elif color1 == "blue" and color2 == "yellow" or color1 == "yellow" and color2 == "blue":

           print(f"When you mix {color1} and {color2}, you get green.")

# Prompt the user for input

color1 = input("Enter the first primary color (red, blue, or yellow): ").lower()

color2 = input("Enter the second primary color (red, blue, or yellow): ").lower()

# Call the function to mix colors

mix_colors(color1, color2)

This program takes user input for two primary colors, validates the input, and then prints the corresponding secondary color based on the combination.

Which of the following roles is responsible for writing programming code?

computer support specialist

software engineer

systems analyst

program manager

Answers

I would say the Software Engineer

Answer:

The answer would be

B: Software engineer

Explanation:

Write a short java method, ismultiple, that takes two long values, n and m, and returns true if and only if n is a multiple of m, that is, n = mi for some integer i.

Answers

public boolean ismultiple( long n, long n )
{
    return( n % m == 0 );
}
Final answer:

The ismultiple method checks if a number is a multiple of another number using the modulus operator in Java.

Explanation:

To check if a number n is a multiple of another number m, we can use the modulus operator (%) in Java. The modulus operator returns the remainder when n is divided by m. If the result is 0, it means that n is divisible by m and hence, n is a multiple of m. Here's the implementation of the ismultiple method:

public class Main {
 public static boolean isMultiple(long n, long m) {
   return n % m == 0;
 }

 public static void main(String[] args) {
   long n = 10;
   long m = 5;
   System.out.println(isMultiple(n, m)); // Output: true
 }
}

Propose, two new, proudly South African ways, which you can visualize that the internet of things, can be used in at work to make life better.

Answers

1. Internet should be used as a medium of learning.

Through internet, such African people could obtain a lot of knowledge from various fields that provided by more developed countries, and use that knowledge to help the development in south africa.

2. It should be used for utilizing business.

There are a lot of new potential business that could be done because of internet, such as blogging, affiliate marketing, public endorsement through social media followers, etc.

Write a program that prompts the user to enter a three digit integer and determine whether it is a palindrome number.

Answers

You never said what language to use so here is your answer in Javascript:

<script type="text/javascript">
function checkPal() {
    var reversestr = "";
    var str = window.prompt("Enter a 3 digit number: ");
    var i = str.length;

    for(var j=i; j>=0; j--) {
        reversestr = reversestr+str.charAt(j);
    }
    if(str == reversestr) {
        alert(str+" Is Palindrome");   
    }
     else {
        alert(str+" Is not a Palindrome");
    }
}
checkPal();
</script>

Consider a 4-drive 200gb-per-drive raid array.what is the available data storage

Answers

It depends on what RAID you're using. Some RAID arrays use multiple drives for redundancy. Therefore, if all four of those drives were on this kind of RAID array, then you would only have 200GB of available storage, as data is duplicated.

In other RAID arrays, speed and performance is the main goal, where data is spit between the four drives, meaning there would be a total of 800GB of available storage.

Finally, you could have a mix between the two if you liked, where 2 drives are paired up in the redundancy RAID, as are the other two. The two pairs are then put up in the performance RAID, allowing for a total of 400GB of available storage.


Long story short, it depends on what kind of RAID you're using, and there are many more RAID configurations than I have mentioned here.

What are the benefits of using presentations to organize and deliver information?

Answers

Hello.

The benefits of using presentations to organize and deliver information are: it keeps things in order, keeps peoples attention longer, and it looks more professional.

Answer:

quickly created, add visual appeal, easy to update

Explanation:

EDG2021

Experienced computer users who need information on advanced topics are likely to need a ____.

Answers

Brainly account. that sure was an easy question.

An operating system cannot run from an external drive. true or false

Answers

This is false. An operating system CAN run from an external drive.

Which of the following should you use to change the text size, color, and font face to make a section label stand out

A. Overtype

B. Heading styles

C. Text wrapper

D. Footnote

Answers

The options that should be used to change the text size, color, and font face to make a section label stand out are heading styles. The correct option is B.

What are heading styles?

Headings draw attention to text and aid in document scanning. Using heading styles is the simplest method for adding headings.

You may rapidly create a table of listings, rearrange your document, and reformat its layout by using heading styles instead of manually changing the text for each heading.

We should employ font, size, and style when updating the spreadsheet's format so that the user can read it easily. When colors are utilized with great contrast, separating the groups of data using borders or shading aids in in-group identification.

Therefore, the correct option is B. Heading styles.

To learn more about heading styles, refer to the below link:

https://brainly.com/question/2619778

#SPJ6

Jumbograms use the ____ extension header to add an alternate packet length field of 32 bytes.

Answers

Hop by Hop options extension header. 

Which two statements about using leased lines for your wan infrastructure are true? (?

Answers

The following statements are true: 1. Leased lines require little installation and maintenance expertise. ( A high service quality is offered by point-to point system) 2. Leased lines provide highly flexible bandwidth scaling. (This Allows a Constant availability)

__________ ensure that hardware and software produced by different vendors work together.

Answers

Hi!

Standards are what help ensure that hardware and software made by different vendors can work together.

Hopefully, this helps! =)

(tco 7) explain the concept of function overloading. provide a c++ program segment that illustrates an overloaded function.

Answers

Function Overloading is the Process Of creating a lot of functions with the Same name But the difference in the signature ( function return type or  number of Parameters or even type of parameters )

when calling the function , the compiler will choose the correct one up on the arguments you sent .. 


A pointing device controls the movement of the ____.

Answers

A pointing device controls the movement of the Mouse Pointer

What language used orthogonality as a primary design criterion?

Answers

LIPS a functional language is one in which computations are made primarily by applying function to given program

You have configured a lan with 25 workstations three network printers and two servers the workstations and printers will have dynamically assigned ip addresses and the printers always need to have the same ip address assigned the servers will have static ip addresses what should you instal

Answers

Would introduce and arrange the DHCP which will be utilized to dole out unique IP address and also the DNS server data identified with the workstation and printers. Also, DHCP extension can be designed amid this establishment to arrange the IP deliver range to be utilized by the gadgets in the system, setting the subnet veil, default passage and also the sort of the subnet. I can likewise arrange the server to help IPv6 too amid the establishment procedure. 

Answer:

Dynamic Host Configuration Protocol (DHCP)

Explanation:

Introduce and arrange the DHCP that will be utilized to give out unique IP address and also the DNS server data identified with the workstation and printers. Also, DHCP extension can be designed amid this establishment to arrange the IP deliver range to be utilized by the gadgets in the system, setting the subnet veil, default passage and also the sort of the subnet. One can likewise arrange the server to help IPv6 too amid the establishment procedure.

How has the development of personal computer hardware and software reversed some of the trends brought on by the industrial revolution? briefly discuss?

Answers

There should be no need to have white-collar employers just next to factories thanks to the Information Revolution, and it enabled executives to stay in home, write documents, and send them easily.

There should be no need to have white-collar employers just next to factories thanks to the Information Revolution.

What is industrial revolution ?

Industrial revolution referred to the period in the 18th and 19th century  was the biggest change  in human history, two industrial revolution occurred first and second industrial revolution.

Both first and second industrial revolution  involved in using machines to  make products, they show impact on workers as Workers worked in big impersonal factories.

First Industrial Revolution took place between 1750 and 1850 in Britain, the United States, France, and Belgium and develops a few products like textiles, Shift in production done by hand to use of machines.    

The Second Industrial Revolution took place in the late 1800. Electricity became the primary source of power for homes, factories, and farms.

For more details regarding industrial revolution, visit

https://brainly.com/question/855594

#SPJ2

What port number is the web server listening on for the web request?

Answers

80 for HTTP, 443 for HTTPS

Why would amazon want to use driverless delivery trucks with 3d printers​ installed?

Answers

Maybe so they would have to pay less workers and for the printers, I have absolutely no idea on that. Lol

Microsoft Surface can do all of the following except ______.

organize and trade music files
plan travel routes
purchase goods and services
teleport physical objects

Answers

teleport physical objects
The answer would be 
D) Teleport physical objects.
Hope I could help!

When you include javascript in a web application, the language is run by the javascript engine of th?

Answers

web browser.





__________________________

Answer:

Web Browser, sometimes, if there's in error, like games, JavaScript will not run, and any other things that are free, to use in browser, is a type of JS

Some languages from JS template.

Angular.JSNode.JSVanilla JS
Other Questions
The university of salamanca was established in the year ____. 1812 1968 1218 A rocket blasts off and moves straight upward from the launch pad with constant acceleration. after 3.6 s the rocket is at a height of 70.0 m. (a) what are the magnitude and direction of the rocket's acceleration? Which of the two legislative bodies in Hamilton's plan represents the general population,and what does the other body represent? how do you preform water displacement What governing body did the Georgia Charter of 1732 establish? A)Common Council B)House of Commons C)House of Burgess Eliminate D)Council of Georgia If 1 cm = 0.394 inches, how many inches are in 1 kilometer? When is a model useful in scientific investigations? Someone who has broken an arm and has had a cast on it for months will notice a distinct shrinking of the arm once the cast is removed. why does this happen? After giving a few ___________ excuses the swimmers packed up and left the private beach!options:-sheepish-serene HELP ASAPWhich of the following is the best description of the components of a biological community in the Yellowstone National Park?A) the bison in YellowstoneB) the bison and aspen in YellowstoneC) the bison, aspen, and thermal features in Yellowstone D) the bison, elk, aspen, and microorganisms in Yellowstone E) the bison, elk, aspen, microorganisms, and season summer rainfall in Yellowstone A regular hexagon rotates counterclockwise around its center. It turns through angles greater than 0 and less or equal to 360. At how many different angles of a hexagon map onto itself? Which unit of measurement is used in the metric system? Tons Kilograms Miles Gallons (Marine science honors)Explain why ocean acidification seems to be speeding up, give specific examples. Why do you think England felt it was as problem when they learned the presence of French settlements in the valleys of the Ohio and Mississippi rivers? The egyptians had a unique system of writing it contained ocer 2000 characters. this writing system is usally referred to as A container holds 70,000 ounces of water. There is a small leak in the container. Every 96 minutes, 1.5 ounces of water leaks out. Represent the total change in the amount of water in the container after 4 hours Which type of account will typically have the highest interest rate? A Savings Account B Certificate of Deposit (CD) C Money Market Account D Checking Account Daphne bought a dishwasher and paid for it with her credit card. The company delivered the dishwasher to her the very same day. When should Daphne record the sale? I need help with equation number 6 A horse is 45 pounds more than six times its rider's weight. If they weigh a total of 710 pounds, how much does the horse wiegh? Steam Workshop Downloader