Given the following file (you'll need to type this into a text file in Ropi) I
12345, Jones, Michael,45
46432,Smith, Mary,21 98034,Lee, YISoon,34
48223,Thompson, Zaire,39 29485,Mendez, Jorge,61
Employes Class:
Note, the file will be in the following order:
Employee ID, Lost Name, First Name, Age
Make Instance variables for the following:
Employee ID (Integer), Last Name (String), First Name (String), age (Integer)
Create assessor methods for each instance variable:
String getFirstName(), String getLastName(), int getEmpID(), Int age0
Create mutator methods for each Instance variable:
vold setFirstName(String first), void setLastName(String last), vold setEmpID (int id), void setAge(int age)
Create a toString() method that will print out each record like this:
Employee firstName YiSoon
Employee lastName Lee Employee ID 98034
Employee Age 34
Implement the Comparable Interface and create the Comparable method:
public int compareTo(Employee other)
In this method, compare the last names.
If the last name of the calling object is the same as the other object return 0
If the last name of the calling object is less than the other object return -1
If the last name of the calling object is greater than the other object return 1

Answers

Answer 1

Here's an implementation of the Employee class with the requested instance variables, accessor methods, mutator methods, toString() method, and compareTo() method:

public class Employee implements Comparable<Employee> {

   private int empID;

   private String lastName;

   private String firstName;

   private int age;

   

   // Constructor

   public Employee(int empID, String lastName, String firstName, int age) {

       this.empID = empID;

       this.lastName = lastName;

       this.firstName = firstName;

       this.age = age;

   }

   

   // Accessor methods

   public String getFirstName() {

       return firstName;

   }

   

   public String getLastName() {

       return lastName;

   }

   

   public int getEmpID() {

       return empID;

   }

   

   public int getAge() {

       return age;

   }

   

   // Mutator methods

   public void setFirstName(String first) {

       firstName = first;

   }

   

   public void setLastName(String last) {

       lastName = last;

   }

   

   public void setEmpID(int id) {

      empID = id;

   }

   

   public void setAge(int age) {

       this.age = age;

   }

   

   // toString() method

   public String toString() {

       return "Employee firstName " + firstName + "\n" +

              "Employee lastName " + lastName + "\n" +

              "Employee ID " + empID + "\n" +

              "Employee Age " + age + "\n";

   }

   

   // compareTo() method

   public int compareTo(Employee other) {

       return this.lastName.compareTo(other.getLastName());

   }

}

Learn more about class here:

https://brainly.com/question/27462289

#SPJ11


Related Questions

If a flowchart has a diamond with the words “yes” and “no” to the sides of it, then it is representing a program that is a sequence. true false

Answers

Answer:

yes bc i just took it and it's right

Explanation:

ik it

Answer:

True

Explanation:

It is true.

Hope this helped?

When it comes to credit scores, why is having a
thin file NOT good?
What reasons might an 18-year-old have for
his/her thin file?

Answers

Answer:

credit karma

Explanation:

karma is -69

cloud services are the ideal backup option for user files. which of these is not one of today's popular cloud storage platforms?

Answers

Cloud infrastructure as a service, Cloud data storage as a service, Cloud platform as a service and Cloud software as a service are not one of today's popular cloud storage platforms. Hence, option E is correct.

What is Cloud infrastructure?

The cloud computing infrastructure is the collection of hardware and software needed to enable cloud computing. It includes a user interface as well as storage, networking, and computing power so that users may access their virtualized resources.

Examples include serverless operations, service fabrics, and managed network services including application delivery controllers, load balancers, firewalls, and domain name services.

Thus, option E is correct.

For more information about Cloud infrastructure, click here:

https://brainly.com/question/13468612

#SPJ1

The options are missing-

a. Cloud infrastructure as a service

b. Cloud data storage as a service

c. Cloud platform as a service

d. Cloud software as a service

e. All of the above are services of cloud computing.

Under the fair use doctrine, which group of people are allowed to use certain
portions of copyrighted material without permission?
O A. Web developers
OB. Teachers
C. Entrepreneurs
OD. Producers

Answers

Answer:

the answer is b fair use lets people teachers use some copy right materials since this is instruction

Hope This Helps!!!

A city government is attempting to reduce the digital divide between groups with differing access to computing and the internet. What activities is least likely to be effective in this purpose?

Answers

The city government's least effective activity in reducing the digital divide would be to solely provide computers or internet access without also addressing the underlying issues that prevent certain groups from accessing technology, such as affordability, digital literacy, or language barriers. Simply providing equipment without also addressing these issues will not create long-term solutions and could potentially widen the digital divide further.

Explanation:

The digital divide refers to the gap or disparity between those who have access to digital technologies, such as computers and the internet, and those who do not. In order to bridge this gap and reduce the digital divide, city governments and other organizations often implement various policies and initiatives to increase access and affordability of computing and internet resources. However, implementing policies or initiatives that further increase the cost or affordability barriers for internet access or computing devices would be counterproductive and least likely to be effective in reducing the digital divide.

For example, if a city government were to impose additional taxes or fees on internet service providers, which could lead to increased costs for internet service, it could further hinder access for low-income or marginalized communities who already face affordability challenges. Similarly, if policies or initiatives are implemented that increase the cost of computing devices, such as computers or tablets, it could create additional financial barriers for certain groups, exacerbating the digital divide.

Efforts to reduce the digital divide should focus on increasing access and affordability of computing and internet resources, such as providing subsidies or discounts for internet service, offering affordable or subsidized computing devices, and providing digital literacy programs and training for underserved communities. Implementing policies or initiatives that further increase costs or affordability barriers would likely hinder the goal of reducing the digital divide and may not be effective in addressing the issue.

Therefore, the least likely effective activities are Implementing policies or initiatives that further increase the cost or affordability barriers for internet access or computing devices.

Know more about digital divide click here:

https://brainly.com/question/30282898

#SPJ11

True or False,
LibreOffice Impress is the spreadsheet software of Edubuntu. ​

Answers

False.LibreOffice Impress is not the spreadsheet software of Edubuntu. Edubuntu is a free and open-source operating system designed for use in educational settings.

It is based on Ubuntu and includes a variety of educational software applications.LibreOffice Impress is a presentation software included in the LibreOffice suite, which is a free and open-source office productivity software. Impress is used for creating and editing presentations, and it includes features such as slide design, animations, and multimedia integration.On the other hand, LibreOffice Calc is the spreadsheet software included in the LibreOffice suite. It is used for creating and editing spreadsheets, and it includes features such as formulas, charts, and macros.While Edubuntu includes a variety of educational software applications, including office productivity software, it is not limited to any specific suite or software. Therefore, it is not accurate to say that LibreOffice Impress is the spreadsheet software of Edubuntu.

To learn more about Edubuntu click the link below:

brainly.com/question/24557404

#SPJ4

1.what are the ways on how to maintain you hand tools properly?

2.why is it important to have proper maintenance of hand tools?


3.why do you think 5s is important in the workplace?


help:(

Answers

There are several ways to maintain your hand tools properly. Store them in a safe and organized manner, and regularly inspect them for any damage or wear and tear. Cleaning your hand tools after use helps prevent rust and corrosion, which can lead to deterioration and eventually make them unusable.

Proper maintenance of hand tools is important for several reasons. It prolongs their lifespan and ensures they function properly, which saves you time and money in the long run. Explanation-wise, when hand tools are well-maintained, they are less likely to break or malfunction, which can cause delays or accidents in the workplace. Additionally, having to constantly replace broken or worn-out tools can be costly and time-consuming, so proper maintenance is a smart investment.

5S is important in the workplace for several reasons. It promotes safety, efficiency, and productivity by organizing the workplace and reducing waste. 5S involves five steps: sorting, straightening, shining, standardizing, and sustaining. By sorting through materials and equipment and getting rid of anything that is not necessary, the workplace becomes safer and more efficient. Straightening involves organizing everything in a logical and accessible manner, which makes it easier to find and use tools. Shining refers to keeping everything clean and in good condition, which helps prevent accidents and prolongs the lifespan of equipment.

To know more about inspect visit:-

https://brainly.com/question/30727643

#SPJ11

vendor builds multiple types of tablet computers. Each has a type identification number and a name. The key specifications for each type include amount of storage and display type. The company uses multiple processor types, exactly one of which is used for a specific tablet type. The same processor can be used in multiple types of tablets. Each processor has a manufacturer and a manufacturer's unique code that identifies it.

Answers

Answer:

ARM processor

Explanation:

The processors can be shared across different tablet types and are characterized by a manufacturer and a unique code.

How does the company assign processors to tablet types?

The company assigns processors to different tablet types based on their specific requirements. Each tablet type is associated with exactly one processor, chosen from the available options.

This ensures that the tablets are equipped with processors that meet their performance and compatibility needs. Multiple tablet types may utilize the same processor if it satisfies their respective specifications. The processors themselves are identified by their manufacturer and a unique code, allowing for easy identification and tracking within the company's inventory and production systems.

Read more about processors

brainly.com/question/614196

#SPJ2

Q1 - Creating a Class (20 points)¶ We can start with a class
object to make a 'schedule book' for our course Office Hours.
Create a class called OfficeHours Class Attributes: course, which
has the va

Answers

The given task requires creating a class called "OfficeHours" for managing a schedule book. The class should have the attribute "course" with the corresponding value. Below is an example implementation in Python:

```python

class OfficeHours:

   def __init__(self, course):

       self.course = course

       self.schedule = {}

   def add_appointment(self, date, time, topic):

       if date not in self.schedule:

           self.schedule[date] = {}

       if time not in self.schedule[date]:

           self.schedule[date][time] = topic

       else:

           print("Time slot already booked.")

   def cancel_appointment(self, date, time):

       if date in self.schedule and time in self.schedule[date]:

           del self.schedule[date][time]

       else:

           print("No appointment found for the given date and time.")

   def display_schedule(self):

       print("Schedule for", self.course)

       for date in self.schedule:

           for time, topic in self.schedule[date].items():

               print(date, time, topic)

# Example usage:

book = OfficeHours("Mathematics")

book.add_appointment("2023-06-15", "10:00", "Algebra")

book.add_appointment("2023-06-15", "11:00", "Geometry")

book.add_appointment("2023-06-16", "14:00", "Trigonometry")

book.display_schedule()

book.cancel_appointment("2023-06-15", "10:00")

book.display_schedule()

```

In the above code, the `OfficeHours` class is defined with the attribute `course`. It also has methods to add appointments, cancel appointments, and display the schedule. You can create an instance of the class and use its methods to manage the schedule for a specific course.

To know more about Implementation visit-

brainly.com/question/13194949

#SPJ11

........... is a network of network around the world​

Answers

Answer: Global network

Explanation:

A global network expands the entire world. Connecting networks from all around together, not just in one state but countries and continents as well.

which devices is not found in the CPU​

Answers

Plz answer my question

The devices that is not found in the CPU​ is printer. The correct option is D.

What is CPU?

A central processing unit, sometimes known as a CPU, is a piece of electronic equipment that executes commands from software, enabling a computer or other device to carry out its functions.

The part of a computer that obtains and executes instructions is called the central processing unit (CPU).

A CAD system's CPU can be thought of as its brain. It is made up of a control unit, a number of registers, and an arithmetic and logic unit (ALU). The term "processor" is frequently used to refer to the CPU.

The size, speed, sophistication, and price of a printer varies. It is a device that receives text and graphic output from a computer and transmits the information to paper.

Thus, the correct option is D.

For more details regarding CPU, visit:

https://brainly.com/question/16254036

#SPJ6

Your question seems incomplete, the missing options are:

a. ALU

b. Control Unit

c. Instruction register

d. Printer

Why are the READ and DATA statements used
together?​

Answers

Explanation:

DATA statements are used in conjunction with READ statements. Together they assign numbers or strings to variable names.

Programming Cycle. Arrange them in correct order​

Answers

Answer:

The program cycle is a series of steps that your program repeats until an end-of-file condition is reached. Depending on the specifications you code, the program may or may not use each step in the cycle. I hope this helps :)

Explanation:

Answer:

Well, where's your picture or something though??..We can't even answer it directly because you didn't put some pic or something..

But,maybe I'll try answering it..

•Problem analysis

•Problem design

•Problem coding

•Program testing and debugging

•Program documentation and maintenance

Explanation:

Hope it helps you..

Y-your welcome in advance..

(;ŏ﹏ŏ)(ㆁωㆁ)

Who is obsessed with Stranger Things, and waiting for the new season?!?!

Answers

Answer:

Me

Explanation:

Answer:

ME I CANNOT WAIT I'VE BEEN WAITING EVER SINCE ME AND MY STRANGER THINGS OBSESSED REALLY CLOSE FRIEND AND I FINISHED SEASON 3 THE DAY IT CAME OUT

Explanation:

what is the computational complexity of the recursive factorial method?

Answers

The recursive factorial method has a computational complexity of O(n), which means that it grows linearly with the size of the input. This is because each recursive call of the factorial function multiplies the current value by one less than the current value until it reaches 1

so it takes n multiplications to compute the factorial of n. In other words, the number of operations required to compute the factorial of n using the recursive method is proportional to n. This makes the recursive method less efficient than the iterative method for computing factorials, which has a computational complexity of O(1) because it only requires a fixed number of operations (n multiplications) regardless of the input size. However, the recursive method is often more intuitive and easier to understand, especially for small inputs.

To know more about computational visit:

https://brainly.com/question/31064105

#SPJ11

Which of the following printers would produce the highest print quality?

Answers

Among the following printers, the professional-grade inkjet printer would likely produce the highest print quality.

The professional-grade inkjet printer is known for its exceptional print quality. It utilizes advanced technology, such as high-resolution printheads and a wide color gamut, to produce sharp, vibrant, and detailed prints. These printers often employ a larger number of ink cartridges, including specialized inks for accurate color reproduction and smooth gradients. The combination of high-resolution capabilities and a wide color range enables professional inkjet printers to produce prints with remarkable clarity, color accuracy, and fine details.

On the other hand, laser printers, though highly efficient and suitable for fast and high-volume printing, may not deliver the same level of print quality as professional inkjet printers. Laser printers utilize toner cartridges and rely on a laser beam to fuse toner onto the paper, resulting in sharp text and graphics. While they offer good print quality for text and basic graphics, they may struggle with complex images, subtle color variations, and gradients.

In comparison, consumer-grade inkjet printers are more affordable but may not match the print quality of professional inkjet printers. They often have fewer ink cartridges, lower resolution capabilities, and a narrower color gamut, leading to prints that may lack the same level of detail, color accuracy, and vibrancy. These printers are generally suitable for everyday document and photo printing but may not meet the demands of professional photographers, designers, or artists who require the highest print quality.

In conclusion, for the highest print quality among the given options, the professional-grade inkjet printer is the most likely choice. Its advanced technology, extensive color range, and high-resolution capabilities make it the preferred option for professionals seeking exceptional print results.

Learn more about printers here:

https://brainly.com/question/5039703

#SPJ11

Consider two perfect complements, a keyboard and a computer. If the price of the keyboard only is increased, then the substitution effect of the price change will

Answers

If the price of the keyboard, which is a perfect complement to the computer, is increased, the substitution effect of the price change will be minimal or nonexistent.

In the case of perfect complements, such as a keyboard and a computer, the goods are consumed together in fixed proportions. They are highly complementary, meaning that one is practically useless without the other. As a result, if the price of the keyboard increases, consumers will not substitute it with another product because it is necessary to use it in conjunction with the computer. The substitution effect refers to the consumer's tendency to switch to a substitute product when the price of one good changes. However, in the case of perfect complements, there are no close substitutes available, so the substitution effect is limited. Consumers will continue to purchase the keyboard, despite its increased price, to maintain its complementary functionality with the computer.

Learn more about perfect complements here:

https://brainly.com/question/32634352

#SPJ11

The internetwork layer has a number of subprotocols, but most operate by following the basic rules and format of ip. ip then places its header on the segment, making it a _____ ok cancel

Answers

The internetwork layer has a number of subprotocols, but most operate by following the basic rules and format of IP (Internet Protocol). IP then places its header on the segment, making it a "packet". A packet is a unit of data that is transmitted over a network.

It consists of a header, which contains control information such as source and destination addresses, and a payload, which contains the actual data being transmitted. When IP places its header on the segment, it encapsulates the segment and prepares it for transmission across the network. This process of encapsulation allows the packet to be routed through different network devices until it reaches its destination.

The header added by IP contains information that is used by routers to determine the path the packet should take. By adhering to the basic rules and format of IP, the subprotocols of the internetwork layer can effectively communicate and transfer data across different networks.

To now more about Internet visit:

https://brainly.com/question/16721461

#SPJ11

Indent the contents of cells A5:A12 by a single indentation level.

Answers

To indent the contents of cells A5:A12 by a single indentation level, follow these steps:Firstly, select the cells A5:A12 that you wish to indent.

Secondly, navigate to the Alignment group of the Home tab, and click on the Increase Indent button, which is represented by a right-facing arrow with a horizontal line next to it. This will indent the contents of the selected cells by a single level as shown below:To undo the indentation, click on the Decrease Indent button which is located just next to the Increase Indent button. You can also adjust the indentation level to a custom value by clicking on the Dialog Box Launcher located at the bottom-right corner of the Alignment group. In the Format Cells dialog box, navigate to the Alignment tab and enter a value in the Indent field under the Text control. Click OK to apply the changes.

Learn more about indentation :

https://brainly.com/question/29765112

#SPJ11

Question 11 (1 point) ✓ Saved
You need to zoom into a document and change the display. What do you click to do
this?
Save As
Save
View
Edit

Answers

Answer: If this is referring to Microsoft Documents, then you would use View.

Explanation: If it isn't referring to Microsoft Documents then tell me please.

Helppppp meeeeee eee

Helppppp meeeeee eee

Answers

It’s LEGEND it’s used to explain the markings and symbols that are used to represent features in the map :D

Answer:

Option C is correct

Explanation:

A map legend or key is a visual explanation of the symbols used on the map. It typically includes a sample of each symbol (point, line, or area), and a short description of what the symbol means.

1. Run the following regression log(wage) = β0+β1female+β2married+u Please interpret βˆ 1 and βˆ 2.

Make a code for Stata.

2. Run a new regression log(wage) = c0 + c1female + c2married + c3married*female + u.

Make a code for Stata.

Answers

The first regression helps determine the relationship between gender and wages while controlling for marital status.

1. Regression: log(wage) = β0 + β1female + β2married + u

```

regress log(wage) female married

```

2. Regression: log(wage) = c0 + c1female + c2married + c3married*female + u

```

regress log(wage) female married married#female

```

1. In the first regression, βˆ1 represents the estimated coefficient for the variable "female." It indicates the average difference in the natural logarithm of wage between females and males, holding all other variables constant. A positive βˆ1 suggests that, on average, females earn higher wages than males when other factors are controlled for. A negative βˆ1 indicates the opposite.

2. In the second regression, c3 represents the estimated coefficient for the interaction term "married*female." It captures the additional effect on the natural logarithm of wage when a person is both married and female. If c3 is positive and statistically significant, it suggests that being both married and female has a positive impact on wages beyond what can be explained by the main effects of being married or female individually.

The first regression helps determine the relationship between gender and wages while controlling for marital status. The second regression further investigates the combined effect of being married and female on wages. By estimating these coefficients, we can better understand the impact of gender and marital status on log(wage) and gain insights into potential wage disparities based on these factors.

To know more about regression follow the link:

https://brainly.com/question/13266116

#SPJ11

you want to have a hyperlink to testout.com on your web page. what is the correct html syntax to accomplish this?

Answers

The correct HTML syntax to create a hyperlink to testout.com on a web page is: <a href="http://testout.com">Link to Testout</a>.

The correct HTML syntax to create a hyperlink to testout.com on a web page is:

<a href="http://testout.com">Link to Testout</a>

The <a> tag creates the hyperlink, and the href attribute specifies the URL to which the link should direct. In this example, the text "Link to Testout" will be displayed as the clickable hyperlink on the web page, and clicking on it will redirect the user to the URL http://testout.com.

The <a> tag is known as the anchor tag in HTML. It is used to create hyperlinks that allow users to navigate to another page or a specific location on the same page. The <a> tag is defined with the href attribute, which specifies the target URL or location of the link.

For example, to create a hyperlink to another website, you can use the following HTML code:

<a href="https://www.example.com">Visit Example.com</a>

When this code is rendered in a web browser, the text "Visit Example.com" will be displayed as a clickable hyperlink. When the user clicks on the link, they will be taken to the URL https://www.example.com.

Learn more about anchor here:

https://brainly.com/question/30082119

#SPJ4

Write a python program to check whether the number is divisible by 7. If its divisible, print its divisible otherwise find previous number and the next number which is divisible by 7​

Answers

f = int(input("Enter a number: "))

if(f%7==0):

   print("It's divisible by 7.")

else:

   if(f<7):

       print("7")

   else:

       print(str(f-(f%7))+", "+str(f+(7-(f%7))))

Within a word processing program, predesigned files that have layout and some page elements already completed are called
text boxes
templates.
frames
typography

Answers

Answer:

I think it's B) templates

     

                   Sorry if it's wrong I'm not sure!!

Explanation:

Within a word processing program, predesigned files that have layout and some page elements already completed are called: B. templates.

In Computers and Technology, word processor can be defined as a processing software program that is typically designed for typing and formatting text-based documents. Thus, it is an application software that avail end users the ability to type, format and save text-based documents such as .docx, .txt, and .doc files.

A template refers to a predesigned file or sample in which some of its page elements and layout have already completed by the software developer.

In this context, predesigned files in a word processing program, that have layout and some page elements already completed by the software developer is referred to as a template.

Read more on template here: https://brainly.com/question/13859569

answer the queston...........​

answer the queston...........

Answers

The answer would be
1.excel
2.formatting
3.home
4.cell

Hope this helps

Have a great day/night

Feel free to ask any questions

Answer:

i am not sure what grade work this is

Explanation:


Write a Verilog task that will take N as a variable input, set
an enable signal high, wait N clock cycles and then set an enable
signal low.

Answers

The task will set the enable signal high, wait for N clock cycles, and then set it low, as desired.

A Verilog task that will take N as a variable input, set an enable signal high, wait N clock cycles and then set an enable signal low can be implemented as follows:task set_enable;input [7:0] N;output reg enable;beginenable = 1; #N enable = 0;endendtaskThe above code defines a task named set_enable which takes an 8-bit variable input N and an output signal enable. Within the task, the enable signal is set high (1) and then a delay of N clock cycles is introduced using the Verilog delay operator (#). After the delay, the enable signal is set low (0).The task can be called in another module using the following syntax:set_enable(N, enable);where N is the variable input and enable is the output signal. The task will set the enable signal high, wait for N clock cycles, and then set it low, as desired.

To know more about signal visit:

https://brainly.com/question/33347028

#SPJ11

For this recitabian project, white a peogranithat wil diiphy in menu and perfoem e fiferent arithmetic operation based on the ifiection that i made from the menu. This wilchentine until the duit option is ielected from the menu. The menur that is diplayed: a) add two numbern 6) Tquare a numbo. d) divide tuo numbero. d) गuith What is yout chotce? The cholce that is entered ha sinde fetter string value. A cPp file (mesu.कp) has been provided. It contalin the doclaraton for a string varable (mens choicel, and code that will display the mena to the user and get a strine value. Add code that will process the menu choite that was made by getting the required vilue(s) from the user; perfermine the selected arithmetic operation, and daplaves the result of the operation. This should entainse : fer as lang as the vet does not want to quit. Make sure that the mens of options is diplayed to the user atter the retults of each operation fis been displayed. If the addition operation f

a

or " A ") is selected, the user should be prompted for two integer values that should: be added and thy gewleing sum should be displyyed. Make sure the promphs to the user and the daplay of the results macch whll is shown in the output section. If the square operation f
"s"
" of "S") is selected, the user should be prorthted far a sincle intecer value that should be squared and the resulaing product should be derglayed, Make uare the peompt to the uner and the Cisplay of the results match what is shown in the cutput section. If If the division operation F"d

