344 Topics
| |
1. Analyze the problem below and make a c++ program to enter on the keyboard the required data for process. Compute the time of flight of a projectile and its height above the ground when it reaches the target. Display all the inputed data and the processed or compute data. … | |
Here is my code: void do_print(int varnum, int *var) { printf("register %c: ", varnum+CH\_A); int i = 0; while(*var>0){ v[i] = *var%10; *var/= 10; i++; } I am trying to store each digits of a number into an array, but when I tried very large number such as 12478783917289471284, the … | |
**Numerologists claim to be able to determine a person's character traits based on the "numeric value" of a name. The value of a name is determined by summing up the values of the letters of the name. For example, the name *Zelle* would have the value 26 + 5 + … | |
Is there a way to know if the lists inside a list contain the same elements with python? For example: Return True if given list [['A', 'B'], ['A', 'B'], ['A', 'B']] or False if given list [['B', 'C'], ['Z', 'C']] | |
A team has two types of players: Batsman, Baller. It is required to assess their performance in a particular tournament and thus find out the best player in each of the categories. The assessment criterion for each type of player is different. For batsman, it is the average of his … | |
It must represent a point in the Cartesian plane | |
Write a return function called averageFourTemperatures that accepts 4 integers in the parameter list, returns the average. In the main function prompt the user for 4 temperatures and them in separate appropriately named variables. Call the averageFourTemperatures, passing values and printing the returned average to the console. | |
Write a program that converts temperature from degrees Fahrenheit to degrees Celsius .The formula is C = (5.0/9.0) (F-32) | |
The purpose of the program is to tell the user that the weekly salary is in on of three ranges, less than 200, between 200 and 800 and greater than 800. I need help knowing the error/s and need to add and use one additional preprocessor directive that might help … | |
.model small .stack 100h .data Spc db 0dh,0ah, " $" ;New Line ;Bases Conversion ConT db 0dh,0ah, " Conversion $" ;Conversion Title ConBs3 db 0dh,0ah, "Base 3 to Base 5 " db 0dh,0ah,0dh,0ah, "Base 3 [00 to 22] : $" ;Enter Base 03 Number EqBs3 db 0dh,0ah, "Base 5 Equivalent … | |
.model small .stack 100h .data Spc db 0dh,0ah, " $" ;New Line ;Bases Calculation in Calculator BsA31 db 0dh,0ah, " Base 03 Addition " ;Addition Base 03 db 0dh,0ah, " " db 0dh,0ah, "Addend[00-22]: $" BsA32 db 0dh,0ah, "Augend[00-22]: $" SumA db 0dh,0ah, " Sum is : $" ;Sum ;Calculation … | |
Write a program in IAS language that calculates the output value of the logical function OR for bits b1 and b2 stored in the data memory, what is the change in the code if we want to calculate AND instead of OR ? | |
Hi everyone, i hope someone can help me with my activity i cant really catch up on my lessons so i hope someone can help me explain each line of this code this language is pascal https://onlinegdb.com/0Z0pIIsen | |
Dog leaves his lamppost on summer evenings and staggers randomly either two steps in the direction toward home or one step in the opposite direction. After taking these steps, the dog again staggers randomly two steps toward home or one step backward and does this again and again. If the … | |
Hello everyone I just have a problem with my code. I just wrote a program that prints the sum of all even numbers (1 to 100) using macros in assembly language but it does not work can any one help me? I am using EMU8086 editor software. **** .MODEL SMALL … | |
Question 1: a) Determine which of the following sets have valid / invalid alphabets: Σ1 = {a, ab, b, d, ae} Σ2 = {a, ba, c, d} b) Consider Σ = {ab, baa, c, db} to find the length of the string s=abbaaabdbbaa by tokenizing. Give its reverse Rev (s). … | |
so i have an assignment for a class to make a pick up sticks game. This is the actual assignment: "The rules of pick up sticks are as follows: The user chooses the number of matchsticks (5 to 50) to place in a pile. Then, the computer chooses who will … | |
![Screenshot_2021-10-02_134648.png](https://static.daniweb.com/attachments/4/fa8e4c345dd089410fa7414ea44ac516.png) | |
#include <iostream> #include <cstdlib> #include <time.h> using namespace std; int main() { srand(static_cast<int>(time(0))); int secret = rand() % 10 + 1; int guess; cout << "Guess a number between 1 and 10." << endl; cin >> guess while (guess != secret) { if (guess < secret) { cout << "Too … | |
Struggle with MARIE Assembly. Needing to write a code that has x=3 and y=5, is x>y then it needs to output 1, if x<y it needs to output one, I have the start but don't know how to do if else statements in MARIE LOAD X SUBT Y SKIPCOND 800 … | |
Can anyone help me please! I want the source code for this program.!! Tomorrow is last date of submitting C++ PROJECT. I want the source code for this program.!! **Airline Reservations System** A small airline has just purchased a computer for its new automated reservations system. You have been asked … | |
The Question A Bank charges $10 per month plus the following cheque fees for a commercial checking account: $ 12 for each fewer than 25 cheques $ 15 each for 26-40 cheques $ 18 each for 41-59 cheques $ 20 each for 60 or more cheques The bank also charge … | |
Write an algorithm to find average of 10 number | |
Create a Client/Server using DatagramSocket and DatagramPacket Programming and using DiffieHellman (1024) as encryption algorithm. | |
Create the following table using SQLite database The basic building block of the system. Book: Every book will have BookID, BookTitle, Author, ISBN, Publishers. Employee : Every Employee will have EmployeeID, EmployeeName, FatherName, Designation, Salary Student: Every student will have Registration, StudentName, DOB, Program, Term Create table for issue and … | |
You are given a file called “std” and composed of “Number, Name, Address” fields/attributes. (You can define the type of fields by yourself) Write an algorithm that makes “insert, delete, update and retrieve”, processes on the records in the file. “Number” field is the key of each record. Here is … | |
What are the byte values of basic data types : char , int , long , long long, float, double.?(using sizeof() )? | |
I am making a tic tac toe game, and have completed it. Now I am trying to implement a library to my code and I chose ncurses, because it seems easier to add and will allow me to change the color of the input for the game. However, I can't … |
The End.