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…// EmployeeBonus2.cpp - This program calculates an employee's yearly bonus. #include <iostream> #include <string> using namespace std; int main() { // Declare and initialize variables. string employeeFirstName; string employeeLastName; double employeeSalary; int employeeRating; double employeeBonus; const double BONUS_1 = .25; const double BONUS_2 = .15; const double BONUS_3 = .10; const double NO_BONUS = 0.00; const int RATING_1 = 1; const int RATING_2 = 2; const int RATING_3 = 3; // This is the work done in the housekeeping() function // Get user input cout << "Enter employee's first name: "; cin >> employeeFirstName; cout << "Enter employee's last name: "; cin >> employeeLastName; cout << "Enter employee's yearly salary: "; cin >> employeeSalary; cout << "Enter employee's performance rating: "; cin >> employeeRating; // This is…C ++ Using the following code: enum GradeLevel { FRESHMAN, SOPHMORE, JUNIOR, SENIOR }; struct Student { string first; string middle; string last; GradeLevel year; float GPA; }; Student A0012; // Student ID A0012 Student A0013; // Student ID A0013 A0012.first = "Bjarne"; A0012.last = "Stroustrup"; A0012.GPA = 3.56; A0013 = A0012; A0012.year = SENIOR; A0013.middle = "C++"; A0013.year = static_cast<GradeLevels>(A0012.year - 2); A0013.GPA = floor(A0012.GPA); // floor() rounds down to whole number A0012.middle = A0013.middle.at(0) + "."; What are the contents of the Student variables after this code has executed? Use the chart provided. Who is Bjarne Stroustrup?
- == include using namespace std; # int main () { int a = 14; do { if( a 15) { a = a + 1; } cout << a <<" "; a = a + 1; } while( a < 16 ); } الجواب: إجابةname formatter on c# create an application that lets the user enter the following pieces of data: • the user’s first name • the user’s middle name • the user’s last name • the user’s preferred title (mr., mrs., ms., dr., etc.) assume the user has entered the following data: • first name: kelly • middle name: jane • last name: smith • title: ms. the application should have buttons that display the user’s name formatted in the following ways: ms. kelly jane smith kelly jane smith kelly smith smith, kelly jane, ms. smith, kelly jane smith, kellyUsernames An online company needs your help to implement a program that verifies the username chosen by a new user. Their rules is described below: Username MUST contain at least 6 characters; Username cannot start with a number; Username can only contain letters or numbers. If valid, the username may be resgistered if it doesn't already exist in the system. You should not use built-in functions to determine the character type such as isnumeric() or islower(). Use the strings given alphabet and numeric to determine if each character is valid. Use the list registered to help you determine if the username is already registered. Don't forget to execute the cell below to use these strings # run this cell to create these variablesalphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'numeric = "0123456789"registered = ["john87", "topmage", "light4ever", "username2"] Write a function nameValidation which receives a String argument name. This function: has name String…
- Usernames An online company needs your help to implement a program that verifies the username chosen by a new user. Their rules is described below: Username MUST contain at least 6 characters; Username cannot start with a number; Username can only contain letters or numbers. If valid, the username may be resgistered if it doesn't already exist in the system. You should not use built-in functions to determine the character type such as isnumeric() or islower(). Use the strings given alphabet and numeric to determine if each character is valid. Use the list registered to help you determine if the username is already registered. Don't forget to execute the cell below to use these strings # run this cell to create these variablesalphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'numeric = "0123456789"registered = ["john87", "topmage", "light4ever", "username2"]Usernames An online company needs your help to implement a program that verifies the username chosen by a new user. Their rules is described below: Username MUST contain at least 6 characters; Username cannot start with a number; Username can only contain letters or numbers. If valid, the username may be resgistered if it doesn't already exist in the system. You should not use built-in functions to determine the character type such as isnumeric() or islower(). Use the strings given alphabet and numeric to determine if each character is valid. Use the list registered to help you determine if the username is already registered. Don't forget to execute the cell below to use these strings # run this cell to create these variablesalphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'numeric = "0123456789"registered = ["john87", "topmage", "light4ever", "username2"] Write a function registerName which receives a String username and it returns a string message. This…// 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; }
- #include #include #include #include using namespace std; int main (){ const double PI = 3.14159265359; return 0; }Fat Percentage Calculator Develop a C# application that allows the user to calculate the fat of his daily food. The user should enter: • The total number of calories for a food item • The number of fat grams in that food item Accordingly, the application will calculate and display: • The number of calories from fat • The percentage of calories that come from fat Additionally, the applications categorizes if the food is considered low fat, normal fat, or high fat as the following rule. If the calories from fat are less than 30% of the total calories of the food, the food is considered low fat. If the calories from fat are between 30% and 40% of the total calories of the food, the food is considered normal fat. If the calories from fat are more than 40% of the total calories of the food, the food is considered high fat. Note: Make sure the number of calories and fat grams are not less than 0. Also, the number of calories from fat cannot be greater than the total number of calories. If…// LeftOrRight.cpp - This program calculates the total number of left-handed and right-handed // students in a class. // Input: L for left-handed; R for right handed; X to quit. // Output: Prints the number of left-handed students and the number of right-handed students. #include <iostream> #include <string> using namespace std; int main() { string leftOrRight = ""; // L or R for one student. int rightTotal = 0; // Number of right-handed students. int leftTotal = 0; // Number of left-handed students. // This is the work done in the housekeeping() function cout << "Enter an L if you are left-handed, a R if you are right-handed or X to quit: "; cin >> leftOrRight; // This is the work done in the detailLoop() function // Write your loop here. // This is the work done in the endOfJob() function // Output number of left or right-handed students. cout << "Number of left-handed students:…