modify hw 02 c.c to use envp instead of environ. be sure that you understand how the code works. provide liberal comments to explain what your pointer arithmetic is computing. paste your source code for this into your answer document. also, answer the following questions and explain your answers:

Answers

Answer 1

With the aid of pointer-based arithmetic operations and the usage of pointers in comparison operations, address arithmetic is a technique for determining the address of an object. Pointer arithmetic is another name for address arithmetic.

The pointers can be used for mathematical operations like addition, subtraction, etc. The outcome of an arithmetic operation on the pointer, however, will likewise be a pointer if the other operand is of type integer because we know that the pointer includes the address. These operations are addition and subtraction. In C++, a pointer's value can be increased or decreased. It signifies that we can change the pointer's value by adding or removing integer values. A pointer arithmetic can be subtracted (or added) from another in a manner similar to this.

Learn more about arithmetic here-

https://brainly.com/question/11424589

#SPJ4


Related Questions

money counting game create a change-counting game that gets the user to enter the number of coins required to make exactly $1. the program should prompt the user to enter the number of pennies, nickels, dimes, and quarters. if the total value of the coins entered is equal to $1, the program should congratulate the user for winning the game. otherwise, the program should display a message indicating whether the amount entered was more than or less than $1.

Answers

The general-purpose, interactive, object-oriented, and high-level programming language Python is particularly well-liked.

def main():

   pennies=int(input("Enter the Number of pennies : "))

   nickels = int(input("Enter the Number of nickels : "))

   dimes = int(input("Enter the Number of dimes : "))

   quarters =int(input("Enter the Number of quarters : "))

   pennies1=pennies*1

   nickels1=nickels*5

   dimes1=dimes*10

   quarters1=quarters*25

   total=pennies1 +nickels1+dimes1+quarters1

   cash=total//100

   change=total-cash*100

   computeValue(pennies1,nickels1,dimes1,quarters1)

def computeValue(pennies1,nickels1,dimes1,quarters1):

   print("You entered")

   if (pennies1 == 1):

       print ("You have exactely 1 dollar")

   elif (pennies1 < 1):

       print ("You have",pennies1,"which is less than 1 dollar")

   elif (pennies1 > 1):

       print ("pennies:",pennies1,"\nnickels:",nickels1,"\ndimes:",dimes1,

       "\nquarters:",quarters1,"\nYou have",pennies1,"dollars and",pennies1,"cents")

main()

Learn more about nickel here-

https://brainly.com/question/3542561

#SPJ4

31) use scanning software to look for known problems such as bad passwords, the removal of important files, security attacks in progress, and system administration errors. a) stateful inspections b) intrusion detection systems c) application proxy filtering technologies d) packet filtering technologies e) firewalls

Answers

    The logic circuitry that reacts to and processes the fundamental commands that power a computer is known as a processor (CPU). Given that it interprets the majority of computer commands, the CPU is regarded as the primary and most important integrated circuits (IC) chip in a computer.

Which of the following terms describes preventative policies, processes, and technology?

     Information systems are protected from illegal access, modification, theft, and physical damage through rules, procedures, and technology safeguards.

Disaster recovery strategies

        Disaster recovery plans are largely concerned with the technical aspects of maintaining systems, such as whether files should be backed up and how backup computer systems or disaster recovery services should be maintained.

      Identity theft occurs when cybercriminals access a database that contains your personal information.

      Keyloggers: A sort of spyware that keeps track of user activities is a keylogger. Keyloggers can be used in acceptable ways by businesses to keep an eye on employee behavior and by families to monitor their children's online activities.

         Resources are protected by a variety of techniques and technologies, including encryption, intrusion detection systems, passwords, firewalls, and antivirus software. To find intrusion, detection systems are positioned at a network's most vulnerable spots.

To Learn more About  logic circuitry, Refer:

https://brainly.com/question/24708297

#SPJ4

work place communication can suffer when individuals

Answers

You didn’t list any options? But they can suffer when individuals are disrespectful or if they lie about certain things

This process improves system performance by acting as a temporary high-speed holding area between a secondary storage device and the cpu.

Answers

Disk caching improves system performance by acting as a temporary high-speed holding area between a secondary storage device and the CPU.

