EXERCISE 6 Based on the image attached, the program was written for a marketing research firm that wants to determine if a customer prefers Coke or Pepsi over some other drink. In this exercise, use what you have learned about OR logic to study a complete C++ program that uses OR logic in a decision statement. *Help me solve the following questions. Thank you in advance.
Q: RO>en RO#show ip route Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP D -…
A: The Answer is in step-2.
Q: Describe the features of information that are most important. How do they play a role in computer…
A: Introduction: Computer security refers to the assurance that computer systems that hold private data…
Q: Determine your authentication server's identity.
A: The Answer start from step-2.
Q: gm in a f
A: A hybrid cloud is a registering environment which consolidates a public cloud and a private cloud…
Q: What's the difference between the World Wide Web and the Internet? Make at least three assertions…
A: World wide web or w3 or web is a standard system for accessing the internet. It is commonplace for…
Q: c++ Program You are required to add two numbers of 5 digits each using Stack and Queue. You may…
A: Code: #include<bits/stdc++.h> using namespace std; //main int main() { int num_1[5],…
Q: 1. Define a regular grammar for the language L = {aln 2 6}
A: HI THERE I AM ADDING ASNWER BELOW PLEASE GO THROUGH IT THANK YOU
Q: Q-1. what is actput of this logic gati? A F=?
A:
Q: Explain concurrency and go over four design and management challenges that concurrent raises.
A: Concurrency as a Concept: The architecture of an operating system is concerned with the management…
Q: • Define a void function called myFunc that takes a 2-by-3 integer array as an argument and performs…
A: Note :- You have not mention the language of the program, so i'm answering your question in C++.…
Q: Discussed the economic and ideological causes of the American, the French, and the Chinese…
A: INTRODUCTION: The imposition of taxes on the colonies, which they refused to pay, was the economic…
Q: ed to use SNAT and PAT. How many IP addresses must you get from your ISP at the very least for all…
A: An Internet Protocol address (IP address) is a mathematical name, for example, 192.0.2.1 that is…
Q: Big data is a term that is used to describe a large amount of information. What are the business…
A: Various business problems of bigdata are :1.Less knowledge of legitimate comprehension of Big Data…
Q: Assume the tollowing assignments to the variables, a=1, b=2, c=3, da8, e=9, f=10, i=23 and j=89 The…
A: Introduction: pascal is one of the programming language, we are given some variables and their…
Q: Give an argument supporting the statement that modularity is the most important principle in…
A: This makes modular designed systems, if built correctly, far more reusable than a traditional…
Q: lease continue tthe code below --- #include
A: #include <stdio.h>#include<conio.h> struct Employee { // declaring the members of…
Q: Where necessary, use correct syntax to define the following notions. Also, explain why these terms…
A: Introduction: Because there are several questions, the first three will be addressed. Please submit…
Q: Briefly explain the following: What is the difference between HTML, XML, and DHTML?
A: HTML stands for complete hypertext markup language XML (Extensible Markup Language) is a markup…
Q: What is the safest way to remove a 250GB solid state disk from a computer without damaging it?
A: Introduction: Let's talk about SSD quickly before getting into the technique for properly removing…
Q: What is the difference between requirements for users and requirements for systems?
A: Software requirements: Customers' individual demands or expectations are reflected in user…
Q: Create a mealy state diagram and state table(present state, next state, input x and output z) that…
A: Mealy state diagram is a finite automata which contains output. Given binary sequence is 00110111…
Q: Just gotta create SQL codes out of the data inputted in the images, help please! Display all data…
A: Hello student Greetings Hope you are doing great. As per our policy guidelines, in case of multiple…
Q: A database programme requires less time to develop than a file-based system.
A: Database: A database application is the brains behind a corporate information system, allowing users…
Q: The first element in each array is accessed with index number 0. (e.g., array[0]). Select one: True…
A: Multiple variables with the same name are referred to as an array. It's a user-defined data type…
Q: 1.Consider a complete graph G with 4 vertices. The graph G has. ---- spanning trees. 2. Consider a…
A: 1. The graph can have many cross trees. And a complete graph with n vertices has n (n-2) expandable…
Q: Write a Program to reverse a given 5 digit Integer number.
A: The answer is given in the below step
Q: Performance: using the reference: https://www.guru99.com/performance-testing.html, explain 3…
A: let us see the answer:- Introduction:- Performance testing is a software testing procedure that…
Q: Solve the following system of equation by Gaussian Elimination method. 2x – 6y + 8z = 24 5x + 4y –…
A: Solution: x = 1 y = 3 z= 5 Gaussian elimination method In mathematics, the Gaussian elimination…
Q: Create a C# program named ConsoleAppException that divide 2 numbers and display the result. Ensure…
A: Here somehow I have an code may help you......
Q: The localization principle states that variable declarations should be close to their use in a…
A: In programming, the principle of locality refers to the proximity of variables declared to…
Q: What dos porallel compuling imply?!
A: According to the question the parallel is generally implemented in the operational that require…
Q: What happens if the operating system doesn't correctly distribute the available main memory across…
A: Introduction: Pointers that are dangling and premature frees are two examples of this. The memory of…
Q: What are some of the characteristics of von Neumann architecture?
A: Von Neumann's architecture provides the foundation for many general-purpose computers. Von…
Q: Discuss the FIVE (5) most critical aspects to consider when choosing a database management system…
A: Selection of a Database Software: Database software Selection of a Database Software is used to…
Q: What Is A Real-Time Data Warehouse, And How Does It Work? What Is the Difference Between a…
A: The simplest way to explain an RTDW is that it looks and feels like a regular data warehouse, but…
Q: The following definition reserves 20 elements for integer array x, which has indices in the range…
A: Introduction: Array is one of the linear data structure which can store the same type of data or…
Q: iners better than virtual machines? DHCP vs APIPA What are the adva
A: Below are containers better than virtual machines DHCP vs APIPA What are the advantages of having…
Q: An illustration of how each Bl component might be used in conjunction with a distributed warehouse.
A: Introduction: The four core tools are a central database, ETL (extract, transform, load) tools,…
Q: What are the best ways to debug common Linux hardware, application, file system, and network issues?
A: Kernel programming has its own set of debugging issues. Kernel code can't be readily debugged or…
Q: What's the difference between type casting and automatic type conversion? In Java expressions, what…
A: Type casting and the Type conversion are used in a program to convert one data type to another data…
Q: Write a code for a linked-list with the following node: number1 number2 а. Insert input b. Insert a…
A: Note: The programming language is not mentioned in the question so the C++ programming language is…
Q: Course HTML Write a JavaScript function that accepts a number from a user as input and checks if…
A: The answer is given below.
Q: What's the difference between type casting and automatic type conversion? In Java expressions, what…
A: Typecasting and automatic type conversion:- The basic difference between type conversion and…
Q: droid system's CPU
A: Android is a mobile operating framework based on a changed adaptation of the Linux kernel and other…
Q: What exactly is failure? What are the many forms of software failures?
A: Justification: If a user feels that the programme no longer delivers the intended output in relation…
Q: What is the primary distinction between a relationship and a conventional file?
A: File system : 1. Files operate locally, while DBMS saves data directly to a database. 2. Saves data…
Q: 2 16 4 32 (128 8 (64
A: Hello student Greetings Hope you are doing great. Thank You!!!
Q: What makes “emerging technologies” happen and what impact will they have on Individuals, Society,…
A: INTRODUCTION: Technologies may one day allow us to live healthy lives far into our 100s, improve…
Q: Describe the three main circumstances in which concurrency can occur and provide examples of each.
A: Please refer below for your reference: The three main circumstances in which concurrency can occur…
Q: Construct a max heap by successively inserting 3, 6, -3, 14, 8, 9, and 20.
A: Answer:
EXERCISE 6
Based on the image attached, the program was written for a marketing research firm that wants to determine if a customer prefers Coke or Pepsi over some other drink. In this exercise, use what you have learned about OR logic to study a complete C++ program that uses OR logic in a decision statement.
*Help me solve the following questions. Thank you in advance.
Step by step
Solved in 2 steps with 2 images
- // Airline.cpp - This program determines if an airline passenger is // eligible for a 25% discount. // Harvey Mark, ITSE 1329#include <iostream> #include <string> using namespace std; int main() { string passengerFirstName = ""; // Passenger's first name string passengerLastName = ""; // Passenger's last name int passengerAge = 0; // Passenger's age // This is the work done in the housekeeping() function cout << "Enter passenger's first name: "; cin >> passengerFirstName; cout << "Enter passenger's last name: "; cin >> passengerLastName; cout << "Enter passenger's age: "; cin >> passengerAge; // This is the work done in the detailLoop() function // Test to see if this customer is eligible for a 25% discount if(passengerAge <= 6) { cout << "You are eligable for a discount!\n"; } if(passengerAge >= 65) { cout << "You are eligable for a…Rock, Paper, Scissors Game Create a application using (C#) in Microsoft Visual Studio that lets the user play the game of Rock, Paper, Scissors against the computer. The program should work as follows.1. When the program begins, a random number in the range of 1 through 3 is generated. If the number is 1, then the computer has chosen rock. If the number is 2, then the computer has chosen paper. If the number is 3, then the computer has chosen scissors. (Do not display the computer’s choice yet.)2. The user selects his or her choice of rock, paper, or scissors. To get this input you use clickable PictureBox controls displaying some of the artwork that you will find in the student sample files.3. The computer’s choice is displayed.4. A winner is selected according to the following rules: •If one player chooses rock and the other player chooses scissors, then rock wins. (Rock smashes scissors.)•If one player chooses scissors and the other player chooses paper, then scissors wins.…Anagram words Write a C code that asks users to enter two words, one after the other and checks if these words are anagrams (permutations of the same letters). For instance, the words “smartest” and “mattress” are anagrams. Examplea Run 1: Please enter first word: lookplease enter the second word: coolSorry! “cool” and “look” are not anagrams. Run 2: Please enter first word: masters please enter the second word: smartes Yes! “masters” and “smartes” are anagrams. Hint: If you sort the two words that are anagrams, they will become identical! For instance, “smartest” and “masters” both sort to “aemrsstt” You can use all functions in <string.h> Sorting a string is exactly similar to sorting an array. You just need to know the length of the string and make sure you do not touch the terminating null.
- 4.23 (Financial application: payroll) Write a program that reads the following information and prints a payroll statement: Employee’s name (e.g., Smith)Number of hours worked in a week (e.g., 10)Hourly pay rate (e.g., 9.75)Federal tax withholding rate (e.g., 20%)State tax withholding rate (e.g., 9%) A sample run is shown below:Enter employee's name: SmithEnter number of hours worked in a week: 10Enter hourly pay rate: 9.75Enter federal tax withholding rate: 0.20Enter state tax withholding rate: 0.09Employee Name: SmithHours Worked: 10.0Pay Rate: $9.75Gross Pay: $97.5Deductions:Federal Withholding (20.0%): $19.5State Withholding (9.0%): $8.77Total Deduction: $28.27Net Pay: $69.22 Requirement: Requirements: Input and output must match the format provided in the exercise sample runs Currency must be displayed properly: You must have a dollar sign ($) and 2 places after the decimal (dollars and cents) You must use printf rather than the goofy trick from earlier chapters Appropriate…C++ Visual 2019 A particular talent competition has five judges, each of whom awards a score between 0 and 10 to each performer. Fractional scores, such as 8.3, are allowed. A performer's final score is determined by dropping the highest and lowest score received, then averaging the three remaining scores. Write a program that uses this method to calculate a contestant's score. It should include the following functions: void getJudgeData() should ask the user for a judge's score, store it in a reference parameter variable, and validate it. This function should be called by main once for each of the five judges. void calcScore() should calculate and display the average of the three scores that remain after dropping the highest and lowest scores the performer received. This function should be called just once by main and should be passed the five scores. The last two functions, described below, should be called by calcScore, which uses the returned information to determine which of the…T F You cannot initialize a named constant that is declared with the const modifier.
- // Airline.cpp - This program determines if an airline passenger is // eligible for a 25% discount. #include <iostream> #include <string> using namespace std; int main() { string passengerFirstName = ""; // Passenger's first name string passengerLastName = ""; // Passenger's last name int passengerAge = 0; // Passenger's age // This is the work done in the housekeeping() function cout << "Enter passenger's first name: "; cin >> passengerFirstName; cout << "Enter passenger's last name: "; cin >> passengerLastName; cout << "Enter passenger's age: "; cin >> passengerAge; // This is the work done in the detailLoop() function // Test to see if this customer is eligible for a 25% discount // This is the work done in the endOfJob() function return 0; }Strictly java code Write an application for Limpopo’s Car Care Shop that shows a user a list of available services: oil change, tire rotation, battery check, or brake inspection. Allow the user to enter a string that corresponds to one of the options, and display the option and its price as R250, R220, R150, or R50, accordingly. Display an error message if the user enters an invalid item.Need help coding in Java Create an application that contains an enumeration that represents the days of the week. Display a list of the days, and then prompt the user for a day. Display business hours for the chosen day. Assume that the business is open from 11 - 5 on Sunday, 9 - 9 on weekdays, and 10 - 6 on Saturday.
- // EmployeeBonus.cpp - This program calculates an employee's yearly bonus. #include <iostream> #include <string> using namespace std; int main() { // Declare and initialize variables here string employeeFirstName; string employeeLastName; double numTransactions; double numShifts; double dollarValue; double score; double bonus; const double BONUS_1 = 50.00; const double BONUS_2 = 75.00; const double BONUS_3 = 100.00; const double BONUS_4 = 200.00; // This is the work done in the housekeeping() function cout << "Enter employee's first name: "; cin >> employeeFirstName; cout << "Enter employee's last name: "; cin >> employeeLastName; cout << "Enter number of shifts: "; cin >> numShifts; cout << "Enter number of transactions: "; cin >> numTransactions; cout << "Enter dollar value of transactions: "; cin >> dollarValue; // This is…// EmployeeBonus.cpp - This program calculates an employee's yearly bonus. #include <iostream> #include <string> using namespace std; int main() { // Declare and initialize variables here string employeeFirstName; string employeeLastName; double numTransactions; double numShifts; double dollarValue; double score; double bonus; const double BONUS_1 = 50.00; const double BONUS_2 = 75.00; const double BONUS_3 = 100.00; const double BONUS_4 = 200.00; // This is the work done in the housekeeping() function cout << "Enter employee's first name: Kim"; cin >> employeeFirstName; cout << "Enter employee's last name: Smith"; cin >> employeeLastName; cout << "Enter number of shifts: 25"; cin >> numShifts; cout << "Enter number of transactions: 75"; cin >> numTransactions; cout << "Enter dollar value of transactions: 40000.00"; cin >> dollarValue; // This is the work done in the detailLoop()function // Write your code here…Computer Fundamentals and Programming 2 Write a program that determines a student’s grade. The program will accept 3 scores and computes the average score. Determine the grade based on the following rules: - If the average score is equal or greater than 90, the grade is A. - If the average score is greater than or equal to 70 and less than 90, the grade is B. - If the average score is greater than or equal to 50 and less than 70, the grade is C. - If the average score is less than 50, the grade is F. Source Codes and Print Screen of the Output