Write a program that prompts the user to input an integer and then outputs both the individual digits of the number and the sum of the digits. For example, the program should: output the individual digits of 3456 as 3 456 and the sum as 18, output the individual digits of 8030 as 8030 and the sum as 11, output the individual digits of 2345526 as 2345526 and the sum as 27, output the individual digits of 4000 as 4000 and the sum as 4, and output the individual digits of -2345 as 23 45 and the sum as 14. Note that you are not allowed to use array.
Q: Which of the following I/O technique is appropriate to use for wireless printer? Select the correct…
A: d.DMA
Q: 7. When running the depth first search, which of the following are possible for the ending time of…
A: Here about DFS:…
Q: Write c program to calculate answer of below expression x²+5x+6 Ask user for value of x…
A: Given: Write c program to calculate answer of below expression x²+5x+6 Ask user for value of x
Q: Please convert below base10 decimal number into base20 number (459)base 10
A: HI THEREI AM ADDING ANSWER BELOWPLEASE GO THROUGH ITTHANK YOU
Q: What exactly is a system of experts? Create a list and provide explanations for each component that…
A: System of knowledge: A computer programme that programmes a person or an organization to reproduce…
Q: Determine the"FUNCTIONS" and the "APPLICATION IN REAL LIFE" of the following: • Barcode Reader…
A: The answer to the following question:-
Q: Resilient, available, and performant applications: what role do regions and availability zones play…
A: Institution: Regions and Availability Zones are fundamental to the AWS Global structure (AZs). AWS…
Q: Which of the following statements are FALSE regarding the process of managing cyber security…
A: Which of the following statements are FALSE regarding the process of managing cyber security…
Q: Describe the present status of artificial intelligence-assisted translation and the benefits it…
A: Artificial intelligence (AI) : AI is already a technological reality for businesses and…
Q: How do the advantages of cloud computing stack up when compared to one another? Cloud computing…
A: Given: Almost twenty years have passed since cloud computing was first made accessible. In spite of…
Q: A user enters a list of positive integers until it enters -1 which marks the end of input and wants…
A: The program is written in C Programming. Check the program screenshot for the correct indentation.…
Q: What role do you think the internet has in the lives of individuals with disabilities? • What…
A: Start: People with disabilities benefit from the internet. They have the following alternatives on…
Q: Which of the following is a local bus? Select the correct response: a. PCI b. QPI c. PCIe d. PQI
A: Introduction: In PC design, a neighborhood bus is a PC bus that associates straightforwardly, or…
Q: Because decrypting end-to-end encryption may be challenging, application proxies could have…
A: Proxy-Based System: Proxy-based systems have a number of security issues.End-to-end security is…
Q: What impact will artificial intelligence (AI) have on the future? What Artificial Intelligence (AI)…
A: Given: We might imagine a more pleasant future for ourselves with artificial intelligence automating…
Q: Which of the following is the best description of purpose of risk management? a. To implement…
A: Find the required answer with explanation given as below :
Q: what are the limitations of live-streaming apps
A: The answer is given in the below step
Q: Q1 Determine the stress of a concrete cube with 150 mm dimension, if the determined stress equal or…
A: Find the required code in VB given as below and output :
Q: Describe the numerous perspectives held by researchers working in the area of software engineering…
A: Given: Software a engineering is a branch of computer science in which software is built, used, and…
Q: What is the "shared responsibility" model's effect on cloud security?
A: Given: A shared accountability paradigm is a way to keep the cloud safe that uses shared…
Q: Why is the internet considered to be one of the peaks of information and communications technology?…
A: It is a crucial means of communicating, debating, and even looking up knowledge from another globe…
Q: What are we trying to accomplish with artificial intelligence in the end? Please provide a synopsis…
A: Artificial intelligence is everywhere in our lives today. Whether it’s our favorite Instagram…
Q: Is it worthwhile to write an essay about the significance of networking in the field of information…
A: The significance of networking in information technology is as follows: Information is the…
Q: Make an algorithm and flowchart of the following problem set. 3. Draw a flowchart that calculates…
A: An flowchart is graphical representation of algorithm.
Q: What exactly are some of the goals of the authentication process? Compare and contrast the…
A: Authentication is used when a server wishes to determine precisely who is accessing its data or…
Q: Q2: Write complete C++ program to read 2*4 array of integer numbers and find the following: a.…
A: Here we have given c++ code for the given task. you can find the program in step 2.
Q: Make an algorithm and flowchart of the following problem set. 2. Draw a flowchart that display the…
A:
Q: What cloud backup options are there? I'd want to know where I can get free internet space.
A: If you have an Apple device, you undoubtedly use an i cloud account to back up your data, images,…
Q: Question 5 a) Timmy just starts to watch a video on YouTube. After 0 seconds, the screen turns off…
A: YT video turn off in θ seconds. Here θ = 14 sec And motion estimation of full, window, logarithmic,…
Q: In the context of information technology, what precisely is meant by the term "document imaging"?
A: Given: In the past, all work in any company or office was done on paper. This has caused a lot of…
Q: In the context of technical writing, what do you see as the most important role that screencasting…
A: Technical writing is the process of drafting technical communication like software, engineering,…
Q: Synaptic weights are w, 1.2, w, -0.4, w, 0.7. Find the given input above (or) below the line ?
A: The answer is
Q: Demonstrate with the help of "Command Prompt" and Display all the files and folders in the directory…
A: The command to list all the files and directories in the current directory you are working on varies…
Q: Because of Facebook's major privacy issue, you have decided to stop using the social media site.…
A: Facebook has faced several security issues. These originate mostly from the organization's revenue…
Q: Write a program that simulates the rolling of two dice. Use rand() to simulate the roll of each die.…
A: Please find the answer below :
Q: Figure 1(e) shows a network of two VLANs that are connected to a router. Both VLANS use the last…
A: Create and name the VLANs. First, the VLANs are created and named, as shown in Example 4-1. VLANs…
Q: Question 3. Show that n³ +4n² + 1 n+3 = O(n*).
A:
Q: that end, what are some of the heuristics that you may use to the design of your system in order to…
A: Design of heuristic having 10 characteristics which is our system better 1: Visualizability of…
Q: Prolog and Structured Query Language (SQL) both provide a context which accepts queries and…
A:
Q: The CPU is linked to a number of I/O devices, any of which might produce an interrupt at any moment.…
A: Introduction: Cypher block chaining is the technique used by DES (Data Encryption Standard). In…
Q: Consider the role of software quality assurance in software development and prepare a short…
A: In the given question the role of quality assurance is exactly that to make sure that the software…
Q: Are the following directed graphs strongly connected or not? Explain why in detail? 3 3 4 A 2 B
A: Answer in step 2
Q: Write c code for printing "Hello Name" Where name will be entered by user
A: HI THEREI AM ADDING ANSWER BELOWPLEASE GO THROUGH ITTHANK YOU
Q: Is it prudent to delegate all technical requirements to software service providers? Why do you…
A: Given: Outsourcing is the process of hiring outside workers to do certain tasks and take on certain…
Q: What are the many inputs and outputs that should be considered throughout the software system design…
A: In the system design process, the software requirement specification document is taken as input…
Q: How are authentication and authorization handled in the cloud?
A: Given: A "cloud provider" is a term that refers to an independent company that offers a platform,…
Q: Recreate the following C program in x86-64 and aarch64 assembly manually: #include typedef struct…
A:
Q: Try to design a sign-up sheet for a learning website. Ask the user for the following information: ●…
A: Name: ___________________________ Preferred Username: ___________________________ Password:…
Q: Simulate the following assembly instructions. Line # Instructions 1 MOV BH,10 2 MOV AL,5 3 ADD AL,BH…
A: Assembly language: Assembly language is a low level programming language. It is used to tell…
Q: Your instructor might want you to organize in groups for this project. This chapter included a few…
A: Being computer science students, we come up with the "OSI layered process" for this presentation.…
In Java program,,,,,,,,,,,
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
- 4. During each summer, John and Jessica grow vegetables in their backyard and buy seeds and fertilizer from a local nursery. The nursery carries different types of vegetable fertilizers in various bag sizes. When buying a particular fertilizer, they want to know the price of the fertilizer per pound and the cost of fertilizing per square foot. The following program prompts the user to enter the size of the fertilizer bag, in pounds, the cost of the bag, and the area, in square feet, that can be covered by the bag. The program should output the desired result. However, the program contains logic errors. Find and correct the logic errors so that the program works properly. // Logic errors. #include #include using namespace std; int main() { double costs double area; double bagsize; cout > bagsize; cout > cost; cout > area; cout << endl; cout << "The cost of the fertilizer per pound is: $" << bagsize / cost << endl; cout << "The cost of fertilizing per square foot is: $" << area / cost << endl; return 0; }The cost of renting a room at a hotel is, say $100.00 per night. For special occasions, such as a wedding or conference, the hotel offers a special discount as follows: If the number of rooms booked at least 10, the discount is 10%; at least 20, the discount is 20%; and at least 30, the discount is 30%. Also if rooms are booked for at least three days, then there is an additional 5% discount. Write a program that prompts the user to enter the cost of renting one room, the number of rooms booked, the number of days the rooms are booked, and the sales tax (as a percent). The program outputs the cost of renting one room, the discount on each room as a percent, the number of rooms booked, the number of days the rooms are booked, the total cost of the rooms, the sales tax, and the total billing amount. Your program must use appropriate named constants to store special values such as various discounts.1. Write a program that lets the user guess whether a randomly generated integer would be even or odd. The program randomly generates an integer and divides it by 2. The integer is even if the remainder is 0, otherwise odd. The program prompts the user to enter a guess and reports whether the guess is correct or incorrect.
- //PROBLEM 1/* This program should play a game with the user asking her to guess a target number (randomly generated integer between 1 and 10). The user gets 3 attempts. If she gets it wrong, the program tells her to go up or down, depending on whether her number was less or more then the target. The output may look like this, for example: ============= Guess the number between 1 and 10 in THREE attempts. Enter your first guess: 4 Nope. Go up. Enter your second guess: 6 Nope. Go down. Enter your third and final guess: 5 You got it! CONGRATULATIONS! ============= or like this: ============= Guess the number between 1 and 10 in THREE attempts. Enter your first guess: 4 Nope. Go up. Enter your second guess: 6 Nope. Go up. Enter your third and final guess: 8 GAME OVER! You lost! The number was 9Task#1: Write a program that asks the user to enter an integer and then displays the number of 1's in the binary representation of that integer. For example, if the user enters 9, then the program should display 2. Task#2: Write a program that asks the user to enter two integers: n1 and n2 and prints the sum of all numbers from n1 to n2. For example, if the user enters n1=3 and n2=7, then the program should display the sum as 25. Task#3: Write a program that asks the user to enter an integer and then display the hexadecimal representation of that integer. all using MIPSPROBLEM: Write a program that prompts the user to input the amount of money that an ATM machine will dispense and then show the breakdown of how many 1000, 500, and 100 peso bill/s are dispensed. The program must display the amount then prompt the user if the transaction will continue or not by choosing between Y (for Yes) and N (for No). If an invalid character is entered, it must display that the user entered an invalid character. The program must also display that the maximum allowable amount is 10,000 and the minimum allowable amount is 100. If the entered amount is greater than 10,000 or less than 100, an error notification must be displayed. Moreover, the entered amount must be exactly divisible by 100. SPECIFICATIONS: - You may only use the codes that we studied under our lectures All lines of codes should have a comment. - Save your cpp file as Surname - PE (Example: Pangaliman - PE.cpp) TEST CASES: If a user inputs an amount less than or equal to 10,000: REMINDER: Maximum…
- PROBLEM:Write a program that prompts the user to input the amount of money that an ATM machine will dispense and then show the breakdown of how many 1000, 500, and 100 peso bill/s are dispensed. The program must display the amount then prompt the user if the transaction will continue or not by choosing between Y (for Yes) and N (for No). If an invalid character is entered, it must display that the user entered an invalid character. The program must also display that the maximum allowable amount is 10,000 and the minimum allowable amount is 100. If the entered amount is greater than 10,000 or less than 100, an error notification must be displayed. Moreover, the entered amount must be exactly divisible by 100. TEST CASES: If a user inputs an amount less than or equal to 10,000: REMINDER: Maximum amount must only be 10,000 and the minimum amount must not be less than 100 Enter Amount to dispense: 4900The Amount of money you entered is 4900.Do you want to continue your transaction?Enter…Given an airplane’s acceleration a and take-off speed v, you can compute the minimum runway length needed for an airplane to take off using the following formula: length = v2/2a Write a program that prompts the user to enter v in meters/second (m/s) and the acceleration a in meters/second squared and displays the minimum runway length.Problem 5: Write a program which calculates and prints the monthly paycheck for an employee. The net salary is calculated after the following deductions and additions: Additions: Housing Allowance: 20% Transportation Allowance: 200 Deducations: Retirement Plan: 5% Health Insurance: 750 AED Your program should prompt the user to input the gross amount. The output should be like this: Gross Amount: 10000.00 ....*.** -500.00 AED - 750.00 AED + 2000.00 AED + 200.00 AED Retirement Plan: Health Insurance: Housing Allowance: Transportation Allowance: ...*** Net Salary: 10950.00 AED
- 1. Write a an algorithm that asks the user to input a positive integer n and counts how many of the squares of the integers from 1 to n end in a 1.2. Write a an algorithm that asks the user to input a positive integer n and counts how many of the squares of the integers from 1 to n end in a 4 and how many end in a 9.A long-distance carrier charges the following rates for telephone calls: Starting Time of Call Rate per minute ($) (**only depends on Starting Time) 00:00 – 06:59 0.10 07:00 – 19:00 0.45 19:01 – 23:59 0.30 Write a program that asks for the starting time and the number of minutes of the call, and displays the charges. The program should ask for the time to be entered as a floating-point number in the form HH.MM. For example, 07:00 hours will be entered as 07.00, and 16:28 hours will be entered as 16.28. Input Validation: The program should not accept times that are greater than 23:59. Also, no number whose last two digits are greater than 59 should be accepted. Assuming num is a floating-point variable, the following expression will give you its fractional part: num – static_cast<int>(num);Problem: A small company needs an interactive program to compute an employee’s paycheck. The payroll clerk will initially input the data, and given the input data, an employee's wage for the week should be displayed on the screen for the payroll check. The data for the employee includes the employee's hourly pay rate and the number of hours worked that week. Wage is equal to the employee's pay rate times the number of hours worked (up to 40 hours). If the employee worked more than 40 hours, wage is equal to the employee's pay rate times 40 hours plus 1½ times the employee's pay rate times the number of hours worked above 40. Instructions: Match the action at the left-side with the correct step number at the right-side (the attached picture). Note that it may be possible to group more than one related actions in the same logical step / process without altering the essence of the algorithm. In the program flow, input and checking of hourly pay rate should come before that of the number…