What is CPU?

A central processing unit (CPU), often known as a central processor, main processor, or simply processor, is the electrical circuitry that processes computer programme instructions. The CPU executes basic arithmetic, logic, controlling, and input/output (I/O) operations provided by programme instructions. This is in contrast to external components like main memory and I/O circuits, as well as specialised processors like graphics processing units (GPUs).

Disk caching boosts hard-disk speed by compressing files. External hard drives are typically used to supplement an internal hard disc. Blu-ray Discs are designed for high quality and have significantly higher storage than DVDs. The actual physical material that contains the data and programmes is referred to as media.

To learn more about CPU

https://brainly.com/question/474553

#SPJ4

Someone help me please…

Answers

Answer:

<I> tag for italics <\I>

color for mark tag and

font sizes for css!

Explanation:

if you use vs code then use I tag for italics and color for mark tag, you need to use CSS for font sizes only. sorry that I don't have any explanation of font sizes because I am in phone rn

an access tool that walks you step by step through the creation of a report and that gives you more flexibility in the design, layout, and number of fields in a report.

Answers

We can use a program to help you create complex reports called the Report Wizard. When a report has been generated, whether using the Report Wizard or the Report command.

The name given to objects and controls that are built using data found in tables. bound management. A control that gets its information from a query or underlying table; a text box control is an illustration of a bound control.

Access automatically constructs a primary key for you, gives it the field name ID, and the AutoNumber data type when you create a new table in Datasheet view. The primary key can be modified, removed, or set for a table that doesn't currently have one in Design view.

Learn more about Control here-

https://brainly.com/question/14782348

#SPJ4

you have an azure storage account named storage1. three users use the following methods to access the data in storage1: user1 uses the azure portal user2 uses the azure storage explorer user3 uses file explorer in windows 11 you generate a storage access signature named sas1 for storage1. which user or users can access storage1 by using sas1?

Answers

On Windows, macOS, and Linux, Microsoft Azure Storage Explorer is a stand-alone application that makes working with Azure Storage data simple.

One of Microsoft's most economical storage options, Azure storage offers accessible, reliable, redundant, and scalable storage. The solution to the current storage dilemma is Azure storage. Azure storage's ability to secure your data or applications is one of the main factors contributing to its popularity. The adaptability, simplicity, and ease of scalability of Microsoft Azure storage further contribute to its popularity. Cloud storage management is a simple service.

Although there are many cloud storage choices on the market, businesses strongly favor Azure cloud storage. Azure cloud storage is in high demand because of its scalability, dependability, and enormous storage capacity.

To know more about Azure storage click on the link:

https://brainly.com/question/17086843

#SPJ4

you require your users to log on using a username, password, and rolling 6-digit code sent to a key fob device. they are then allowed computer, network, and email access. what type of authentication have you implemented? select all that apply.

Answers

Single sign-on; Multi-factor authentication is the type of authentication have you implemented.

What is an authentication?

Authentication is the act of proving an assertion, such as a computer system user's identification. Authentication is the method of verifying a person's or thing's identity, as opposed to identification, which is the act of indicating that identity. It could entail validating personal identification documents, verifying the authenticity of a website with a digital certificate, carbon dating an artefact, or guaranteeing that a product or document is not counterfeit. Authentication is important in a variety of industries. A recurring difficulty in art, antiques, and anthropology is proving that a certain artefact was created by a specific individual or in a specific area or period of history. Verifying a user's identity is frequently required in computer science to give access to secret data or systems.

To learn more about authentication

https://brainly.com/question/14699348

#SPJ4

you are working on research for a 3-5 page paper and want to search for books in the library and ebooks. which is the best tool to use for this type of search? group of answer choices films on demand database library catalog/ primo- searching everything ebook collection (ebsco) database you can't search for both books in the library and ebooks

Answers

The best tool to use for this type of search is: library catalog/Primo.

What is a research?

A research is also referred to a study and it can be defined as an investigation which typically involves the process of gathering (collecting) necessary information about a particular thing of interest through the use of various search tools, in order to reach a logical conclusion with results.

What is a library catalog?

