C Programming (loops)
Q: Explain the types of programs.
A: Types of programs There are mainly three types of programs which include system, application and…
Q: main parts of computer
A: Question: Main parts of computer
Q: Using python program
A: Python code
Q: c++ program code
A: SUMMARY: -Databases are being used in every aspect of our lives right now. Trillions of bytes of…
Q: algorithms, pseudocode and flowchart of arithmetic formula
A: assume the arithmetic formula step 1: find the first and last term sn =2a + ( n - 1) d sn = nth…
Q: Concepts in practice: C and Assembly Language, Arithmetic of Real Numbers in Assembly Language.
A: Code: #include <stdio.h>main(){ float fh,cl; int choice; printf("\n1: Convert…
Q: Explain how a program is executed by a processor.
A: Required: Explain how a program is executed by a processor. Required Answer has been provided in…
Q: Computer architecture explained
A: Introduction: A system's architecture refers to its structure in terms of the system's individually…
Q: M1
A: Solution:-
Q: Python coding
A: We need to tell about python coding language.
Q: instruction
A: Given :- In the above question, it is given that the register r10 has been loaded with the address…
Q: Define softwares and hardwares
A: In this answer I will be discussing about Softwares and Hardwares.
Q: Use C# User interface programing
A: In C# I am going to create a simple GUI for the windows forms. Most of the GUI programming in…
Q: information on the operation of a computer
A: An electrical machine that processes data/information is referred to as a computer.It takes raw data…
Q: python
A: write a python program to compute the average value mean
Q: C++ program
A: The C++ program for disease data using pointer is as follows. The below program contains: Text file…
Q: Explain different types of computers.
A: Types of computer: There are four different types of computers which is classified according to the…
Q: C++ program Choose the correct answer
A: The loop iteration expression is x*=2 which is equivalent to x=x*2 The for loop executes six…
Q: Using C++ program
A: C++ code: #include <iostream>#include <time.h>using namespace std; int main() { int…
Q: C++ Program
A: Required:
Q: G-Codes programming process
A: G-Code Programming process The goal of every G-code program is to produce parts in the safest and…
Q: "ΚΑΝΤΑΝ ΚΑ (ΚΤA)"
A: In the given problem the tax has to be calculated on the car. And if after growth happens the tax…
Q: memory
A: Introduction Memory unit fast and volatile programs must be stored in the memory while they are…
Q: C programming language
A: C code: #include <stdio.h>#include <string.h> //function prototypevoid…
Q: Using C language only
A: Coded using C language.
Q: Using c++ language
A: #include <cstddef>#include <iostream>#include <iterator>#include <utility>…
Q: Differentiate between Software Design and Architecture.
A: The Answer is in step2
Q: Explain graphics processing unit.
A: Graphics processing unit (GPU): - It is a single-chip processor mostly used for handling and…
Q: assembly program
A: ANSWER:
Q: Briefly explain microcode interpreter
A: Microcode: All the operations which are performed by the processor are stored in the memory in the…
Q: C++ prog
A: Q
Q: C program
A: Coded using C language.
Q: plain Software E
A: Bonnie and her colleague Clyde work for the fictitious company Software-R-Us as software project…
Q: Co compiler
A: Given :- A statement is mention in the above given question Need to write the correct term for the…
Q: Program Counter
A: ANSWER: A program counter is a register in the CPU containing the location of the following guidance…
Q: There are different types of machine code.
A: Introduction: The fundamental language of computers is machine code, sometimes known as machine…
Q: Advantage of computer in dispensing
A: The computers are very useful for the pharmacy industry, It is very useful for drug design, storage…
Q: Explain the methods to improve the performance of computer
A: Performance of a computer is the main thing which a user relies upon.
Q: e code in assembly language
A: Given :- In the above given question, the statement is mention in the above given question Need…
Q: Use Python language
A: As per the requirement program is developed. Algorithm: Step 1: Write the main method Step 2: Call…
Q: Using C language
A: PROGRAM: #include <stdio.h>int main(){ char a[50],b[25]; int n,i,c=0,l1=0,l2;…
Q: Define “administrative” section of the computer
A: Lets see the solution in the next steps
Q: Computer science What is the most common unit for measuring the speed of a computer clock?
A: Introduction: A computer clock's speed is measured in this unit. Processor performance is measured…
Q: C program:
A: Given :- In the above question, the C code is mention in the above given question Need to specify…
Q: c program
A: I have answered this question in step 2.
Q: Assembly program
A: Given : - A range is given from 150 to 250 and a multiplier 5 as well Need to write the MIPS…
Q: Describe different types of computer.
A: To be determine: Describe different types of computer.
Q: C Program to convert Celsius to Fahrenheit
A: A program in C Language for Converting the temperature in Fahrenheit from Celsius is needed for this…
Step by step
Solved in 2 steps
- Ask for a letter (whether lowercase or uppercase) then display a name that starts with the entered letter. If a number is entered, it must display a message that only letters (A- J, a-j) are allowed. The program will keep asking for a letter until 0 (zero) is pressed. Enter a letter (0 to end program): a Aubrey Enter a letter (0 to end program): 5 Please enter a valid letter (A-Z, a-z). Enter a letter (0 to end program): A Aubrey Enter a letter (0 to end program): 0 e.g. ByeQ: Write a program which reads two integer values. If the first is less than the second, print the message up. If the second is less than the first, print the message down If the numbers are equal, print the message equal. (Visual Basic)A year is a leap year if it is divisible by 4 unless it is a century year (divisible by 100) that is not divisibleby 400. (1800 and 1900 are not leap years while 1600 and 2000 are.) Write aPython program that asks the user to enter the year and then displays a message telling whether theyear is a leap year.
- (Geometry: point in a circle?) Write a program that prompts the user to enter apoint (x, y) and checks whether the point is within the circle centered at (0, 0) withradius 10. For example, (4, 5) is inside the circle and (9, 9) is outside the circle, asshown in Figure 3.7a.(Hint: A point is in the circle if its distance to (0, 0) is less than or equal to 10.The formula for computing the distance is 2(x2 - x1)2 + (y2 - y1)2. Test yourprogram to cover all cases.) Two sample runs are shown below: Enter a point with two coordinates: 4 5Point (4.0, 5.0) is in the circleEnter a point with two coordinates: 9 9Point (9.0, 9.0) is not in the circleIn Python Code on Visual Code. The Coffee vending machine provides coffee in three sizes: small (9oz), medium (12oz), and large (15oz).Write a program to determine the drink size based on the letter the user enters. Print a message to the user giving the various drink size options and then prompt the user for the drink size. The user can enter an ‘s’ or‘S’ for small, an ‘m’ or ‘M’ for medium, and an ‘l’ or ‘L’ for large. Depending on which size the user requests, print a message such as: “You have ordered a (small, medium, large) drink.” In addition to displaying the size ordered, also record a price multiplier. The price multiplier for a small is 1, for a medium is 2, and for a large is3. If the user does not enter a valid character, print an error message (such as “Error: Invalid drink size”) and exit the program. You should use if-then-else statements for this problem. After the if-then-else statements, print the value of the price multiplier to ensure that the correct value was…Write a program that asks the user for a number in the range of 1 through 7. The programshould display the corresponding day of the week, where 1 = Monday, 2 = Tuesday, 3 =Wednesday, 4 = Thursday, 5 = Friday, 6 = Saturday, and 7 = Sunday. The program shoulddisplay an error message if the user enters a number that is outside the range of 1 through 7
- Pretend that you have just opened a new savings account that earns 4 percent interest per year. The interest that you earn is paid at the end of the year and is added to the balance of the savings account. Write a program that begins by reading the amount of money deposited into the account from the user.Then your program should compute and display the amount in the savings account after 1, 2, and 3years. Display each amount so that it is rounded to 2 decimal places.Suppose a right triangle is placed in a plane as shown below. The right-angle point is at (0, 0), and the other two points are at (200, 0), and (0, 100). Write a program that prompts the user to enter a point with x- and y-coordinates and determines whether the point is inside the triangle.Using Raptor program Scientists measure an object’s mass in kilograms and its weight in newtons. If you know the amount of mass of an object in kilograms, you can calculate its weight in newtons with the following formula:weight 5 mass 3 9.8Write a program that asks the user to enter an object’s mass, then calculates its weight. If the object weighs more than 500 newtons, display a message indicating that it is too heavy. If the object weighs less than 100 newtons, display a message indicating that it is too light.
- write a program to display fruit sales receipts. Apple: Pink Lady - $4.99/kilo, Fuji - $5.99/kilo. Orange: Hamlin - $2.99/kilo, Moro - $3.99/kilo. The program must use if-else statements and string format. The program must work exactly like the following examples. Each column occupies 15 spaces and is in the right alignment.Please take screenshots of the stops. (Science: calculating energy) Write a program that calculates the energy needed to heat water from an initial temperature to a final temperature. Your program should prompt the user to enter the amount of water in kilograms and the initial and final temperatures of the water. The formula to compute the energy is Q = M * (finalTemperature – initialTemperature) * 4184 where M is the weight of water in kilograms, temperatures are in degrees Celsius, and energy Q is measured in joules.A county collects property taxes on the assessed value of property, which is 60 percentof its actual value. For example, if a house is valued at $158,000.00 its assessed valueis $94,800. This is the amount the homeowner pays tax on. If the tax rate is $2.64 foreach $100.00 of assessed value, the annual property tax for this house would be$2502.72.Write a program that asks the user for the actual value of a piece of property and thecurrent tax rate for each $100.00 of assessed value. The program should then calculateand display how much annual property tax the homeowner will be charged for his or herproperty. The program should also display the Property Value, the Assessed Value, andthe Tax Rate. Display all monetary values to two decimal places Run your program three times with the data below Property Value: Tax Rate$100,000.00 2.64$200,000.00 2.05$350,000.00 3.10