or "DTlis selected, the saer shiould be prompted for two inteser values fa dividend and divisor) that should be dilded and the resulting quotient AkD remainder should be cipliyed. Make sure the prompls to the user and the digily of the result match what is shown in the output section. If the mena selection is invalid, dispizy "invald selection". Frint a newaine at the end of the prceram. File You Must Submit Pace the con pleted promam code in a tource fle named menu.cPp. Output The output enat is preduced by the program will vary based en the values that ace enternd when the progam in enecuted. The ocfput that is shown below is what the program wis peoduce when it a run in an enwirentrent fuch as Dev Cer oc XCode. When it is ran theocsh the Auto Grader, the portions that ask for values Will Not: shuw the valuef that are entered. A single run of the program follow? a) adid two nimbert: a) squari a turiber d) divide taro: nu=bera

Answers

In this project, a C++ program that will display a menu and perform a different arithmetic operation based on the user's choice that was made from the menu is to be written.

This will continue until the quit option is selected from the menu. If the choice is invalid, the program should display "invalid selection". The menu that is displayed is given below:a) add two numbers b) subtract two numbersc) multiply two numbersd) divide two numberse) modulof) square a numberg) quitWhat is your choice?The choice that is entered has a single-letter string value.

A C++ file (menu.cpp) has been provided. It contains the declaration for a string variable (menuChoice), and code that will display the menu to the user and get a string value. Add code that will process the menu choice that was made by getting the required value(s) from the user; performing the selected arithmetic operation, and displaying the result of the operation.

