Prompt the user to enter a course number such as MA122 (assume it is always 5 characters long). Verify that the first 2 characters are letters. Verify the last 3 characters are digits. If it is correct, print proper format. Otherwise, print invalid format
Q: 2. Write a while loop fragment that calculates the following values (write with pseudocodes): a. Sum...
A: Pseudocode: START INPUT n INITIALISE i = 1, sum = 0 WHILE i <= n sum = sum + i i = i + 1 END...
Q: Discuss software maintenance techniques with examples
A: let's see the solution
Q: How does a computer save the following information? picture, audio, video, and word document?
A: All of this is stored on computers in digital format, which is understandable by machine alone in co...
Q: Why do we care about intellectual property?
A: Introduction: Here we are required to explain why we do we care about intellectual property.
Q: Write a C program using cin and cout that input and output name, address, and age to an appropriate ...
A: Flowchart: Pseudo Code: Begin struct emp{ string name; string address; int a...
Q: Using Math.pow() to raise x to the mth power, and using a loop, write a method that computes the fol...
A: Start Accept base and power value. call the method to compute the series. Method series Assign res...
Q: Write a function that takes two numbers as parameters and returns their LCM. solve it in C++
A: The C++ code for given question in step-2.
Q: For FLASH memory, what would you say: a. Which memory type is it similar to: EPROM or ROM or RAM in ...
A: Below is the answer to above both parts. I hope this will meet your requirements...
Q: What are the requirements for CPU scheduling? Explain in detail 2 in terms of the optimization issue...
A: CPU Scheduling When a processor switches between one state to another state, the processor will be ...
Q: #include #include using namespace std; int main(int argc, char const *argv[]) { char s1[6] "Hello"...
A: Let's see the output below
Q: The distance from earth to a distant planet is approximately 9 x 10^10 m. What is the channel utiliz...
A: Answer the above questions are as follows:
Q: What is the distinction between computer science and software engineering, as well as computer scien...
A: computer science Vs software engineering Vs computer science engineering
Q: Computer science What exactly are whole disc encryption (WDE) solutions, and when should they be us...
A: Introduction: Whole Disk Encryption (WDE) solutions are the most essential in the realm of computer ...
Q: What is a device driver, and how does it work
A: Driver for a device A device driver is a computer application that is used to run or control a certa...
Q: alks about storing your files in the Cloud so they are available to you wherever you have Internet a...
A: Hey there, I am writing the required solution for the above stated question.
Q: What effects do interrupt handling mechanisms have on machine performance?
A: Introduction: The interrupt management procedures that have an impact on machine performance will be...
Q: Before moving on, it is necessary to understand the firewall's role in network security and protecti...
A: Introduction: In response to the question, we must explain the importance of network scanning and as...
Q: what is a cloud computing and who it is work and what are the advantages and disadvantages using it?
A: INTRODUCTION: Simply described, cloud computing is the supply of computer services via the Internet...
Q: Which sensors are supported by MIT App Inventor? Is MIT App Inventor capable of interacting with any...
A: MIT App Inventor It basically lets the developer to develop the applications for Android phones usin...
Q: 3 Linker Assigned Symbol Strength · The C-code below is one file, symbol.c. For each of the 10 symbo...
A: Below is the answer to above question. I hope this will be helpful for you...
Q: Explain the many technologies that allow users to communicate large amounts of data across any netwo...
A: • File transfer protocol enables users to send and receive files over the Internet. • By using Pee...
Q: Explain how the TCP/IP and OSI models are utilised in the communication process to enable standardis...
A: The TCP/IP model and OSI model are used to facilitate standardization in the communication process -
Q: What are the differences between ROM and RAM?
A: Introduction: ROM vs. RAM: What's the Difference? Read-Only Memory (ROM) is a kind of memory that c...
Q: Given data : Water content%3D0.02 Weight of water%-D40 g Find weight of dry soil
A: Ans: Given data : Water content (w) = 0.02 weight of water(Ww) = 40g weight of dry soil (Ws)= ? Wa...
Q: What are the benefits of incorporating information technology into the classroom? What impact does I...
A: Intro There are several compelling reasons to pursue a career in academia: 1. Teaching: There are ...
Q: Explain why synchronization is necessary in the following situation: You have modeled a bank as an a...
A: Introduction: Synchronization is the process of managing multiple thread requests for resource acces...
Q: Why is sociological research necessary, and how does it challenge our commonsense beliefs about pres...
A: let's see the solution
Q: Do x86 processors use the same assembly language as older computer systems like the Vax or Motorola ...
A:
Q: What is the virtual key symbol for the Left Menu on the keyboard
A: Introduction: Virtual keys are not physically present on the keyboard but represent the mapping of t...
Q: E B F.
A: Here, we are going to find out the shortest path from B to G using Dijkstra's shortest path algorith...
Q: use matlab optimset to create a table for fminbnd of f(x)=cos(3x)+sin(10x) from .4 to .7 quick upvo...
A: Task : Value of x range = 0.4 to 0.7 Function : f(x)=cos(3x)+sin(10x) Create table for fminbnd.
Q: A small research company in Pittsburgh is working to develop a new method of mass storage to replace...
A: The answer is as follows:-
Q: Examine how mobile phone usage has changed over time and how it relates to invention, innovation, an...
A: Social changes are the transformation of culture and social thoughts throughout time, by the collect...
Q: Demonstrate how to search a sequential access file in C Sharp. Demonstrate using snippet codes and w...
A: Introduction: The reading or writing of data records in consecutive order, that is, one record after...
Q: What is the difference between a final, static, public, and private keyword?
A: Introduction: PERSONAL KEYWORD - The private keyword is essentially an access modifier.The private k...
Q: Computer science Make a list of the different sorts of threats that message authentication prevents...
A: Introduction: Make a list of the different sorts of threats that message authentication prevents. Th...
Q: What exactly do you mean by markup language? Discuss at least two different types of markup language...
A: Introduction: Markup languages utilise tags to specify elements in documents.
Q: In a database system that supports a data warehouse, why is column-oriented storage possibly advanta...
A: According to the information given:- We have to describe database system that supports a data wareho...
Q: Determine the critical components of a computer information system. What exactly is a mission-critic...
A: Intro Determine the critical components of a computer information system. What exactly is a mission-...
Q: How may a literature review be used to develop an information system's phase-by-phase strategy?
A: Literature reviews are crucial as a foundation for all types of research. They may serve as a basis ...
Q: Give two examples of typical fingerprinting algorithms.
A: Introduction Fingerprinting Algorithms: An arbitrarily large data object (for example, a computer ...
Q: 3. Consider the following graph for question a and b. B E (a) What is the highest-cost path for find...
A: Given graph contains 7 vertices that includes: S, A, B, C, D, E and G. There are edges between the n...
Q: Build or Prototype an arduino-based solution for: the need to determine the soil temperature Program...
A: The Soil Moisture Sensor measures soil moisture grace to the changes in electrical conductivity of t...
Q: Unique value proposition for a traveling and booking app
A: Traveling is one of the most rewarding experiences in life. You get to explore new destinations, exp...
Q: What technologies are available for gathering data on a target system? Conduct some internet researc...
A: Introduction Рenetrаtiоn testing, аlsо knоwn аs рen testing, meаns соmрuter seсurities exр...
Q: Explain how a company's database is used in their information systems, using any company as an examp...
A: Organizations use databases to make better data access within the company, stronger relationship bet...
Q: Write a program that computes the following. Use while loop. Define a function as follows: public st...
A: Here I have defined the function addAll(). In this function, I have used a while loop till the value...
Q: Attacks by ARP ARP spoofing and ARP poisoning attacks are included. Things to talk about a) How the ...
A: INTRODUCTION: Here we need to discuss about ARP attack.
Q: One of the most crucial elements to consider while installing new software is the hardware.
A: Intro Installation of Software Software Installation : The Installation process for software or app...
Q: Why is it necessary to have an identifying value? What will happen if a TCP header does not contain ...
A: Introduction: The Identification Value is the one-of-a-kind value assigned to each packet during tra...
Prompt the user to enter a course number such as MA122 (assume it is always 5 characters long).
- Verify that the first 2 characters are letters.
- Verify the last 3 characters are digits.
- If it is correct, print proper format.
- Otherwise, print invalid format
Your program should prompt the user with the following.
Enter course number:
Below is sample input to test your program.
MA122
Your program should output the following.
Proper Format
Step by step
Solved in 3 steps with 1 images
- (Numerical) Using the srand() and rand() C++ library functions, fill an array of 1000 floating-point numbers with random numbers that have been scaled to the range 1 to 100. Then determine and display the number of random numbers having values between 1 and 50 and the number having values greater than 50. What do you expect the output counts to be?A number "n" is divisible by 11 if the difference between the sum of digits at odd positions of the number and the sum of digits at even positions, is divisible by 11. a. Write a program that takes a positive integer as input and checks whether the number is divisible by 11 by using the divisibility check mentioned above. Do not use either of the division operators ('/' or '%') in your program. b. How many steps/iterations are required for your program in terms of "n" ?The date June 10, 1960 is special because when we write it in the following format, the month times the day equals the year: 6/10/60 Write a program that asks the user to enter any date in the format specified above (month/day/2-digit-year). (It is very important that the input is in the correct format, typed all at once, all on one line, by the user. See the hints below.) The program should then determine whether the month times the day is equal to the year. If so, it should display a message saying the date is magic. Otherwise it should display a message saying the date is not magic. in C++ Do not use any string variables in this assignment. Hints: Read the three data into three separate int variables. Even though the user will be typing only one line of input, you will be using the extraction operator multiple times to read that input. I strongly suggest that you review lesson 2.9 before starting on this assignment. To make your job easier, we will specify that it is still a valid…
- In Python lang. ONE Generate a random number between 1 and 100. That will be the number that the user should guess. Please print the random number. Generate a random number by using the random.randint function Try several times to check that the number produced is random. TWO: 0010 Create a variable and ask the user to input a number. Ask the user to input a number in a variable that will be rewritten every time the user inserts a number and Enforce the rules: Enforce that the input is a digit from 1 to 100. Give feedback to the user if the number needs to meet the rule. Allow the user to input the number again. If the number meets the rules, convert the input [a string] into an integer and evaluate if the guessed number is the same as the randomly generated number FOUR: Evaluate if the randomly generated number is the same that the number input by the user. FIVE: Use the dictionaries that you created for faculty members. Be sure that all the dictionaries have the same keys:…Find the even multiples of any number chosen by the user in a given range the user should specify the multiples of which number they want to print and a minimum and maximum value. The multiples printed should be within the [minimum, maximum] range. For example, if the user chooses the number 7 and would like to print all even multiples in the [15, 60] range, the program should print all the even multiples that are bigger than or equal to 15 (minimum), but smaller than or equal to 60 (maximum). The program should keep a count of how many numbers were printed and should output that count, as well as the numbers. The output then, for the example given, should be 28, 42, 56, and the count should be 3Average acceleration is defined as the change of velocitydivided by the time taken to make the change, as given by the following formula: a =v1 - v0 /t Write a program that prompts the user to enter the starting velocity v0 in meters/second, the ending velocity v1 in meters/second, and the time span t in seconds,then displays the average acceleration. Here is a sample run: Enter v0, v1, and t: 5.5 50.9 4.5The average acceleration is 10.0889
- 1. A software company sells a package that retails for $99. Quantity discounts are given according to the following table. discount Quantity 10-19 20% 20-49 30% 50-99 40% 100 or more 50% Write a program that asks for the number of units sold and computes the total cost of the purchase. Input validation: Make sure the number of units is greater than 0. Sample Output1: How many units were sold? 0 Units sold must be greater than zero. Sample Output2: How many units were sold? 57 The total cost of the purchase is $3385.8Calculating Student Grades Help Professor Navi to calculate the average score and letter grade for his students in CS119. Write a program in Python using only conditional statements and loops(DO NOT USE FUNCTIONS) to : Ask how many students Professor Navi has in his CS119 Your program should loop asking for the following data: Ask the student name Ask for 3 exam scores. Calculate the average score. Using a bunch of IF conditions, the computer should determine the grade and display the grade to the user. Use the following Criteria: If Average is 98-100… Assign the grade “A+” If Average is 95-97.99… Assign the grade “A” If Average is 91-94.99… Assign the grade “A-” If Average is 88-90.99… Assign the grade “B+” If Average is 84-87.99… Assign the grade “B” If Average is 80-83.99… Assign the grade “B-” If Average is 75-79.99… Assign the grade “C+” If Average is 70-74.99 Assign the grade “C” If Average is less than 70 and greater than 60 assign grade “D” If Average is less…type a code that prints the squares of all numbers in range then ask the user for the range (min and max number. the max should be greater than the mean.
- H.W : Write a program that inputs a five-digit number, separates the number into its individual digits and prints the digits separated from one another by each. (Hint: Use the integer division and modulus operators.) For three spaces example, if the user types in 42339 the program should print 4 2 3 3 9.Display the following CALCULATION OF VOLUMES[CHOICE] [SHAPE]1 Cuboid2 Sphere3 Cylinder4 Exit b. The user has to input the choice. Display the appropriate message when the user enters invalid input.c. Based on the choice entered, get the data required from the user and display the volume of the shape chosen.d. The program will loop again start from step 1. The process will only stop when the user enters choice 4 (The program will remain to loop if the enter choice is not 4).e. After the program exit from the loop, display the total_volume and average for all the shapes that has been calculated in the program.f. End the program by giving a closing message to the user.Use Character.isDigit(c) Have the user enter a password. The code loops through each character in the string. Add code in the middle section to count how many digits, uppercase and lowercase characters there are. If they have at least one of each, print that their password is ok, otherwise print that the password is not strong.Your program should prompt the user with the following. Enter Password: Below is sample input to test your program. secret Your program should output the following Not Strong Skeleton: import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.println("Password: "); String password = scan.nextLine(); int upperTotal = 0; int lowerTotal = 0; int digitTotal = 0; for (int i = 0; i < password.length(); ++i) { char c = password.charAt(i); // Code to count what character c is here // Do not…