A library catalog is also referred to as library catalogue and it can be defined as a register (database) which typically comprises a list of all bibliographic items and resources that are found in a library or group of libraries, usually situated at several locations such as a network of libraries.

In this context, we can reasonably infer and logically deduce that a library catalog or Primo is one of the best tools to use in searching for books in the library, including ebooks.

Read more on library catalog here: https://brainly.com/question/3460940

#SPJ1

the following pseudocode contains several nested if- then- else statements.unfortunately, it was written without proper alignment and indentation. rewrite the code and use the proper conventions of alignment and indentation.

Answers

In this exercise we have to use the knowledge of computational language in pseudocode to write a code that several nested if- then- else statements.unfortunately, it was written without proper alignment and indentation.

Writting the code:

If myScore < 60 Then

Display “Your grade is F. ”

Else

If myScore < 70 Then

Display “Your grade is D. ”

Else

If myScore < 80 Then

Display “Your grade is C. ”

Else

If myScore < 90 Then

Display “Your grade is B. ”

Else

Display “Your grade is A. ”

End If

End If

End If

End If

See more about pseudocode at brainly.com/question/13208346

#SPJ1

Alchool is a

Please let me know thanks it should be a Depressant or both not sure thanks!.

Answers

The answer should be C. Both A and B

I’m gonna go with C

You are working as a software developer for a large insurance company. Your company is planning to migrate the existing systems from Visual Basic to Java and this will require new calculations. You will be creating a program that calculates the insurance payment category based on the BMI score.



Your Java program should perform the following things:



Take the input from the user about the patient name, weight, birthdate, and height.
Calculate Body Mass Index.
Display person name and BMI Category.
If the BMI Score is less than 18.5, then underweight.
If the BMI Score is between 18.5-24.9, then Normal.
If the BMI score is between 25 to 29.9, then Overweight.
If the BMI score is greater than 29.9, then Obesity.
Calculate Insurance Payment Category based on BMI Category.
If underweight, then insurance payment category is low.
If Normal weight, then insurance payment category is low.
If Overweight, then insurance payment category is high.
If Obesity, then insurance payment category is highest.

Answers

A program that calculates the insurance payment category based on the BMI score is given below:

The Program

import java.io.FileWriter;

import java.io.IOException;

import java.io.PrintWriter;

import java.util.ArrayList;

import java.util.Scanner;

public class Patient {

   private String patientName;

   private String dob;

  private double weight;

   private double height;

   // constructor takes all the details - name, dob, height and weight

   public Patient(String patientName, String dob, double weight, double height) {

       this.patientName = patientName;

       this.dob = dob;

       if (weight < 0 || height < 0)

           throw new IllegalArgumentException("Invalid Weight/Height entered");

       this.weight = weight;

       this.height = height;

   }

   public String getPatientName() {

       return patientName;

   }

   public String getDob() {

       return dob;

   }

   public double getWeight() {

       return weight;

   }

   public double getHeight() {

       return height;

   }

   // calculate the BMI and returns the value

   public double calculateBMI() {

       return weight / (height * height);

   }

   public static void main(String[] args) {

       ArrayList<Patient> patients = new ArrayList<Patient>();

       Scanner scanner = new Scanner(System.in);

       // loop until user presses Q

       while (true) {

           System.out.print("Enter patient name: ");

           String patientName = scanner.nextLine();

           System.out.print("Enter birthdate(mm/dd/yyyy): ");

           String dob = scanner.nextLine();

           System.out.print("Enter weight (kg): ");

           double wt = scanner.nextDouble();

           System.out.print("Enter height (meters): ");

           double height = scanner.nextDouble();

           try {

               Patient aPatient = new Patient(patientName, dob, wt, height);

               patients.add(aPatient);

           } catch (IllegalArgumentException exception) {

               System.out.println(exception.getMessage());

           }

           scanner.nextLine();

           System.out.print("Do you want to quit(press q/Q):");

           String quit = scanner.nextLine();

           if (quit.equalsIgnoreCase("q")) break;

       }

       try {

           saveToFile(patients);

           System.out.println("Data saved in file successfully.");

       } catch (IOException e) {

           System.out.println("Unable to write datat to file.");

       }

   }