This should contain a loop that will continue for as long as the user does not want to quit. Make sure that the menu of options is displayed to the user after the results of each operation have been displayed. If the addition operation (or "A") is selected, the user should be prompted for two integer values that should be added and their resulting sum should be displayed. If the subtraction operation (or "B") is selected, the user should be prompted for two integer values that should be subtracted and their resulting difference should be displayed. If the multiplication operation (or "C") is selected, the user should be prompted for two integer values that should be multiplied and their resulting product should be displayed. If the division operation (or "D") is selected, the user should be prompted for two integer values (a dividend and divisor) that should be divided and the resulting quotient and remainder should be displayed.

If the modulo operation (or "E") is selected, the user should be prompted for two integer values that should be divided and their resulting modulo should be displayed. If the square operation (or "F" or "S") is selected, the user should be prompted for a single integer value that should be squared and the resulting product should be displayed. If the menu selection is invalid, display "invalid selection". Print a newline at the end of the program.

To learn more about arithmetic operations:

https://brainly.com/question/30553381

#SPJ11

Program with variables upload instructions

Program with variables upload instructions

Answers

Answer:

Here, I made sure to incorporate variables just in case. You could change it to whatever you need.

Explanation:

v1 = "Hello world!"

v2 = "Spam"

v3 = "Eggs"

