Based on the Program Q3 source code, modify the program by using the while loop. Program Q3 1. Winclude 2. using namespace std; 3. int main() 4. 5. char select; 6. 7. dol a. cout<<"\nHi, this is test 1."; 19. cout<<"\n\nDo you want to display above line 10. again? (Y or N): "; 11. cin>>select; 12. Jwhile(select 'Y' || select "y'); %!! 13. 14. cout<<"\n\nThank You! \n"; 15. 16. return e; 17.
Q: Why is it that when a binary digital computer does floating-point arithmetic, the output always…
A: INTRODUCTION: Arithmetic in floating points: The addition of two decimal values written in…
Q: What are the four TCP/IP layers, and how are they related?
A: INTRODUCTION: Here we need to tell the 4 types of TCP/IP layers, and how are they related.
Q: Microsoft was working on an RDBS File System named WinFS at one point. What would the advantages of…
A: About:- WinFS stands for window future storage,and owned by Microsoft. The idea behind WinFS to…
Q: To what extent do cohesion and coupling vary when it comes to software development?
A: The complexity of the interface, which is where the passage or reference to the module is formed,…
Q: Are you familiar with the theories of Ada Lovelace?
A: Introduction: She not only helped to establish computer science as a subject, but she also launched…
Q: Could you kindly clarify the difference between
A: Solution - In the given question, we have to tell the difference between Harvard and Von Neumann…
Q: Do you know what it means to call something a "personal computer?"
A: In the mid-1960s and into the 1970s, computers occupied entire rooms and were only affordable to…
Q: How do updates work on Linux and Mac OS systems?
A: Introduction How are updates applied to Linux and Mac OS systems
Q: Good day! I am the proud owner of a mall that will soon be built in a town nearby. We plan on adding…
A: Algorithm Declare the variable of character data type. Ask the user to input letter m/M or f/F.…
Q: Justify why it is desirable to have accessors to private types rather than making the types public…
A: Introduction: In a nutshell, an accessor method restricts access to an attribute by allowing users…
Q: Exactly where do computers save their data?
A: let us see the answer:-' Introduction:- All data on storage media, including hard disc drives…
Q: What are the three basic cryptographic operations?
A: Cryptography Cryptography is a data security technique that protects the data by securing it from…
Q: A data file that is electronically sent to the customer's computer when other requested materials…
A: a. a cookie
Q: Assume you are an Android developer who is going to create an Android application that will work on…
A: Layout in Android: The structure of a user interface in your app, such as an activity, is defined…
Q: All of the quality attribute-specific criteria are justified in light of your proposed architecture.
A: The qualifying of the functional requirements is defined as the qualification of the quality…
Q: Computer science What is a recoverable schedule?
A: Introduction: Recoverable schedules are those in which transactions commit only after all…
Q: Computer science Discuss the impact of technological change in the business environment.
A: Technological change has impacted almost all the industries including the business environment as…
Q: In the context of interruptions, discuss the significance of MAR and MDR
A: Introduction the above question is about significance of MAR and MDR in the context of interruptions…
Q: When establishing PPP authentication, you have the option of using PAP or CHAP. Which of these is…
A: Intro When configuring PPP authentication, you have the option of selecting either PAP or CHAP.…
Q: In software design and development, what is the relationship between cohesion and coupling in terms…
A: Software : A software designer is in charge of problem-solving and software solution planning. After…
Q: scuss a monetization model that would work for the ap
A: A monetization model that would work for the app.
Q: What is the scope of cybercrime and what are its limitations?
A: Introduction: Cyber crime encompasses any criminal activities carried out through the use of various…
Q: What exactly is the AutoSizeColumnsMode property?
A: Introduction: The DataGridView control creates a data-display table that may be customized. What…
Q: What are the similarities and differences between databases and ISS? What impact does it have on…
A: Introduction: Habitation, the Crew Health Care System (CHeCS), Extravehicular Activity (EVA), the…
Q: Answer the following for the business rule. "Each player may play on more than one team, and each…
A: We need to answer the questions based on database.
Q: Computer science Why are process management and project management necessary?
A: Introduction Why are process management and project management necessary?
Q: Define the phrase "composition" (Aggregation).Define the phrase "composition" (Aggregation).
A: Aggregation: The aggregation relationship is also known as the “has-a” relationship. The…
Q: What are the various memory technologies?
A: Intro Memory refers to the procedures that are utilized to acquire, store, retain, and retrieve…
Q: kes you think that a web server is the b
A: Below Best web server which is best as comparison to other.
Q: Do you know how computers are now used?
A: Introduction: It generally takes a specified raw kind of data as an input, and then the computer…
Q: Consider the five moral dimensions of information systems.
A: The dimensions of information systems include organizations, management and information technology.
Q: You join the ACME Company as a project manager to assist establish an agile Scrum methodology. Agile…
A: Model iterative: Agile approach is a process that emphasizes continuous development and testing…
Q: What is the relationship between a data communications protocol and a data communications standard?
A: Introduction: A communication protocol is a set of rules that enables two or more entities in a…
Q: What does each component of TCP/IP do?
A: Transmission Control Protocol/Internet Protocol (TCP/IP): TCP/IP, or Transmission Control…
Q: Who invented the first 3D printer, and when did it appear? It was the year of 2000.
A: Introduction: 3D printers can create three-dimensional objects such as machine components. 3D…
Q: What is a computer's way of storing information?
A: Given To know about the computer's way of storing information
Q: 3. Draw the binary heap in its tree form from its array form: 0 1 2 3 4 5 6 7 9 10 11 12 8 2 3 4 9|…
A: Below is the answer to above query. I hope this will be helpful.
Q: In this video, we'll talk about intents and how they're used in Android development. In your…
A: The purpose of intents in an Android application: An intent is a kind of object that is capable of…
Q: What is the difference between the OSI and TCP/IP models?
A: OSI stands for Open system Interconnection. It is a conceptual model which consists of seven layers…
Q: What exactly do you mean by "data abstraction"? Explain three different degrees of data abstraction.
A: Introduction: Data abstraction is the process of reducing a specific body of data to a simplified…
Q: What exactly is the locality of reference, and how does it aid in memory access efficiency?
A: Locality of reference The locality of reference is the tendency of the program to access the same…
Q: computer science -What does it signify when a module's export is opaque?
A: Introduction: The term "invisible/opaque export from module" refers to the process of exporting the…
Q: What features does the WebLogic server offer?
A: Ans: Features of Web logic server is: 1) It gives you the multitenancy support as this will be…
Q: Explain why scanning the User Datagram Protocol (UDP) is more difficult than scanning the…
A: SQLiteOpenHelper: When it comes to managing database activity, Android has a built-in assist class.…
Q: Write the T-SQL scripts for the following tasks: Write a query to select the count of employees…
A: SELECT COUNT(*)FROM employees_tableWHERE department = "Marketing";
Q: a) Solve the linear system below using Gauss Elimination and determine whether the solution is…
A: here we have given the solution using gauss elimination method. you can solution in step 2
Q: When employing the hill cypher "How does the receiver recover the original message when they get…
A: Intro We want to know how to get back the original message that is encrypted using the Hill cipher.
Q: Given any Tc, Pc and w, your computer program needs to be able to return a ploted PV and PH diagram…
A: Hey there, I am writing the required solution based on the above given question. Please do find the…
Q: What exactly is a foreign key?
A: Intro Foreign keys are columns or groups of columns in a relational database table that serve as a…
Q: You notice that your laptop's battery is running low while you're using it. An error notice appears…
A: Explanation: It is possible that the internal circuit of the power adapter has been short-circuited…
C++
Step by step
Solved in 3 steps with 2 images
- Hi, i have a problem with this code, which is it only takes the last scores entered by the user when i want to take all the scores of each student and do the avrage calculation and display them like the output ill post with the question. The code: #include <iostream>#include <string>using namespace std; void readStudentInfo (string [],int,double[]); void calcAvg (double[],int); char getGrade (char[],int, double); void printResults(string[],double[],double[],int); void line(){ cout << "--------------------------------";} const int N=2; // Number of studentsconst int S=5; // Number of tests int main(){ string StName[N]; double StScore[S]; printResults(StName,StScore,StScore,N); } void readStudentInfo(string names[],int students,double Average[],double Score[]){ for (int i=0; i<students;i++) { cout << "Please enter student name (" << i+1 << "): "; getline(cin, names[i]); cout << "\n";…I'm getting an error message where the FindText() is returning 0 instead of the proper amount of parameters. Here is the code #include <iostream> #include <string> using namespace std; char print_menu(string); int GetNumOfNonWSCharacters(string); int GetNumOfWords(string); void ReplaceExclamation(string&); void ShortenSpace(string&); int FindText(string, string); int main() { char opt; string tx, ph; cout << "Enter a sample text:\n\n"; getline(cin, tx); cout << "You entered: " << tx; do { opt = print_menu(tx); } while (opt == 'Q' || 'q'); // system("pause"); return 0; } char print_menu(string tx) { char ch1; string ph; cout << "\n\nMENU\n"; cout << "c - Number of non-whitespace characters\nw - Number of words\nf - Find text\nr - Replace all !'s\ns - Shorten spaces\nq - Quit"; cout << "\n\nChoose an option:\n"; cin >> ch1; switch (ch1) { case 'q': case 'Q': exit(0); case 'c': case 'C': cout << "\nNumber of…Hello, I have an assignment in the python program. Professor gives me a text like this: January.txt 217283921200.5619.18,29.15,78.75,212.10100,20,410.29 The first line is an account number, the second line is the beginning balance, the third line is withdrawn and the last line is deposits. How can I separate every single line to read them. Can I use the loop function? Below is the assignment direction. Thank you very much ___________________________________________________________ Complete the following program: a) Read in and store the data from the file called “January.txt”. This file includes the customer’s account number, beginning balance, withdrawals, and deposits. (In that order) Note: Make sure you look at the file before you begin the project! b) Prompt the user for his/her name and age. c) Convert the customer’s name to a username that consists of the first letter of the first name, the first 5 digits of last name, and the customer’s age.(All letters should be lowercase)…
- The program is missing the ability to test for all 25 shifts as stated in the program requirements, the program isn't able to run with a error with the code also please fix this. #include<iostream> #include<stdio.h> #include<string.h> #include<conio.h> using namespace std; class Substition// Substitution cipher class { char str[500]; public : void sgetstring(void); //method to get input string and key void senscryption(void); //ecryption method for substitution cipher void sedecryption(void); // decryption method for substitution cipher }; void Substitution : : sgetstring() { int size=500; cout<<"\n Enter the Input String: "; cin.getline(str,size,'\n'); } void Substitution: :sencryption() { int key,i,t1; char c; cout<< "\n Enter Key:"; cin>> key; cout<<"\n Encryption :"; //Encryption for(i=0;i<strlen(str);i++) { c=str[i]; if(c==-1) break; if(isupper(c)) { t1=(int)c - (int) 'A'; t1=(t1+key)%26; t1=t1+(int) 'A'; cout<<…Please i need it ASAP i will give you a thumbs up and thank you! Q7: A. What gets printed from the following program? #include <iostream> using namespace std; void f (int); int main () { f(3); return 0; } void f(int n) { static int x = 1; if (n <=1) return 0; f (n-1); x++; f (n-2); x++; cout << "x = " << x << " n = " << n << endl; return 0; } B. What is the difference between ++a and a++? C. What is a nested loop?In Chapter 4, you created a program that generates a random number, allows a user to guess it, and displays a message indicating whether the guess is too low, too high, or correct. Now, create a modified program called GuessingGame2 in which the user can continue to enter values until the correct guess is made. After the user guesses correctly, display the number of guesses made. Recall that you can generate a random number whose value is at least min and less than max using the following statements: Random ranNumber = new Random(); int randomNumber; randomNumber = ranNumber.Next(min, max);
- Why is this program not working properly? The result is not printed out. Please help. The C code is written below #include <stdio.h>#include <stdlib.h> struct Wstation {int id;double latitude;double longitude;int capacity;char url[100];}; struct Wstation *stations; int read_ws(const char *fname) {FILE *fp = fopen(fname, "r");if (!fp) {printf("not found %s\n", fname);return 0;}int num;fscanf(fp, "%d", &num); stations = malloc(num * sizeof(struct Wstation)); for (int i = 0; i < num; i++) {fscanf(fp, "%d, %lf, %lf, %d, %s", &stations[i].id, &stations[i].latitude, &stations[i].longitude,&stations[i].capacity, stations[i].url);}free(stations);fclose(fp); return num;} int cmp(const void *p1, const void *p2) {struct Wstation s1 = *(struct Wstation *)p1;struct Wstation s2 = *(struct Wstation *)p2;return s1.capacity - s2.capacity;} int main(void) {int N;N = read_ws("./waters-1.txt"); qsort(stations, N, sizeof(struct Wstation), cmp); printf("The stop with the…: Write a java Script program that ask the user to enter a valid test grades, your program******insearted with html file******should calculate the average, display the result on the screen and check the user enter a valid testgrade.• Declare and initialize the necessary variables. • Aske the user to enter the ID. • Display the average using header2. • Use a function to ensure the user enter a valid test grade (0 to 100), otherwise print amessage’ the grade is not valid. • Use a loop to aske the user to enter the test grades, -1 to stop the loop. • Print the output on a table. • Add page title with your id. • Your output should be as the following.please help me make a program using C Programming only about this problem plssS. PLEASE KINDLY EXPLAIN ALSO the logic or algorithm of the c program code because we are tasked to explain it orally in virtual class please... I promise to give helpful rating after. And please copy paste the code and send the screenshot too please.PROBLEM:write A program that will compute for n! (n factorial) which is the product of all numbers from 1 to n. NOTE: C PROGRAMMING ONLY AND USE FOR LOOP ONLY PLEASEEEEEE IM POSTING THIS QUESTION 3RD TIME ALREADY... HUHUHUATTACHED PICTURE IS AN EXAMPLE IN USING FOR LOOP . THAT IS HOW WE SHOULD DO ALSO THE PROBLEM
- What will be the value of AH after executing the following code mov al, 0F3H mov ah, 0F3H mov ecx, 3 shifting : shr al, cl loop shifting shr ah, clWhat is the problem in this source code? #include <iostream> using namespace std; int service1();int service2();int service3();int service4();int service5(); int main(){char cont1;char cont2;char cont3;char cont4;char cont5;while(1){cout << "Do you prefer a Consultation Service?" <<endl;cout << "[y/n] ";cin << cont1;service1();if((cont == 'n') || (cont == 'N')){continue;break;} cout << "Do you prefer a Clinical Laboratory Services?" <<endl;cout << "[y/n] ";cin << cont2;service2();if((cont == 'n') || (cont == 'N')){continue;break;} cout << "Do you prefer a MRI?" <<endl;cout << "[y/n] ";cin << cont3;service3();if((cont == 'n') || (cont == 'N')){continue;break;} cout << "Do you prefer an Emergency Room Service?" <<endl;cout << "[y/n] ";cin << cont4;service4();if((cont == 'n') || (cont == 'N')){continue;break;} cout << "Do you prefer a Consultation Service?" <<endl;cout…Please do in python Use try and except . Create a program that uses a loop to provide a k ? k times table similar to the one below. You do not need to include lines (borders), but try to use the \t keyword or center string method in your string to clean the table up. Input specifications:The input will be an integer such that 0 < k ≤ 10. The try/except is if, for example, you put a letter when you ask for what number you want the multiplication table to go up to normally it would crash (value error) so you would need to have something that stops that and anticipates it Modules allowed: MATH and RANDOMForbidden concepts: arrays/lists (data structures), recursion, custom classesYou do not need to test for inputs beyond what the input specifications specify.