344 Topics

Member Avatar for
Member Avatar for Ashley_31

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. …

Member Avatar for Olive34
0
207
Member Avatar for Sairus_1

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 …

Member Avatar for Reverend Jim
0
65
Member Avatar for fschild22

**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 + …

Member Avatar for Reverend Jim
1
123
Member Avatar for logandavid

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']]

Member Avatar for Reverend Jim
0
103
Member Avatar for Iram_3

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 …

Member Avatar for Dani
0
89
Member Avatar for Mr_154
Member Avatar for Ashton21

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.

Member Avatar for toneewa
0
214
Member Avatar for Yolie_b

Write a program that converts temperature from degrees Fahrenheit to degrees Celsius .The formula is C = (5.0/9.0) (F-32)

Member Avatar for toneewa
-1
190
Member Avatar for Ashton21

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 …

Member Avatar for toneewa
1
167
Member Avatar for LZS_405

.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 …

Member Avatar for rproffitt
0
72
Member Avatar for LZS_405

.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 …

0
24
Member Avatar for Raghda_3

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 ?

Member Avatar for rproffitt
-1
74
Member Avatar for Ashurà_1

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

Member Avatar for Reverend Jim
0
43
Member Avatar for Natalii_13

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 …

Member Avatar for rproffitt
0
119
Member Avatar for asfand111

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 …

Member Avatar for rproffitt
0
25
Member Avatar for Amenda_1

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). …

Member Avatar for Dani
0
47
Member Avatar for RoqueyB

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 …

Member Avatar for Ben_493
0
8K
Member Avatar for Ashton21

![Screenshot_2021-10-02_134648.png](https://static.daniweb.com/attachments/4/fa8e4c345dd089410fa7414ea44ac516.png)

Member Avatar for rproffitt
-1
57
Member Avatar for Ashton21

#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 …

Member Avatar for rproffitt
0
38
Member Avatar for elissanicole

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 …

Member Avatar for rproffitt
0
32
Member Avatar for safiullah786

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 …

Member Avatar for Dani
-1
308
Member Avatar for Mihir_2
Member Avatar for MUHAMMAD FAHAD_3
Member Avatar for john_326

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 …

Member Avatar for rproffitt
0
48
Member Avatar for Arsh_2
Member Avatar for Athar_3

Create a Client/Server using DatagramSocket and DatagramPacket Programming and using DiffieHellman (1024) as encryption algorithm.

Member Avatar for rproffitt
0
43
Member Avatar for Rober

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 …

Member Avatar for Dani
0
38
Member Avatar for nec4r

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 …

Member Avatar for rproffitt
0
56
Member Avatar for Jonah_4

What are the byte values of basic data types : char , int , long , long long, float, double.?(using sizeof() )?

Member Avatar for Husoski
0
136
Member Avatar for ytgaamer

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 …

Member Avatar for rproffitt
0
146

The End.