   // takes in the list of patient objects and write them to file

   private static void saveToFile(ArrayList<Patient> patients) throws IOException {

       PrintWriter writer = new PrintWriter(new FileWriter("F:\\patients.txt"));

       for (Patient patient : patients) {

           double bmi = patient.calculateBMI();

           StringBuilder builder = new StringBuilder();

           builder.append(patient.getPatientName()).append(",");

           builder.append(patient.getDob()).append(",");

           builder.append(patient.getHeight()).append(" meters,");

           builder.append(patient.getWeight()).append(" kg(s), ");

           if (bmi <= 18.5) builder.append("Insurance Category: Low");

           else if (bmi <= 24.9) builder.append("Insurance Category: Low");

           else if (bmi <= 29.9) builder.append("Insurance Category: High");

           else builder.append("Insurance Category: Highest");

           builder.append("\r\n");

           writer.write(builder.toString());

           writer.flush();

       }

       writer.close();

   }

}

Read more about java programming here:

https://brainly.com/question/18554491

#SPJ1

What affect does friction have on a machine

Answers

Answer:

The friction generates heat, which is an energy that should be converted in movement. That energy, by the form of heat, is a loss.

Decreasing the friction, by lubrication, you will

ethical hacking chapter 1 what penetration model should a company use if they only want to allow the penetration tester(s) partial or incomplete information regarding their network system?

Answers

A form of security test called penetration testing involves a business hiring a qualified specialist to evaluate the effectiveness of its defense against cyber threats.

These are often carried out by on-site audits of the concerned company. By quickly identifying security flaws in a program, white hat hackers primarily utilize this kind of security testing to defend against black hat hackers. Cyber attacks are now commonplace for businesses. While ethical hacking is a much broader role that employs a greater variety of approaches to avoid different forms of intrusions, penetration testers are mostly focused on doing penetration tests as specified by the customer (EC-Council, 2021b). Web application hacking is a potential area of ethical hacking. hacking a system.

Learn more about hacking here-

https://brainly.com/question/14835601

#SPJ4

what conditional programming construct allows a program to select one of three or more distinct outcomes by placing one conditiional construct inside another? question 32 options: loop statement declaration statement nested if statement counting statement

Answers

A conditional programming construct allows a program to select one of three or more distinct outcomes by placing one conditional construct inside another is: C. nested if statement.

The types of control structure.

In Computer programming, there are different types of conditional programming construct and these include the following:

Loop statementNested if statementFor LoopWhile LoopIf/Else StatementIf Statement

What is an if statement?

An if statement can be defined as a type of conditional statement that is written by a computer programmer to handle decisions by running a different set of statements, depending on whether an expression is either true or false.

Similarly, a nested if statement refers to a type of conditional programming construct that is placed inside another if statement in order to test a combination of conditions before selecting the distinct outcomes.

Read more on nested if statement here: https://brainly.com/question/26500953

#SPJ1

Which software would be most appropriate for creating a short movie that looks as if it is three-dimensional?

Question 7 options:

A) LightWave


B) Adobe PhotoShop


c) CorelDraw


d) Vector Magic

Answers

Answer:

Should be A.

LightWave is a 3d suite.

why would the ai programmer choose to only calculate an approximate intercept with bounded (clamped) extrapolation for marlena's future truffle position prediction instead of an exact intercept with no extrapolation limit? select all that apply.

Answers

1. The player can change the Truffle direction at any time, so there is little benefit in calculating an exact future intercept.

2. An exact intercept requires sampling the Truffle's position over multiple frames before a prediction can be made, but an approximate intercept can be calculated in a single frame.

What is a truffle ?

Truffle is a world-class development environment, testing framework, and asset pipeline for Ethereum Virtual Machine (EVM)-based blockchains designed to make developers' lives easier. Truffle is widely recognized as the most popular tool for blockchain application development, with over 1.5 million lifetime downloads.

learn more about truffles here :

brainly.com/question/7163966

#SPJ4

write a function named safe input(prompt,type) that works like the python input function, except that it only accepts the specified type of input. the function takes two arguments:

Answers