v4 = "SpamEggs"

v5 = "Spam Eggs"

v6 = "Spam Eggs"

v7 = 7.9

v8 = 20

v9 = 13

v10 = 5

v11 = 13

v12 = 10.8

v13 = 2.7

print(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13)

if you don't want it all on one line you could just print each variable individually :)

Answer:

Print(“Hello World!”)

Print(“Spam”)

Print(“Spam+Eggs”)

Print(“Spam Eggs”)

Print(“Spam Eggs”)

Print(“7_9”)

Print(“2”+”0”)

Print(“1”+”3”)

Print(“5”)

Print(“1”+”3”)

Print(“1”+”0”+”.”+”8”)

Print(“2”+”.”+”7”)

Explanation:

I think i did it lol, not sure

Checks or safety procedures are put in place to protect the integrity of the system is referred to as?

Answers

answer:

system controls

Other Questions
2. Plot the points (nd) in the plane below. What No. of Days (d) 2: The role of the policy within health and safety management (a) What could the health and safety consultant say to the dentist about the role of the statement of general policy in a health and safety management system? (b) What needs to be done with the policy when the workers agree on the detail? Note: You should support your answer, where applicable, using relevant information from the scenario. In the 1832 case Worcester v. Georgia, the US Supreme Court ruled thatthe Cherokee Nation should be removed to the West.the Cherokee Nation could refuse to sign treaties.individual states could impose laws on American Indians.American Indians could not live east of the Mississippi. Choose the word that means the same as the underlined word? Letters of the children I need help on this quesion. (Easy) When Terri makes fruit salad she uses 4 oranges and 3 cups of grapes for every 2 bananas. If Terry uses five bananas how many oranges and how many cups of grapes will she use? Write and solve a proportion A pharmacologist wants to know if their new invention, a smart pill, is effective. They give the pill to one group of children and a placebo to another. Whether a child receives the compound or the placebo is: 6. Seismic waves that go straight through Earth make the trip very quickly.A. What does that tell us about the composition of Earth's center? (5 points)B. What characteristic of seismic waves tells you this? (5 points) How do I do this man solve for w.5w+3-3(-3w-3)=2(w-2) How many solutions does the system of equations graphed below have? I heard a toilet flush and scurried into an empty stall.I'm Not Thirteen Yet,Lensey NamiokaIn this sentence, flush is used as which part of speech? Which is the best meaning of flush in this sentence? What was Edith Wharton known for? Select three options.writing The Age of Innocenceliving in Paris during World War Iwriting about upper-class societyserving as a nurse in World War Iwriting poems about 1920s women both breeds can be sweet and both can be aggressive it all on how you raise them.do you choose a pitbull or a golden retriever What are the 4 characteristics of a concave mirror? Little Oak Mountain is home to about 750 collared pikas, which are small gray herbivores related to rabbits and hares. Collared pikas are an endangered species, and the population on Little Oak Mountain is expected to decrease by a factor of 1/5 each year.Write an exponential equation in the form y=a(b)x that can model the population of collared pikas on Little Oak Mountain, y, in x years.Use whole numbers, decimals, or simplified fractions for the values of a and b. NOT A QUESTION JUST CHECKJNG SOMETHING Triangkk lmkk es right dude 2. What is the role of the Appropriations Committees? A. to created subcommittees related to budgetary billsB. to supervise federal discretionary fundingC. to present bills to the judiciary committee D. to recommend legislation related to the federal budget A golfer hits a ball off a tee with a velocity of 160 mph at anangle of 35 degrees with the horizontal. What is the total time offlight? part 1: 2 airplanes left the same airport at the same time. One is traveling at 422 mph straight east, the other is traveling 384 mph straight west.How long will it take before they are 6045 miles apart? part 2: 2 airplanes left the same airport at the same time. One is traveling at 422 mph straight NORTH, the other is traveling 384 mph straight WEST.How long will it take before they are 1997 miles apart?