Instructor: Ms. Ayesha Raana (Lecturer) АСTIVITY-1 Question 1: Write a program in C++ language which take some positive integers from the user and sort them in descending order. Show the final array with proper comments on the output screen. Array size must be of user choice but not less than 3. Program: Output:
Q: 1. Write an Arduino program that globally declares an array of size fifteen. The array data type is…
A: According to the information given :- I used Arduino UNO R3 to test the code it is working fine.
Q: Could you please write in C++ according to instructions and criteria a program for the following:…
A: Let's understand step by step : Here declaring static array 1. Declare an array of integers…
Q: Q3: Write a complete C++ code for creating an array accepts any 10-integer numbers from the user and…
A: Here I have taken input from the user and then stored it in the array. Next, I have iterated over…
Q: Write a function to concatenate the content of two dynamic integer arrays. Your function should…
A: Declare the array globally for concatenation if you don't want to use any of in-built string…
Q: Typedef struct Complex { Double a; Double b; } COMP_t, *COMP;
A: To execute a program written in high level language must be translated into machine understandable…
Q: Question 2: Write a C program do the following: Creates a 1-D character array. Fills the array with…
A: /******************************************************************************…
Q: Write a function that search an item in the array -ubmission (1) data array DWORD 1@h,20h, 30h, 40h,…
A: Answer: I have given answer in the handwritten format.
Q: 3. Write a program C++ which takes 2 arrays of 10 integers each a and b. c is an array with 20…
A: Required:
Q: Q2) Choose the correct answer: 1. Every program in C++ must have more than one main ( ) function. a.…
A: CHOOSE THE CORRECT ANSWER
Q: Assignment 12: Write C++ program, print the square root of an array
A: #include<iostream>#include<math.h>using namespace std;int main(){ int arr1[100],n; float…
Q: C Programming 1.Enter an integer into n 2.Use malloc to dynamically allocate an array of size n,…
A: The above question is solved in step 2 :-
Q: MATCH OUTPUT WITH QUESTION OUTPUT ------------------------------ Write a C++ program to input N…
A: PROGRAM INTRODUCTION: In the main program: Include the required header files. Take the number of…
Q: In C++ which of the following correctly declares an array? a) int array[10]; b) int array; c)…
A: Given, Choices: int array[10]; int array; array{10}; array array[10]; We have to find…
Q: 3. Write a program C++ which takes 2 arrays of 10 integers each a and b. c is an array with 20…
A: the code is an given below :
Q: Write a function definition for a function named getNeighbors to do the following: 1. Accept an…
A: Code : #include<bits/stdc++.h>using namespace std;int *getNeighbors(int arr[],int n,int x){…
Q: write a function named 'get_winer' that has won a game of tic tac toe. The function should first…
A: //stdio.h for input output operations #include <stdio.h> //get_winner function definition int…
Q: Write a program that will arrange the elemens of a 10-integer array in descending order. Again pls…
A: I have given C code to arrange the elements of an array in descending order using Array with…
Q: 9. Write a program that will output all the even numbers found in an array of 20 integers. Display…
A: #include <stdio.h> int main(){ int i; int size = 20; int arr[size]; int evenSum = 0;…
Q: Write a function definition for a function named getLast which does the following: 1) Accepts the…
A: In step 2, you will the C++ code.In step 3, you can see the sample output.
Q: Write a program that will arrange the elemens of a 10-integer array in ascending order.
A: The C program along with the snapshot of code and output is given below:
Q: 4)- Create a C++ program that finds the location, from the list of elements in an array. The program…
A: #include<iostream> using namespace std; //function to find location of the element in array…
Q: please help me make a programing USING C PROGRAMMING LANGUAGE ONLY.......codes must use ARRAY WITH…
A: C code:- // Online C++ compiler to run C++ program online#include <iostream>using namespace…
Q: 6) Write a program that will print the even positioned elements in an array of 10 integers.
A: Given: Write the C Code.
Q: 2. Write a program in C using pointer to take 5 integers in an array named arr and multiply numbers…
A: #include <stdio.h>#include <stdlib.h> int main() { int arr[5], arr1[5]; int *ptr; int…
Q: Written in code C and with clear and concise comments Extend your addition, subtraction,…
A: Code: #include<stdio.h>int main() { float a,b; printf("Please enter the first number:…
Q: VWrite a C++ code segment (NO ROGRAM) that does the following: 1. Declare an array that can hold 500…
A: Code for the problem: #include <iostream>using namespace std; int main(){ char c[500];…
Q: use c language You wish to create a simple educational game for pre-school children to learn number…
A: Use an if else condition to check the user input and then sort the numbers So finally we display the…
Q: a. Write a statement that declares votes to be pointer of type int. b. Write a C++ code that…
A: int *votes;
Q: Question 1: Write a program in C++ language to sorting the 1D array size 8, (descending). Assume the…
A: 1. The array contents are already given. The required C++ code is : #include <iostream> using…
Q: In C++ Please Take number n from user and create an array A of random integers of size n. The size…
A: PROGRAM STRUCTURE: Include the required header files. Start the definition of the function to swap…
Q: Write the main program to create an array of size 10. Create two integer variables called max and…
A: 1. declare array of 10 int 2. declare min and max 3. create function called populate i.…
Q: Write a program that will arrange the elements of a 10-integer array in descending order.
A: Solution :
Q: All coding is done in C++ 1.) Largest/Smallest Array Values Write a program that lets the user…
A: Hi. Let's move on to the code in the next step. I have included comments in the code that will…
Q: names, four Write a single c++ program code that employs * -Uwing: 1- Define a two-dimensional array…
A: Code: #include<iostream>using namespace std; int main(){ int x[3][4]; for (int i = 0; i…
Q: 1.Write a c++ program that identifies the shortest and longest word stored in an array of maximum…
A: Part 1- // C++ program to sort an Array of// Strings according to their…
Q: Help me structure a program in C++ that opens a file for read. Then reads the data in from the file…
A: Program: //included essential header files #include<iostream> #include<fstream>…
Q: Write a Program that will print the even positioned elements in an array of 10 integers
A: The program is written in C Language. Please find the source code and proper explanation in the…
Q: Write a function called checkStock to receive a pointer to the address of the first element of the…
A: #include <iostream>#include <iomanip>using namespace std; int checkStock(int *arr, int…
Q: 3. Write a complete C program that inputs 10 integer numbers from user in an array, then it finds…
A: Declare array and variables Create for loop to take input from user and calculate sum Create one…
Q: 1. Take an Array of 10 integer values (automatically should be converted to ascending order).
A: In the C program, declare the necessary variable in the main function and also mention the array…
Q: 67. In C++ which of the following correctly declares an array? a) int array[10]; b) int array; c)…
A: - We need to choose the correct option among the provided ones for the given question of array in…
Q: Program by using "C LANGUAGE" My student number is 1910206534 My name is ENES MUSA Write a function…
A: Let the program reads a long type value which is the student number from the user then call the…
Q: 6 Write a program that will arrange the elements of a 10-integer array in ascending order.
A: Start Take the 10 input integers Read integers Arrange in ascending order. Print order Stop
Q: please help me make a programing USING C PROGRAMMING LANGUAGE ONLY codes to be used is ARRAY WITH…
A: Here I have created an array with the size 10. Next, I have taken input from the user and then…
Q: 1. Differentiate the following with suitable examples: a) Call by value vs Call by reference b)…
A: As per our guidelines, only 3 sub parts will be answered. So, please repost the remaining questions…
Q: A function in C++ that takes input from the user and stores it in an array #include using…
A: Arrays are a single variable data structure utilized to hold multiple values instead of declaring…
Q: names, four Write a single c++ program code that employs -Uwing: 1- Define a two-dimensional array…
A: Step 1 : Start Step 2 : Define a function getquizMark() which asks the user for the 3 quiz marks and…
Q: Declare two dynamic arrays of length 5. Initialize one of them from user input. Make the second one…
A: Note: we are only allowed to solve one question in one post. I am solving the first on here. To get…
Step by step
Solved in 4 steps with 2 images
- Excel Data Analysis Problem1. Create a spreadsheet in Excel with the following labels and data:2. Apply currency format with 0 decimal places to cells B3:D6.3. Apply bold formating to labels in Row 2 and Column A.4. In cell E2 type Total.5. In cell F2 type Goal.6. In cell G2 type Bonus.7. Merge and Center the contents of cell A1 in A1:G1. Bold the text and increase the fontsize to 16.8. Select cells B2:G2 and center (bold any headings if necessary).9. In cell E3 enter a formula that adds up the sales for the three months. Increase thewidth of column E if necessary. Point to the fill handle of E3 and drag down to E6 tocopy the formula down for each store.10. In cells F3:F6 type 250000, 150000, 200000, & 250000. Apply currency style with 0decimal places and increase the column width if necessary.11. In cell G3 enter an IF function that compares the first quarter total sales for Store 1 to itsgoal and displays 10% of the total sales if the store made or surpassed their goal and 0 ifit…Make 3 unique examples of domain and range in real life scenarios. Please highlight the domain and range in the example. NOTE: SHOULD BE ORIGINAL AND NOT FOUND ON INTERNET. I'LL UPVOTE IF IT IS GOOD.EMP(empno, ename, job@tle, managerno, hiredate, sal, comm, deptno) DEPT(deptno, dname, loc)a) Find Employees along with their Manager name.b) Find the Employees who are working in Smith's departmentc) Find the Employees who get salary more than Allen’s salary.d) Display employees who are geZng maximum salary in each department (without using aggregatefunc@on).
- You have seen this link before, if you already input this data into a spreadsheet you can go back to it and now run some new tests. Go to this link: http://www.shortlist.com/entertainment/books/actor-heights-versus-character-heights (Links to an external site.)Links to an external site.. In SPSS, excel or PsPP (or by hand if you wish) compare the heights between these two groups. Be sure to sure to use the correct t-test (are these independant samples or paired samples?). Report the t statistic and the p value for you calculation and interpret (are these two groups significantly different from each other?Create 3 new users (provide screenshots for each): Name: Thomas Jefferson Username: thomas Password: Monticello Name: Abraham Lincoln Username: abe Password: 4score&7years Name: Benjamin Franklin Username: ben Password: Early2bedEarly2rise b. Create 3 new groups: presidents (members: thomas, abe) continental_congress (members: thomas,ben) us_currency (members: thomas,ben,abe)rick oversees Make Your Own Music, a business specializing in musical instruments such as guitars, drums, and synthesizers. Commission rates for staff are determined by sales at the store, with the following tiered rates: - 11% for sales under $10,000- 13% for sales between $10,000 and $14,999- 15% for sales between $15,000 and $17,999- 17% for sales between $18,000 and $21,999- 19% for sales of $22,000 or more. Employees have the option to withdraw up to $2,500 monthly from future commissions. Shortfalls in commission repayments must be covered by employees. The monthly pay formula is: pay = (sales * commission rate) - advanced pay. rick seeks a program to automate this process. The algorithm: 1. Obtain the monthly sales figure from the salesperson.2. Retrieve the amount of advanced pay taken by the salesperson.3. Determine the appropriate commission rate based on monthly sales.4. Calculate the salesperson's pay using the provided formula. A negative amount indicates repayment owed to…
- CSIT114 A 2B: Read the following description of a “Customer Call Handling” business workflow. Use the software tool UMLet to document the workflow as a UML Activity Diagram, which models all the roles and relevant activities/steps in the workflow. Maximum Software develops and supplies software products to individuals and businesses. As part of its operations, Maximum provides a 1-800 telephone number help desk for clients with questions about software purchased from Maximum. When a call comes in, an operator enquiries the nature of the call. For calls that are not truly help desk functions, the operator redirects the call to another unit of the company (such as order processing or billing). Because many customer questions require in-depth knowledge of a product, help desk consultants are organised by product. The operator directs the call to a consultant skilled on the software that the caller needs help with. Because a consultant is not always immediately available, calls are put…a) What actions or steps in Excel will arrange the given spreadsheet in alphabetical and ascending order of Surname?b) What actions or steps in Excel will produce a list/display of those who had a sales revenue of £138,500 or more in the year?c) Write the Excel function to determine the number of salespersons who had a Sales Total above the given “Average Sales Total”?d) Which type of graph will be suitable for representing the above sales revenue by regions? e) In which column(s) might replication have been used? f) What formula was used to arrive at the Company Sales Total?Build a business model for your startup idea. Download and use the attached business modeling template. Fill in the following tabs: Zen Statement Value Proposition Canvas Lean Canvas Business Model Use this template https://www.google.com/url?q=https://www.google.com/url?q%3Dhttps://docs.google.com/spreadsheets/d/1tB4uULrga0xWA7j0qbHLc7OeQnENnqHpcpShfre6Tok/edit?usp%253Dsharing%26amp;sa%3DD%26amp;source%3Deditors%26amp;ust%3D1638267793223000%26amp;usg%3DAOvVaw1q48l7-WW8VF_PFiOvdRyj&sa=D&source=docs&ust=1638267793248000&usg=AOvVaw3BHU4MqcUH5zgXUvliv2Pt
- Using this Website for solving Draw io https://app.diagrams.net/ the Q Practice Exercise:1. Draw use case diagram of Student’s Interface @ JU Academic System.2. Draw a use case diagram for network users to store and retrieve files from a shareddevice. (Eg. Google Drive, DropBox)3. Draw use case diagram for an online library system. (Eg. Saudi Digital Library SDL) Practice Exercise:1. Draw Class Diagram for Toyota Company. Company deals with two types of Vehicles like Engine, Breaks )قطع غيار( that are Cars and Jeeps. Vehicles have Spare Parts )المركبات( andLights.Technicians(?? ا)لفني?fixthesparepartswhereasEngineerInspect(فحص)the Vehicles.2. Draw a class diagram for a Hotel. Rooms in the hotel are of two types Single-Bed or Double-Bed. Each Room has facilities like AC, Refrigerator, LCD and Iron. Customer has to pay the bill according to Room type to the Cashier.3. Draw a class diagram for a library management system. Library has multiple types of books like course books and general…C1 Using the Least Recently Used (LRU) page replacement algorithm, complete the following page replacements using the reference string given below. Calculate the total number of the page faults. Reference String 0 1 2 3 0 1 4 0 1 2 Frame 1 Frame 2 Frame 3 Page Fault C2 Create an access matrix for the following scenario: Ahmad has the right to read /etc/passwd and view the grades. Mohammed has the right to view the EECS website. Students have the right to share project data and view the EECS website. Instructors have the right to change the grades. Answer: Object Domain C3 Draw the Gantt chart and compute the average turnaround and waiting…Homework-2 The business model of a company or a business organization is how it plans to make a profit or make money. The major business model of Microsoft, for example, is to sell software and software-related services. Similarly, Amazon's business model is retailing, which includes selling third-party products (and its own products) and selling cloud services to individuals and businesses. Netflix's business model is subscription-based where users pay a monthly fee. For this homework assignment, I want you to identify the main business model of a business organization (if a business is making money through different. sources, then consider the main source of revenue). For example, although Amazon is a well-known retailer and most of us may have a perception that its main source of revenue is selling through its website, AWS (or Amazon Web Services) is its main source of revenue (and not retailing). After identifying the business model or how a business makes money, you need to…