Earlier in Python 2, this function was known by the name raw input. Later, in Python 3, it was given the name "input," which is far simpler. The raw input function is no longer supported in Python 3, thus you won't be able to use it if you're using the most recent Python release.

User input is taken using the input() method in Python. It typically returns user input as a string by default. Python utilizes the input() function to take input from the keyboard. An optional prompt parameter, also known as a string that will be printed on the screen whenever the function is called, is available for this function. A function is defined in Python by using the def keyword, followed by the function identifier (name), parentheses, and a colon.

Learn more about Python here-

https://brainly.com/question/13437928

#SPJ4

computer-assisted questionnaire design refers to software that allows users to use computer technology to develop and disseminate questionnaires and to retrieve and analyze data gathered by the questionnaire. true false

Answers

The statement of computer technology is true.

What do you mean by technology?

Technology is the application of knowledge to achieve practical goals in a predictable and repeatable manner. The term technology can also refer to the outcome of such an undertaking. Technology is widely used in medical, science, industry, communication, transportation, and everyday life. Physical objects such as utensils or machinery are examples of technologies, as are intangible instruments such as software. Many technological advances have resulted in societal shifts. The earliest known technology is the stone tool, which was used in the prehistoric era, followed by fire use, which led to the development of the human brain and language throughout the Ice Age.

To learn more about technology
https://brainly.com/question/13044551

#SPJ4

why is optimizing your ad rotation when setting up your ads recommended? users will be able to see more of your ads. you'll be able to serve multiple ads per query. will select the best ad for each auction. users will be able to review your ads more quickly.

Answers

You can choose how frequently the ads within your ad group should be delivered in relation to one another by using the "Ad rotation" parameter.

What role does optimization play?

The goal of optimisation is to provide the "best" solution in relation to a list of constraints of objectives. These include maximising elements like output, fortitude, reliability, endurance, effectiveness, or usage.

What does the workplace optimization process entail?

Optimisation is the art of modifying a system to maximise a given set of characteristics while abiding by some limitations. Reducing costs and maximising throughput and/or efficiency are among the most typical objectives.

To know more about Optimizing visit:

https://brainly.com/question/15319802

#SPJ4

rmed on a web application where a string of characters is entered and input validation is bypassed to display some additional information. which attack is being performed in the given scenario?

Answers

Without input validation, a user might take advantage of applications like setuid executables or web applications like CGIs to make them act badly by feeding them different kinds of data.

Format string vulnerabilities may be caused by this kind of issue. Any harmful action against a computer system that involves manually putting odd data into a typical user input field is known as an input validation attack. The user may see client-side validation in action. It entails using JavaScript for input form validation. A JavaScript validator, for instance, would provide an error if anything was submitted that did not conform to a phone number or email if the input was submitted for a phone number or email.

Learn more about vulnerabilities here-

https://brainly.com/question/28578902

#SPJ4

write a program that takes three integers as input: low, high, and x. the program then outputs the number of multiples of x between low and high inclusive. python

Answers

Using the knowledge of computational language in python it is possible to write a code that program that takes three integers as input: low, high, and x. the program then outputs the number of multiples of x between low and high inclusive.

Writting the code:

low = int(input())

high = int(input())

x = int(input())

count = 0

for i in range(low,high+1):

   if i%x==0:

       count += 1

print(count)

See more about python at brainly.com/question/18502436

#SPJ1

what is the definition of an adapter? a device that uses voice recognition to provide a service a device that uses voice recognition to provide a service a device that converts one voltage to another a device that converts one voltage to another communication of the binary data via the voltage level for each time interval communication of the binary data via the voltage level for each time interval the push that makes electrons move in a wire; the greater the voltage, the stronger the push the push that makes electrons move in a wire; the greater the voltage, the stronger the push

Answers

The device used to convert one voltage to another is called an adapter. Hence, the statement given in option (b) i.e. ‘a device that converts one voltage to another ’ is the definition of the adapter.

Adapters are physical devices that allow electrical voltage from the main power source to be converted to another voltage. The electrical voltage is converted as per the voltage requirements of electronic devices such as laptops, televisions, and music players, etc. The adapters are designed to provide the required power supply to these devices without the loss of their functioning.

The definitions given in other options

