472 Answered Questions for the topic programming
04/12/21
Next Two Letters. Read in a character (it will always be a lower case letter). Print out the two letters that come after it without any spaces. Once you go past 'z' you should wrap back to 'a'.
Read in a character (it will always be a lower case letter). Print out the two letters that come after it without any spaces. Once you go past 'z' you should wrap back to 'a'.Hint: You can add...
more
04/12/21
Char Sorter. Write a program that sorts chars into 1 of 3 groups.
Write a program that sorts chars into 1 of 3 groups. Letters A-J are in group 1, K-P in group 2, Q-Z in group 3. You should read in one character and print out the group it belongs in - assume the...
more
04/12/21
What am I doing wrong in my code?
using System; public class Program{ public static void Main() { Console.WriteLine("How many people are in your class? ") classSize = int.Parse(Console.ReadLine()); string students = new...
more
Converting C to Pep9
Translate the following C program to Pep9 assembly language exactly as a compiler would translate it. Do not show the generated machine language code.
#include <stdio.h>
const int NUM1 =...
more
04/05/21
C++. Write a program that reads three integers from cin and outputs them in order from smallest to largest.
C++.Write a program that reads three integers from cin and outputs them in order from smallest to largest.Example: input of 3 8 5 should result in output of:3 5 8Hints:
You do not have to actually...
more
04/05/21
C++. An international phone call is billed by the minute according to this scheme: Calls up to 10 minutes cost a flat $5.
An international phone call is billed by the minute according to this scheme: Calls up to 10 minutes cost a flat $5. Calls over 10 minutes but less than 30 cost $.50 per minute. Calls 30 minutes or...
more
04/05/21
In a dice game, you get the total you roll on two dice, unless they are the same, in which case you get double what they total. Write a program that helps score the game.
C++. In a dice game, you get the total you roll on two dice, unless they are the same, in which case you get double what they total. Write a program that helps score the game.Read in two integers...
more
04/05/21
Orders from a company that cost $100 or more get a 10% discount. Orders less than $100 do not get a discount.
C++.Read in an decimal value representing the undiscounted order price, and print out what the order should cost.Just print the value - do not add a $ or try to make it look like...
more
04/05/21
C# Random Numbers.
create an array of 10 random numbers from 1 to 100. We will use a for loop to populate the array.
output the numbers in their original order on one line.
We will sort the list and output the...
more
04/05/21
C Programming. First, fully parenthesize the following expressions according to the precedence and associativity rules.
First, fully parenthesize the following expressions according to the precedence and associativity rules. Then, replacing the variables and constants with the appropriate type names, show how the...
more
04/05/21
C Programming Questions: 1. What is unusual about the logical operators? 2. What is a possible problem using continue in while statements?
1. What is unusual about the logical operators? 2. What is a possible problem using continue in while statements?
04/04/21
Computer Science Question - Python String slicing
so I need the date which is this 2001-08-11 to look this 08-2001 I need to slice it and the best I have come up with slicing it like this [ :7] which gives me the date to look like this 2001-08. I...
more
04/03/21
Computer Science Question String Slicing
I want to make this date which is this 1985-08-01 what would be the numbers to make it look like this 08-1985 and the best I have done at slicing is doing this [ : 7] but that only gives me the...
more
04/03/21
computer science- python Programming
I want to make this date which is this 1985-08-01 what would be the numbers to make it look like this 08-1985 and the best I have done at slicing is doing this [ : 7] but that only gives me the...
more
04/03/21
Computer Science Python
I want to sting slice this date which is this 1985-08-01 to look like this08-1985
04/01/21
Replace YOUR_CODE with code that will create a point p2 that is 4 units to the right of p1 and 3 units below it.
Read the provided code for the Point class that represents a point on a standard Cartesian plane. Then read the provided code in main.Replace YOUR_CODE with code that will create a point p2 that is...
more
03/31/21
Your job is to implement the constructor that takes an hour and minute value. Hint: The constructor is going to need Time:: in front of its name.
Read the existing code for Time. It stores a time of day in 24 hour format with 0 hours indicating midnight and 12 hours indicating noon.Your job is to implement the constructor that takes an hour...
more
03/31/21
Your job is to implement the default (no argument) constructor that sets time to midnight. Hint: The constructor is going to need Time:: in front of its name.
Read the existing code for Time. It stores a time of day in 24 hour format with 0 hours indicating midnight and 12 hours indicating noon.Your job is to implement the default (no argument)...
more
03/31/21
Replace YOUR_CODE with code that will create a point p2 that is 4 units to the right of p1 and 3 units below it.
Read the provided code for the Point class that represents a point on a standard Cartesian plane. Then read the provided code in main.Replace YOUR_CODE with code that will create a point p2 that is...
more
03/31/21
Replace YOUR_CODE with code that will move Point p1 10 units to the right and 3 units down and Point p2 2 units to the left and 5 units up.
Read the provided code for the Point class that represents a point on a standard Cartesian plane. Then read the provided code in main.Replace YOUR_CODE with code that will move Point p1 10 units to...
more
03/31/21
Replace YOUR_CODE with code that will create a point named p1 at the location 0, 0.
Read the provided code for the Point class that represents a point on a standard Cartesian plane. Then read the provided code in main.Replace YOUR_CODE with code that will create a point...
more
03/31/21
Part 1- Make an application in which you need to implement all discussed programming tools i.e. ordered arrays, Abstract data types, linked lists, recursion etc. must be implemented
Part 1- Make an application in which you need to implement all discussed programming tools i.e. ordered arrays, Abstract data types, linked lists, recursion etc. must be implementedPart...
more
03/31/21
data structure and algorithm
Part 1- Make an application in which you need to implement all discussed programming tools i.e. ordered arrays, Abstract data types, linked lists, recursion etc. must be implementedPart...
more
03/31/21
data structure and algorithm make and application using mentioned programming tools
Part 1- Make an application in which you need to implement all discussed programming tools i.e. ordered arrays, Abstract data types, linked lists, recursion etc. must be implementedPart...
more
03/28/21
Is an ArrayList a primitive datatype or non primitive?
Is an ArrayList a primitive datatype or non primitive?
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.