C. Indicate what each of the following C statements will do: 1. int apple; 2. char banana; 3. float cherry; 4. int grapes [5]; 5. int peach = 21; 6. char y_n, name[13] 7. char class[]="cis 158", fallSpring='s'; 8. return age; 9. apple = 56; 10. ++apple; 11. peach += apple; 12. #define COURSE cis158 13. #include 14. printf("The value of peach is %d\n", peach); 15. scanf("%c", &y_n);
Q: Code to begin with: import numpy as np from scipy.integrate import solve_ivp import…
A: To implement the dynamics function for the system of differential equations, we first define a…
Q: a. What’s the length of this network? b. How many edges are in this network? c. What’s the…
A: The library used in python for social networking is "Networkx". Note: According to our guidelines,…
Q: THis does not work
A: Program Screenshot:
Q: C# programming: A parking garage charges a $2.00 minimum fee to park for up to three hours. The…
A: I hope by app you mean a simple C# program to do the below task We will define a method by name…
Q: So I need help with a peculiar assignment. I have 3 files, "MainClass.java", "Human.java", &…
A: Java is a high-level, class-based, object-oriented programming language that was first released in…
Q: Information is present in the screenshot and below. Based on that need help in solving the code for…
A: The time complexity of the divide and conquer algorithm in Python is usually calculated using the…
Q: Design and develop both depth first and breadth first iterators over the inheritance tree. Design…
A: Detailed solution given in next step:
Q: How many times does the inner loop execute on the first pass through the array while using…
A: Bubble sort is the simplest sorting algorithm that works by repeatedly swapping the adjacent…
Q: The Problem: You're writing a program for multiple platforms. As a result you have a lot of #ifdef…
A: Given code is very difficult to read. The #ifdef directives breakup the logic of the code. so Use…
Q: What should be the first move in the process when it comes to correcting an issue with data…
A: Introduction Data corruption: Data corruption refers to any type of error or damage that occurs to…
Q: Which setting of the Direction flag results in the reverse direction of the index registers across…
A: According to the formation given:- We have to define setting of the Direction flag results in the…
Q: 1. A company wants to outsource their IT network. However, they want to maintain control over their…
A: 1) The correct answer is option b, Amazon VPC. Explanation: Amazon VPC is the correct answer because…
Q: Take the 127-bit binary BCH code with a 6-bit target distance and the 128-bit binary field extension…
A: Bose Chaudhuri Hocquenghem protocols, generally known as BCH protocols, are cyclic error correction…
Q: Provide a summary, using your own words, of the three-sphere model for systems management, and then…
A: Three-sphere system management model: System management's three-sphere model addresses. Technology…
Q: 5. T: R² R2 is a vertical shear transformation that maps e into e, - 2e₂ but leaves the vector e₂…
A: ANSWER 5: The question asks for a vertical shear transformation that maps the standard basis vector…
Q: Just what does "SIP" stand for, and how does it work?
A: The Session Initiation Protocol is known as SIP. Network engineers have consistently distinguished…
Q: How has Moore's law contributed to the development of high-performance computing architectures like…
A: Moore's Law: Computer processing power doubles every two years. The legislation increased processing…
Q: If you could explain the Maple command in detail, what would it do?
A: Maple is a symbolic and numeric computing environment as well as a multi-paradigm programming…
Q: When selecting hardware, what are the top three factors to consider?
A: Requirements analysis is the first step in the hardware/software selection process, followed by a…
Q: Discuss the impact that the coercion rules of a language have on error checking.
A: Find the solution in step 2 of the instructions. The process of coercion may be thought of as an…
Q: Whether or not a CRL has been replaced in the meanwhile, it must be renewed since no new licenses…
A: Certificate Revocation List (CRL) is a document used to maintain the security of a Public Key…
Q: What, in your own words, do you think is the main difference between microcontrollers and…
A: Microprocessor: A microprocessor is a tiny chip that controls a microcomputer. Microprocessors…
Q: What are the most distinguishing features of a Domain-Specific Software Architecture?
A: Domain-specific software architecture is a set of software components utilised for a certain job…
Q: What will the following pseudocode program display? Module main() Declare Integer x = 1 Declare…
A: Call by value:- In this method, a duplicate value is passed from function calling part to function…
Q: The DBA denormalized certain data in the TAL Distributors database to improve speed, and one of the…
A: When the DBA deformalized Premier Products database, one table is Customer(CustomerNum, Customer…
Q: What are the main differences between the two most popular server OSes?
A: OS handles hardware and software. OSIt governs all programme execution and functions as an interface…
Q: In computer parlance, what exactly is a shared object file?
A: A shared object file is an object that is created from one or more moveable objects and associated…
Q: Intrusion Detection Software works how?
A: Intrusion Detection Software (IDS) is a security technology designed to monitor network traffic,…
Q: Can everything and everything be accomplished in cyberspace? The meaning of the physical boundary of…
A: Cyberspace has boundaries. A link between the internet and the physical world has to be formed.…
Q: Which of the following best describes the distinction between an Attack and a Threat?
A: Threat is possible security risk which may or may not damage system. These are the types of threats:…
Q: What does the master boot record include, and why is it so important for it to be present?
A: The master boot record (MBR) is a small section of the hard disk that contains important information…
Q: In C++ please, using basic programming one coding The main menu should show the available…
A: C++ is a cross-platform language that can be used to create high-performance applications, and it…
Q: So I need help with a peculiar assignment. I have 3 files, "MainClass.java", "Human.java", &…
A: In this question we have to complete the JAVA code for the give statement Let's code and hope this…
Q: 1. Which action is the customer's responsibility under the AWS shared responsibility model? a.…
A: Patch management: Under the sahred responsibility model, while customers are in charge of patching…
Q: Provide five suggestions for interface designers based on your understanding of cognitive science.…
A: User interface design mainly focuses on anticipating what users might need to do and ensuring that…
Q: Two of the most crucial components of data management are data storage and data presentation. Using…
A: The solution to the given question is: Data warehousing is an important aspect of data management ,…
Q: What kind of effects does the phrase "Race Condition" have on operating systems?
A: A race condition occurs when two or more processes or threads access shared resources or data in an…
Q: 200 workstations and 4 servers are all linked together in one Network with the use of switches. On…
A: Broadcast storms are increasingly a major issue: They may be controlled by: Local Area Network is…
Q: b) Create a formula in cell E8 that uses the VLOOKUP function with the table array $B$3:$C$5. The…
A: SOLUTION - AverageIF(): =AVERAGEIF($D$8:$D$17,C2,$C$8:$C$17) This function calculates the average of…
Q: How many iterations will the following loop structure execute? loops = 1 userInpt = 10 while(loops…
A: The loop will execute infinitely many times. The condition of the while loop is loops != userInpt,…
Q: X 0 1 yz 00 1 1 4 01 1 0 11 1 0 10 1 0
A: We will write the simplified Sum of Product for the above K-map Let us understand some basics…
Q: Analyze the pros and cons of converting a transfer function from factored to polynomial form using…
A: Introduction: The Symbolic Math Toolbox in MATLAB is a set of symbolic math tools. It enables users…
Q: Is there a way to avoid intrusions?
A: IPS error issue can be problematic, for example, someone can mistype a computer's location and…
Q: Virtual circuits are the smallest ATM unit. How?
A: Virtual circuit is ATM's smallest unit: Answer: Asynchronous Transfer Mode (ATM). For call handoff,…
Q: Match each search method with branching factor b and search depth dwith its big-O bound…
A: Introduction: Breadth-first search (BFS) is a graph traversal algorithm that explores all the…
Q: MINIX Programming Modify the MINIX 3 scheduler to keep track of how much CPU time each user process…
A: MINIX Programming: MINIX is a Unix-like operating system that was initially developed by Professor…
Q: For the dataset, adultsData.csv (in the assignment folder), it is required to analyze the dataset to…
A: Data Loading and Exploration Let's start by loading the dataset and exploring it. We will start by…
Q: What do you mean when you say that the parts of a procedure header that appear inside the brackets…
A: The name of the stored procedure, which must be distinct from other stored procedure and table names…
Q: You would like to provide customers with a confirmation message once they have placed their order.…
A: To create the confirmation message in cell M9, the following formula can be used:
Q: Which of the six phases of the DBLC process does the data dictionary contribute to?
A: According to the information given;- We have to define the six phases of the DBLC process does the…
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- Computer Science C++ Help Write the declaration for a stuct that has the following public data memebers: a string for the name of an insured person, a string for a policy number, floating- point numbers for the insurance amount and premium amount, and an integer for a building type code. Following your struct declaration, write the declaration for stuct varaible and your stuct typestruct date{ int day; int month; int year; }; Write a function named void increaseDay(struct date *d) that increases the value of a variable of struct date type with integer year, month, and day members by one day. Write a function named void decreaseDay(struct date *d) that decreases the value of a variable of struct date type with integer year, month, and day members by one day. Write a C program that reads from the user a date in d/m/y format and the amount of increase or decrease as an integer. Display the new date in d/m/y format. You may call related functions as many as given increase or decrease value. Note 1: You do not need to consider leap years. Use always 28 days for month February. Note 2: Do not modify the function prototypes. Sample Input1: Sample Output1: 12/8/1990 -5 7/8/1990 Sample Input2: Sample Output2: 26/2/2005 5 3/3/2005 Sample Input3: Sample Output3: 29/12/1998 7 5/1/1999…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
- This need to be written in c++ Write a program that: Defines an enum named Classification. The enum Classification will have 2 data values: undergraduate, graduate. Defines an enum named Status. The enum Stutus will have 2 data values: parttime, fulltime. Defines an enum named Residency. The enum Residency will have 2 data values: resident, international. Defines a student name variable. Creates a Classification, Status, and Residency, credit hour, cost per credit hour, and tuition variable. Reads the value of the Classification, Status, and Residency, student name and credit hour variable from the user. If the student is a fulltime undergraduate resident student, tuition is credit hour times 345.00 If the student is a fulltime undergraduate international student, tuition is credit hour times 685.00 If the student is a fulltime graduate resident student, tuition is credit hour times 545.00 If the student is a fulltime graduate international student , tuition is credit hour times…Variable names in C, generically called identifiers, use the underscore character to mash together words to make useful names. This is called snake case. For example, double city_sales_tax = 0.08; int days_in_year_2018 = 365; char superman_letter = ‘s’; char *mothers_maden_name = “Smith”; Another way to do this is to omit the underscore but to capitalize the first letter of each word in the identifier, except for the first word. This is called camel case. For example, double citySalesTax = 0.08; int daysInYear2018 = 365; char supermanLetter = ‘s’; char *mothers_maden_name = “Smith”; These are called naming conventions. In general, you can use either in your programs, BUT you need to constantly use one or the other in your code, and avoid mixing the 2 in the same program. Which one makes the most sense to you, and why?USING C A catalog listing for a textbook consists of the authors’ names, the title, the publisher, and the year ofpublication. Declare a structure type catalog_entry_t and a variable book , and write statements thatstore the relevant data for this textbook in book . I have this code so far but not sure where to go from here #include<stdio.h>#include<string.h> typedef struct{char author_name[50], title[50], publisher[50];int publication;} catalog_entry_t;catalog_entry_t book; strcpy(book.author_name,"Rhett Beeson");strcpy(book.title,"This class is hard");strcpy(book.publisher,"TTU");book.publication=2021
- Lowest Score Drop Write a program that calculates the average of a group of test scores, where the lowest score in the group is dropped. It should use the following functions: void getScore() should ask the user for a test score, store it in a reference parameter variable, and validate it. This function should be called by main once for each of the five scores to be entered. void calcAverage() should calculate and display the average of the four highest scores. This function should be called just once by main and should be passed the five scores. int findLowest() should find and return the lowest of the five scores passed to it. It should be called by calcAverage, which uses the function to determine which of the five scores to drop. Input Validation: Do not accept test scores lower than 0 or higher than 100.c++ (A) write the definition of the Circle class. (B) Write a test program implementing the relational operators (<, <=, ==, ! =, >, >=) to compare the radius of two circle. See the sample outcome Figure 1. in the test program, your code will perform the followings; (A) Creates two circles with the radius 5 and 6 respectively. (B) Use the operator < and display the area of the circle that has the smaller radius. (C) Use the operator == and display the area of the bigger circle if the two circles are not the same. You need to use one of the operators to determine which radius is bigger.C++ code 1 year = 15 months 1 month = 30 days write a function that takes an int parameter that represents the number of days, and converts the number of days to years, months, and days and returns this information in a struct So for example, it will convert 800 days into a struct that represents one year, 11 months, and 20 days
- my_round(number, integer): Based on the built-in round(...) function. Takes an integer or float and returns a rounded float value that is the number rounded to the second argument's decimal place. First argument can be any float or integer. Second argument must be an integer. Examples: my_round(1234.5678, 2) and round(1234.5678, 2) should return 1234.57. my_round(1234.5678, -2) and round(1234.5678, -2) should return 1200.0.Question 1 is already done need help with the others though This is the C code I have so far #include <stdio.h> #include <stdlib.h> struct employees { char name[20]; int ssn[9]; int yearBorn, salary; }; struct employees **emps = new employees()[10]; //Added new statement ---- bartleby // function to read the employee data from the user void readEmployee(struct employees *emp) { printf("Enter name: "); gets(emp->name); printf("Enter ssn: "); for(int i =0; i <9; i++) scanf("%d", &emp->ssn[i]); printf("Enter birth year: "); scanf("%d", &emp->yearBorn); printf("Enter salary: "); scanf("%d", &emp->salary); } // function to create a pointer of employee type struct employees *createEmployee() { // creating the pointer struct employees *emp = malloc(sizeof(struct employees)); // function to read the data readEmployee(emp); // returning the data return emp; } // function to…Code using c++ 2. Solving a Person's Loneliness by CodeChum Admin It's been 1,245 years and our sole Person is getting lonelier each day. This Person definitely needs a partner! Thus, we need to update our Person's design to have a gender as well and there shall be male and female! Instructions: In the code editor, you are provided with the definition of a struct Person. This struct needs an integer value for its age. Furthermore, you are provided with a displayPerson() function which accepts a struct Person as its parameter. Your task is to first update the struct Person so that it can have a gender as well. For this program, we shall represent a gender with a single character: 'M' for male and 'F' for female. Then, create a Person, take in an integer user input and a character user input, and then set them as the Person's age and gender respectively. Finally, call the displayPerson() function and pass that Person you created. Input 1. The age of the Person 2.…