A device that uses voice recognition to provide a service is referred to as a voice assistant. Communicating binary data through the voltage levels of each time interval is called a digital signal.The push that enables electrons to move in a wire; such that the greater the voltage, the stronger the push; is called voltage.

The complete question is:

what is the definition of an adapter?

a)  a device that uses voice recognition to provide a service

b)  a device that converts one voltage to another

c)  communication of the binary data via the voltage level for each time interval

d)  the push that makes electrons move in a wire; the greater the voltage, the stronger the push”

You can learn more about adapter at

https://brainly.com/question/14171131

#SPJ4

In which type of computer, data are represented as discrete signals?

Answers

Answer:

Digital computer.

Explanation:

A digital signal is a type of continuous signal (discrete signal) consisting of just two states, on (1) or off (0).

For function isreverse, write the two missing base case conditions. Given two strings, this function returns true if the two strings are identical, but are in reverse order. Otherwise it returns false. For example, if the inputs are tac and cat, then the function should return true.

Answers

Answer:

def isrreverse(str1, str2):

       return str1 == str2[::-1]

Explanation:

A group worker is planning a group that will be conducted over the internet with web-conferencing software that allows people to meet together at a designated time. What type of specialty group is the group worker designing?.

Answers

A Webinar is a type of Web conferencing that resembles a conference but is conducted web - based.

A sort of web conferencing is a webinar. It is exactly like attending a seminar online. For seminars, lectures, workshops, or product and service demos, webinars are useful.

What varieties of web conferencing are there?

Five types of online conferencing

Webinars. This is the name for online seminars, also known as webcasts and web meetings. Web meetings are virtual gatherings that promote conversation among the attendees.Collaboration online.Electronic presentations

In that they occur in real-time, online, and contain a ton of content, video conferences and webinars have a lot in common. But unlike webinars, which are often one-to-many information encounters, video conferences do not.

To learn more about webinars refer to:

https://brainly.com/question/4139475

#SPJ4

A Webinar is a type of Web conferencing that resembles a conference but is conducted web - based. A sort of web conferencing is a webinar. It is exactly like attending a seminar online. For seminars, lectures, workshops, or product and service demos, webinars are useful.

What varieties of web conferencing are there?

Five types of online conferencing Webinars. This is the name for online seminars, also known as webcasts and web meetings.

Web meetings are virtual gatherings that promote conversation among the attendees.

Collaboration online.

Electronic presentations

In that they occur in real-time, online, and contain a ton of content, video conferences and webinars have a lot in common. But unlike webinars, which are often one-to-many information encounters, video conferences do not.

To learn more about webinars refer to:

brainly.com/question/4139475

#SPJ4

write a program to evaluate the following postfix expression. the value of each variable must be asked from the user during the execution time. suppose the postfix expression is tom jerry mickey 23 * - $ and variables tom, jerry, and mickey are int type

Answers

In this exercise we have to use the knowledge of computational language in C++ to write a code that program to evaluate the following postfix expression. the value of each variable must be asked from the user during the execution time.

Writting the code:

#include <bits/stdc++.h>

using namespace std;

// CREATED A CLASS STACK

class Stack

{

public:

int top;

unsigned sz;

int* ar;

};

// VARIOUS STACK FUNCTIONS

Stack* makeStack( unsigned sz )

{

Stack* stack = new Stack();

// BASE CONDITION

if (!stack) return NULL;

stack->top = -1;

stack->sz = sz;

stack->ar = new int[(stack->sz * sizeof(int))];

if (!stack->ar) return NULL;

// RETURNING THE STACK

return stack;

}

// CHECKING IF THE STACK IS EMPTY

int isEmpty(Stack* stack)

{

return stack->top == -1 ;

}

// CHECKING THE TOP OF THE STACK

int whatAtTop(Stack* stack)

{

return stack->ar[stack->top];

}

// POPPING OUT OF A STACK

int pop(Stack* stack)

{

if (!isEmpty(stack))

 return stack->ar[stack->top--] ;

return '$';

}

// PUSHING IN THE STACK

void push(Stack* stack, int op)

{

stack->ar[++stack->top] = op;

}

// EVALUATING POSTFIX STARTS HERE

