#include #include using namespace std; inData; outData; const float PI = 3.14159265; float radius; float circumference; float area; int main() ("inData.dat"); ("outData.dat"): radius; circumference = radius * 2 radius * radius PI; * PI; area = cout « "For the first circle, the circumference is " < s " « circumference <« " and the area is <« area <« endl; <« radius « " " « circumference << " " « area <« endl; >> radius; circumference = radius 2 area = radius * radius cout <« "For the second circle, the circumference is " <« circumference « " and the area is " << area << endl; « radius << " " « circumference << " " PI: <« area « endl; return 0;
Q: Write a c++ program that contains a “main” and 4 functions: In the main function declare 4 integer ...
A: Program Approach - Include the essential header files. Define the initialize() function to initiali...
Q: Write a program which takes 5 students quizzes in a course. Consider each student has given 10 quizz...
A: Take a 2D array to store the quiz scores. Take 2 variables to iterate the loop. Take a variable to s...
Q: Please answer all the three chossing questions. Thank you in Advance. 22) ___________________An Inli...
A: 22) ___________________An Inline IDS can also terminate or restart other processes on the system. AN...
Q: write a C++ program that calculate the elapsed time to cover a trip of 183.67miles with the average...
A: The given C++ program is given below: Import the essential header. Defining the main method. Declar...
Q: Write an SQL query using the AND operator that show all orders shoppedon April 1, 2009 shipped to th...
A: SQL query: SELECT * FROM Orders WHERE order_date = ‘April 1, 2009’ AND state = ‘Florida’;
Q: C++ Code Please Help Im Confused (1) Prompt the user to enter a string of their choosing. Store the ...
A: Since there are multiple questions and as per our guidelines, we are authorized to answer one questi...
Q: Briefly explain the evolution of the wireless LAN protocols
A: Evaluation of network protocols: - Many IEEE wireless LAN protocols have appeared since the launch ...
Q: 2.a Fill in the function table below. The function volume() calculates the volume of a box (length x...
A: Function table Name Purpose Parameters Result Volume() Takes input values and return...
Q: I really need help understanding this method
A: ReadFile(File f) takes File object as input and returns the double array. The file data is read in a...
Q: How is source data automation used in the commerce and financial institutions
A: Source Data automation: The terms source data automation is the process in which the information i...
Q: The function assigns to each nonnegative integer its last digit. Find the domain and range of this f...
A: Hey, since there are multiple questions posted, we will answer first question. If you want any speci...
Q: Using the law of the big three in c++
A: Program code to implement the class Food and its dynamic data member and another class named cake th...
Q: What is the cardinality of each of these sets? Enter a numerical value. (a) Ø; (b) {Ø); (C) {Ø, {Ø}}...
A: Cardinality of a set: The cardinality of a set is a measure of a set’s size, meaning the number of ...
Q: how do i draw 1-3 from the logic diagram
A:
Q: Could ASN+Host ID be used instead of IP addressing? Why or why not?
A: “Yes”, the user can use Autonomous System Numbers (ASN) and Host ID instead of Internet Protocol (I...
Q: #include<stdio.h>#include<stdlib.h> int cent50=0;int cent20=0;int cent10=0;int cent05=0;...
A: The algorithm to calculate the amount of change returned is given below: - Algorithm: - Step1: Initi...
Q: Define a method printAll() for class PetData that prints output as follows with inputs "Fluffy", 5, ...
A: When we run the given program code, we get the below-given output of code: This program is taking t...
Q: Based on your experiences in databases, select any patient clinic and create a data model.Create an ...
A: Data Model: it defines the logical structure of the database. it introduces abstraction in the datab...
Q: •Write a class, ComputeGCD, which will do the following: –The main method will: •Prompt the user for...
A: Program code: //import the required packages import java.util.Scanner; //define the class GCD publi...
Q: Write a C++ program that prompts the user to enter 10 names each with maximum of 30 characters. Outp...
A: Program code: //include the essential header files#include<iostream>using namespace std; //def...
Q: Object Oriented Programming Answer the following questions to assess your learning for const keyword...
A: No, a constant object cannot call a non-constant member function of the same class.
Q: Use Netbeans to run the following decorator pattern code. Provide screenshot to prove that the code ...
A: The given code cannot be executed as it does not contain "main()" method like "public static void ma...
Q: Create a Student class, include 2 properties: name - String, age - int; 2 constructors: Student(), a...
A: The program defines two variables: name of type String, and age of type int There are two constru...
Q: 51) Which of the following is correct about security and Information Event Management SIEM? a) SIE...
A: SIEM stands for Security information and event management. It is the set of tools and services in th...
Q: C++ Problem 1: (Monte Carlo Experiments) The Monte Carlo method is used in modeling a wide-range of...
A: Program: #include <iostream> #include <ctime> #include <cstdlib> #include <cmat...
Q: Please answer all the three choosing the answer option. Thanks a lot in advance. 10____________is ru...
A: Since multiple questions are posted, we will answer for the first question. If you wan any specific ...
Q: Two-phase commit assures that all sites agree as to whether a given transaction T commits or aborts....
A: In a two-phase commit protocol, there is a fail-stop model. The site which has failed stops working ...
Q: (4) Implement the GetNumOfWords() function. GetNumOfWords() has a constant string as a parameter and...
A: The below given C++ program will obey the following rubrics: Importing essential header files. Decl...
Q: Please only answer part (i) and (ii)
A: This is a shorting algorithm, which is counting the number of elements less than selected value; thi...
Q: Which of the following is not an advantage of choosing a hosted software solution for the new CRM so...
A: CRM : CRM stands for Customer Relationship Management and CRM systems are systems that are used to m...
Q: Write a program that will read in Nintegers from keyboard input into an array. The size of the array...
A: Program code: //include the required header files #include<iostream> #include <bits/stdc++...
Q: As an Engineer with much knowledge in microprocessor interfacing, design a truth table of a perfect ...
A: Explanation: The microprocessor has a large number of the registers. The microprocessor can be thou...
Q: 2. See the code below and solve the following. 2-1.What is/are the dimension(s) of the array m...
A: Since the question contains multiple sub-parts, we will answer first "3" sub-parts. If you want any ...
Q: We are interested in E2E throughput, call it goodput, measured in bps (kbps, mbps, gbps etc). Why mi...
A: Goodput: Goodput is a term used in computer networks that defines the number of useful data delive...
Q: 53) ___________System Restore is available to backup system and application files. Answer : True or ...
A: System restore is a feature by which the system can restore the last backed up data. In other words,...
Q: Object Oriented Programming Answer the f...
A: Answer: “Yes”, one can call a constant member function using non-constant object.
Q: #include<stdio.h>#include<stdlib.h> int cent50=0;int cent20=0;int cent10=0;int cent05=0;...
A: The given c program is to calculate the change. This program prompts the user to enter the value bet...
Q: is "i" undefined?? What can I do to fix this
A: When dealing with loops it is always a good idea to wrap loop content within a pair of braces.When r...
Q: Use the properties and theorems of Boolean Algebra to reduce the following expression to OR-AND expr...
A: Given expression: -
Q: 1. Write a recursive function that takes as a parameter a nonnegative integer and generates the foll...
A: Since you have not mentioned the programming language, so we have answered this question using C++ p...
Q: What is parametric polymorphism in a subprogram, and give an example of how it is used including an ...
A: Parametric polymorphism: Parametric polymorphism refers to a programming language technique, which ...
Q: (java) using a specification of your choice, of an iterator method, decide the rep of the correspond...
A: A class OrderedIntList is chosen for the iterator specification. Class OrderedIntList keeps the elem...
Q: Hello! I am trying to write a code that produces an output as the picture that is highlighted with b...
A: A Java program to complete the given picture is as follows, File name: “Homework.java” public class ...
Q: Write a Python program: Add a comment to say that this program allows conversion to either Fahrenhe...
A: Program: #definition of main method def main(): #declare the required variables fahrenheit = 0...
Q: This is the second in row. Only truth table. (x+y)'+yz'
A: The truth table for the give boolean expression is given below - F = (x+y)'+yz'
Q: 2.c Write a Python program to input from the user the values of length, width, and height. The progr...
A: Program Approach: Define function named volume() with length ,width and height as parameters and i...
Q: C++ A robot is initially located at position (0; 0) in a grid [?5; 5] [?5; 5]. The robot can move ...
A: The below given C++ program will obey the following rubrics: Including necessary header files. Decl...
Q: Your Windows 2016 domain is setup to control security and access. When would you allow users to have...
A:
Q: 8. Write a C++ program to find the sum of all odd integers from 1 to 99, and the sum of their cubes.
A: Program Approach - Include the important header files for the code. Define the main function. Decla...
Q: • RectangleTest class:o Perform the following actions in the main method:▪ Create an object named r1...
A: Program package rectangle; class Rectangle { double length; double width; ...
Fill in the blanks
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 4 images
- 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.In GO language. Create a struct that has student name, id, and GPA. Write functions to create a student, modify the student’s id, and modify the student's GPA, and print the student’s information. (This is like creating a class and methods). Now create an array of three students and test your functions. You may hardcode your values if using a web conpiler. (Please hardcode the values!)PLEASE I NEED 4 AND 5 (iv) Construct an ogive.
- Please continue tthe code below --- #include <stdio.h> struct Employee { // declaring the members of the structure char emp_full_name[30]; int pos; float rate_per_hour; int hour_worked; float deduction; float gross_week_pay; float net_week_pay; }; int main() { struct Employee var; // declare the Employee variable struct Employee *ptr; // create a pointer variable (*ptr) ptr = &var ;// assigning the address of var to pointer type variable return 0; }In C++ struct myGrades { string class; char grade; }; Declare myGrades as an array that can hold 5 sets of data and then set a class string in each position as follows: “Math” “Computers” “Science” “English” “History” and give each class a letter gradeLANGUAGE: C++ This is good practice with classes. You are going to create a race class, and inside that class it has a list of entrants (so a list of entry objects) for that race. To test the program you will make an array of three races (so an array of race objects). Populate each race with time and list of entry objects. Print out the schedule. Create a race class that has The name of the race as a character string, ie “RACE 1” or “RACE 2”, The time of the race An array list of entries for that race Create a race array of 3 (or 4) of those race objects, For the list of entries for a particular race that you need above, make a horse entry class (the building block of your array list) you should have The horse name The jockey name The jockey weight Now you need to Populate the structure (ie set up the three races on the schedule, add 2-3 horses entries to each race. You can hardcode the entries if you want to, rather than getting them from the user, just to save the…
- USE PYTHON PROGRAMMING LANGUAGE(OOP) 1. (Geometry: n-sided regular polygon) An n-sided regular polygon’s sides all have the same length and all of its angles have the same degree (i.e., the polygon is both equilateral and equiangular). Design a class named RegularPolygon that contains: ■ A private int data field named n that defines the number of sides in the polygon. ■ A private float data field named the side that stores the length of the side. ■ A private float data field named x that defines the x-coordinate of the center of the polygon with a default value 0. ■ A private float data field named y that defines the y-coordinate of the center of the polygon with a default value 0. ■ A constructor that creates a regular polygon with the specified n (default 3), side (default 1), x (default 0), and y (default 0). ■ The accessor and mutator methods for all data fields. ■ The method getPerimeter() returns the perimeter of the polygon. ■ The method getArea() returns the area of the…pls debug this pseudocode // A high school is holding a recycling competition,// and this program allows a user to enter a student's // year in school (1 through 4) and number of cans collected// for recycling. Data is entered continuously until the user// enters 9 for the year.// After headings, output is four lines --// one for each school year class.start Declarations num year num cans num SIZE = 4 num QUIT = 9 num collectedArray[SIZE] = 0, 0, 0 string HEAD1 = "Can Recycling Report" string HEAD2 = "Year Cans Collected" output "Enter year of student or ", QUIT, " to quit " input year while year <> QUIT output "Enter number of cans collected " input cans collectedArray[year] = collectedArray[year] + cans output "Enter year of student or ", QUIT, " to quit " input year endwhile output HEAD1 output HEAD2 year = 1 while year < SIZE output year, collectedArray[year] year = year + 1…In C++ Create a class called Student. Each student should have a name and ID number (an int). They should also have a ptr to a dynamic array called Grades. The public methods for Student should be: getName, setName, getID, setID, setGrades, getGrades. In the constructor you should initialize Grades to be an array of size 4 with the values 0 for each position. Make sure that you use THIS properly. Create 2 students, assign one object to another and show that when you assign grades to one it effects the other equally.
- in C#, Visual Basic Write an app for Boston Airlines that allows a customer to reserve a seat on the airline’s only plane (capacity: 10 seats). Radio buttons should allow the choice between First Class and Economy. The app should then assign a seat in the first-class section (seats 1–5) or the economy section (seats 6–10). Use a one-dimensional array of type bool to represent the seating chart of the plane. Initialize all the elements of the array to false to indicate that all the seats are empty. As each seat is assigned, set the corresponding element of the array to true to indicate that the seat is no longer available. Your app should never assign a seat that has already been assigned. When the economy section is full, your app should ask the person if it is acceptable to be placed in the first-class section (and vice versa). If yes, make the appropriate seat assignment. If no, display the message “Next flight leaves in 3 hours."Pseudocode for the student grade calculator program, please Create a program to enter grades and calculate averages and letter grades. Need a class which will contain: Student Name Student Id Student Grades (an array of 3 grades) A constructor that clears the student data (use -1 for unset grades) Get functions for items a, b, and c, average, and letter grade Set functions for items a, n, and c Note that the get and set functions for Student grades need an argument for the grade index. Need another class which will contain: An Array of Students (1 above) A count of number of students in use You need to create a menu interface that allows you to: Add new students Enter test grades Display all the students with their names, ids, test grades, average, and letter grade Exit the program Add comments and use proper indentation. Nice Features: I would like that system to accept a student with no grades, then later add one or more grades, and when all grades are entered, calculate the…T/F The << operator is overloaded to input data items of fundamental types, strings and pointer values