int postfixEvaluator(string res)

{

// CREATING STACK

Stack* stack = makeStack(res.length());

int i;

// BASE CONDITION

if (!stack) return -1;

for (i = 0; res[i]; ++i)

{

 // CHECK FOR SPACES

 if (res[i] == ' ')continue;

 // CHECK FOR THE DIGIT

 else if (isdigit(res[i]))

 {

  int N = 0;

  // EXTRACT THE NUMBER OUT OF STACK

  while (isdigit(res[i]))

  {

   N = N * 10 + (int)(res[i] - '0');

   i++;

  }

  i--;

  // PUSH THE NUMBER IN STACK

  push(stack, N);

 }

 // POPPING AND ARITHMETIC OPERATIONS

 else

 {

  int pos1 = pop(stack);

  int pos2 = pop(stack);

  switch (res[i])

  {

  case '+': push(stack, pos2 + pos1); break;

  case '-': push(stack, pos2 - pos1); break;

  case '*': push(stack, pos2 * pos1); break;

  case '/': push(stack, pos2 / pos1); break;

  }

 }

}

return pop(stack);

}

// MAIN CODE

int main()

{

string tes;

getline(cin, tes);

string tmp = "";

string res = "";

for (int i = 0; i < tes.length(); i++) {

 if (tes[i] <= 'z' and tes[i] >= 'a') {

  tmp += tes[i];

 } else if (tes[i] == ' ' and (tes[i - 1] <= 'z' and tes[i - 1] >= 'a')) {

  cout << "Enter the value of " << tmp << ": ";

  int x; cin >> x;

  res += (to_string(x));

  res += ' ';

  tmp = "";

 } else {

  res += tes[i];

 }

}

cout << "\nThe postfix expression is : " << res;

cout << "\nThe result is : " << postfixEvaluator(res);

return 0;

}

See more about C++ at brainly.com/question/19705654

#SPJ1

How did inventors like lee deforest and edwin howard armstrong fund their initial research and development ventures into radio technologies?.

Answers

Government financing was provided for Marconi (England = public mandate; taxes)

- The United States raised funds from investors in capital.

What is meant by radio technologies?

Radio technology, the transmission and reception of communication signals made of of electromagnetic waves that bounce off the ionosphere or a communications satellite or pass through the air in a straight line.

Radio broadcasts that are available 24 hours a day and provide real-time information allow listeners to acquire the most latest news. Radio has the ability to cross international borders and can be a valuable source of news in places where reputable news is difficult to come by.

Radio equipment requires electromagnetic waves to transmit and receive in order to function. The radio signal is an electrical current that moves very quickly. An antenna is used by a transmitter to broadcast this field; a receiver takes it up and transforms it into the audio heard on a radio.

The complete question is : How did inventors like Lee Deforest and Edwin Howard Armstrong fund their initial research and development ventures into radio technologies? How was this different from the funding used by inventors like Guglielmo Marconi in Europe?

To learn more about radio technology refer to:

https://brainly.com/question/4348815

#SPJ1

in a certain game, a player may have the opportunity to attempt a bonus round to earn extra points. in a typical game, a player is given 1 to 4 bonus round attempts. for each attempt, the player typically earns the extra points 70% of the time and does not earn the extra points 30% of the time. the following code segment can be used to simulate the bonus round.

Answers

The option that is not a possible output of the above simulation in the game is С The player had 3 bonus round attempts and 7 of them earned extra points.

What does simulation mean in games?

Games in the simulation genre are made to resemble actions you could observe in everyday life.

Therefore, note that the game's goal may be to impart some knowledge on you. You could, for instance, learn how to fish. Some simulation games simulate running a business, like a farm or an amusement park.

Learn more about game simulation from

https://brainly.com/question/24030756
#SPJ1

See full question below

In a certain game, a player may have the opportunity to attempt a bonus round to earn extra points. In a typical game, a player is given 1 to 4 bonus round attempts. For each attempt, the player typically earns the extra points 70% of the time and does not earn the extra points 30% of the time. The following code segment can be used to simulate the bonus round.

success - 0

attempts - RANDOM 1, 4

REPEAT attempts TIMES

IF (RANDOM 110 s 7

success - success + 1

DISPLAY "The player had"

DISPLAY attempts

DISPLAY "bonus round attempts and"

DISPLAY success

DISPLAY "of them earned extra points."

Which of the following is not a possible output of this simulation?

А. The player had 1 bonus round attempts and 1 of them earned extra points.

B The player had 2 bonus round attempts and of them earned extra points.

С The player had 3 bonus round attempts and 7 of them earned extra points.

D The player had 4 bonus round attempts and 3 of them earned extra points.

What output will be produced by this Java statement?

System.out.print("3" + (1+6));

A. an error is produced
C. 9
B. 37
D. 10

Answers

A. An error is produced
Other Questions
In the diagram, 91 = -6.39*10^-9 C andq2 = +3.22*10^-9 C. What is the electricfield at point P? Include a + or - sign tomindicate the direction.q2q1P0.424 m-** 0.636 m(Remember, E points away from + charges,and toward - charges.)(Unit = N/C)Enter c) 2.5-1.4 x 1.4 x 1.4 2.5 x 2.5 x (2.5) + 2.5 x 1.4+ (1.4) the temperature (in degrees Fahrenheit) x hours after 5 p.m. is represented by t(x)=-4+72. The temperature x hours after 10 a.m. is represented by d(x)=4x+72. Describe the transformation from the graph of t to the graph of d. What is the identity of a 10.0 g metal sample that increases by 14.0 C when 62.9 J of energy is absorbed?(The answer is Iron but I can't for the life of me remember how to correctly work the problem to get to that answer and am mainly seeking help with that)Au: 0.128Ag: 0.235Cu: 0.385Fe: 0.449Al: 0.903 Which statement is correct in the process of balancing the equation? The mean number of runs per game scoredby the Chicago Cubs during the 2016 World Series was 3.86 runs, with astandard deviation of 3.36 runs. Apply Chebychevs Theorem to the datausing k = 2. Interpret the results Until 2015, women did not serve in combat positions in the u. S. Military because. Given: Q R S TQ T R SProve: Q R S T is a parallelogram Which of the following were measures taken by Cardinal Richelieu to augment and centralize the powers of the French state? Select all that apply.He concentrated on repairing and expanding the country's infrastructure, building new roads and canals.He reorganized the French economy according to mercantilist policies.He extended the use of intendants, commissioners for each of France's thirty-two districts.He encouraged Louis XIII to establish an elaborate palace and ground at Versailles. Which phase of matter is the least common on Earth?A. GasesB. LiquidsC. SolidsD. Plasma Which of the following whole numbers are perfect squares? (Please select ALL correct answers for full credit). A client reports acute pain while negative pressure wound therapy is in place. What should the nurse do first?. If anyone sees this post and knows how to do it please help me out I would greatly appreciate it thank you so much Directions: Convert the concepts below into potential, hypothetical themes.Good & EvilLoveHonorExamples:BraveryBravery can lead to fame and glory.TeamworkAnything can be accomplished by working together towards a common goal.LoyaltyBeing loyal is beneficial for yourself and the entire community. How effective are cochlear implants in restoring hearing? does the implant work the same way for all people?. ______ was a composer who performed regularly for king Louis XIV.A. Elisabeth-Claude Jacquet de la GuerreB. Johann Sebastian Bach C. Antonio VivaldiD. George Frideric Handel Why has the flower girl come to see Mr. Higgins? Please help! Choose the mathematical sentence that most accurately expresses theinformation in the problem, and would be most helpful in solving it.After taking 4 pieces of fruit out of a bag, 12 pieces of fruit remained. Howmany pieces of fruit were in the bag to start?A. 12 + f = 4B. 12 f = 4C. 4+ f = 12D. 12 - 4 = fE. F 4 = 4F. F - 4 = 12 can someone 5 paragraphs on Muslim culture, their languages e, beliefs, holidays etc and at least 3 facts about their culture A cylindrical hollow metal pipe is 16 cm long.It has an external diameter of 10 cm and an internal diameter of 8 cm.The density of the metal from which the pipe is made is 8 grams per cm3What is the mass of the pipe in grams? Which of the following choices is an example of indirect water pollution?