Member Avatar

Hi all I need assistance with the below code snippit. It calculates how many of salaries entered exceeds R100 000 or how many is below. With the below entries the lower count totals to 4 instead of 5. What am I doing wrong? Still new to this so please excude if the code is everywhere. Entries: Enter a yearly salary: R1000 Are there any more values to be input? ('Y' or 'N') y Enter a yearly salary: R2000 Are there any more values to be input? ('Y' or 'N') y Enter a yearly salary: R3000 Are there any more values …

Member Avatar
0
18
Member Avatar

Hi all I need assistance with the below code snippit. It calculates how many of salaries entered exceeds R100 000 or how many is below. With the below entries the lower count totals to 4 instead of 3. What am I doing wrong? Still new to this so please excude if the code is everywhere. Entries: Enter a yearly salary: R1000 Are there any more values to be input? ('Y' or 'N') y Enter a yearly salary: R2000 Are there any more values to be input? ('Y' or 'N') y Enter a yearly salary: R3000 Are there any more values …

Member Avatar
0
13
Member Avatar

Write a function that takes a number n as input and returns a tuple of two values - the number of digits in that number and sum of digits in that number.

Member Avatar
-1
14
Member Avatar

What is the c program for airline ticket reservation system using file handling?

Member Avatar
0
15
Member Avatar

these are the goals of the assignment i am trying to complete, i am running into a problem where i need to create a function get the product the customer selected and reutrn that information in a cout that also inculdes information from another function, i got the first part alrighjt but i completely draw a blank when trying to figure out the 2nd and 3rd part thanks in advance for any assistance ○ Ask customers to select multiple products and quantities ○ Print the order summary, including the products, the quantities, and the total price for each product -Calculate …

Member Avatar
0
25
Member Avatar

Hello dears, can anyone help me with how to code this: Write MARIE code to: 1. Input a number and store it in X . 2. Y will be equal to “

Member Avatar
0
11
Member Avatar

Hello! Can someone help me with coding in R ? I am new to R and I need to solve this project. It has been so many days I dont find a solution. This is the problem : You are an online movie and concert ticket service. Visitors go to the service’s website, read reviews, watch cinema schedules, choose a show they like and buy tickets. Marketers of the service ask you to help them optimize advertising costs. You have at your disposal data about service visits, orders and advertising costs. Analyze the data and answer the questions: How many …

Member Avatar
0
9
Member Avatar

Hi, I am trying to create an app with 2 python files, the first reads the user input (either from python shell or directly from the keyboard via modules like pynput-keyboard) and stores it in a variable (after enter pressed). The second creates the gui that has 2 labels and two buttons and takes the variable passed from the first file and changes the labels based on this variable (the buttons are used for data insert in a later step in a database). I have created the gui and the python script that reads the input, but I am struggling …

0
9
Member Avatar

#include<iostream> using namespace std; int main() int number; int counter=1; int fact=1; cout<<"enter number \n"; cin>>number; while(counter<=number) fact*=counter; counter++; cout<<fact<<endl; how to ask user to repeat

Member Avatar
0
11
Member Avatar

As you may know, Transact-SQL debugger was deprecated in Microsoft Management Studio for SQL Server 18.0 and the functionality is no longer available. However, there’s nothing to panic about since Devart is rolling out SQL Complete 6.4 ( https://www.devart.com/dbforge/sql/sqlcomplete/ ) with code debugging feature honed to perfection in dbForge Studio for SQL Server. SQL Tools also includes SQL Complete with Code Debugger functionality designed to take away the pain of combing through scripts to find errors and grant the possibility to debug code directly in the IDE. SQL Tools is a pack of essential SSMS add-ins and tools. Get to …

0
4
Member Avatar

Greetings, my objective is to create a `Dictionary<string, string>` (or `Dictionary<string, List<string>>`), adding elements to it from a `List<string>`. The first string of the list should be the key of the dictionary, the other strings the value. For example: `List<string> list = new List<string>() { "key1", "value_x1", "value_x2", ... };`

Member Avatar
0
15
Member Avatar

1. The Broken Arrow cellular company has hired you to write a billing program for data usage on their new 4-tier 5G network. The rate schedule, including discounts for certain customers, is below. Base rate is $12.00 and includes up to 1 gigabyte of data. Anything over 1 gigabyte is an additional $10.00. Normal customers get no discount. Students get a 20% discount on data over 1 gigabyte. Retirees get a 10% discount on data over 1 gigabyte. 2. Input the following. DO NOT change the order of input or the formats: A six character customer number: xxxxxx A single …

Member Avatar
0
8
Member Avatar

alright so i have got a c++ code(AIRLINE RESERVATION SYSTEM) which i can run as console application, but i want to convert it into GUI, and i dont know anything about GUI, where and how should i begin, i have 1 and half month to present it.

Member Avatar
0
10
Member Avatar

Hello I have a abstract class: import javax.swing.JOptionPane; public abstract class Question { static int nQuestions = 0; static int nCorrect = 0; String question; String correctAnswer; abstract String ask(); void check() { nQuestions++; String answer = ask(); if (answer.equals(correctAnswer)) { JOptionPane.showMessageDialog(null,"Correct!"); nCorrect++; } else { JOptionPane.showMessageDialog(null,"Incorrect. The correctanswer is "+correctAnswer+"."); } } static void showResults(){ JOptionPane.showMessageDialog(null, nCorrect+" correct out of " +nQuestions+ " questions"); } } It has a subclass: import javax.swing.JOptionPane; public class TrueFalseQuestion extends Question { TrueFalseQuestion(String question, String answer){ this.question = "TRUE or FALSE: " +question; correctAnswer = answer; } @Override String ask() { while (true) …

Member Avatar
0
16
Member Avatar

hai, my project title is student's feedback generation vb.net is front end and excel as back end. i have one text box and combobox. to get row value from excel sheet and display into combobox when the text box value matches the cell value

Member Avatar
0
13
Member Avatar

Hi everyone, I am working on a project (just started) in PYTHON and I want to create a keylogger for 2 languages english and greek. For this I have created the below (it is under "construction") code. from pynput.keyboard import Key, Listener from langdetect import detect from pynput import keyboard def on_press(key): global string if key == keyboard.Key.esc: #if button escape is pressed close the program listener.stop() elif key == keyboard.Key.space: print(string) string="" else: string = ''.join([string,str(key).replace("'","")]) string="" controller = keyboard.Controller() # Collect events until released listener = keyboard.Listener(on_press=on_press) listener.start() I run it and all good until I change the …

Member Avatar
0
22
Member Avatar

Does anyone know a good Java machine learning library I can use for a commercial product? Weka and Rapidminer unfortunately do not allow this. I already found Apache Mahout and Java Data Mininng Package. Has anyone experience with them and provide some decision support? The task calls for clustering and classification algorithms.

Member Avatar
0
12
Member Avatar

I have a fully functional code that uses the random number generator to generate a set of random numbers. I'm trying to display "e" next to all the even numbers in the set, and then have a cout statement that tells the user how many even numbers there are in the set. Here's my code: #include <iostream> #include <iomanip> #include <cstdlib> using namespace std; int main() { //I'm declaring my variables int numValues1, cnt = 0; //I'm declaring my symbolic constants. #define MAX1 500 #define MAX_VAL1 5 //I'm getting the random number generator ready and using 30 as my seed …

Member Avatar
0
24
Member Avatar

New to asking help but I'm desperate. I have most of the code I just need advice and also how to put the value from the file into the array and then pass to the functions without using any strings or string header. Basically trying to make this work and I'm stuck. #include <iostream> #include <iomanip> #include <fstream> //Array Size Set const int ARRAYSIZE = 25; using namespace std; //Declaring Function Prototypes char findComplement(char,char); char findmRNA(char,char); bool isPalindrom(); char displayResults(char,char,char); int main() { //Declaring Arrays with constant size of 25 char dnaArray[ARRAYSIZE]; char comArray[ARRAYSIZE]; char rnaArray[ARRAYSIZE]; int size=0; int i=0; …

0
10
Member Avatar

Inside of my Windows Form Application , I have a textbox that the user can enter numbers into. I also have an add button if they would like to enter a number and then add another they can hit the button. I'm having trouble with figuring out what you can use if you want to save the first number entered, and then the next and so on. I want to be able to use all of the numbers in calculations later but I'm not sure how to save each number they enter. Do anyone have any suggestions?

0
11
Member Avatar

How can I show a div when menu item is clicked in angular? The Div show fine when I click list item, but dsn't disappear when I navigate to other menu items. <li><a class="nav-link slots" (click)="showme = true" >Slots</a> <div ng-hide="showme"> <div class="ribbon" *ngIf="game.categories[0]"> <span>TOP</span> </div> <div class="ribbon" *ngIf="game.categories[2]"><span>NEW</span></div> </div> TS file: showme : boolean = false;

1
3
Member Avatar

I have a database, where I store Job Openings, Where I store Job Descriptions with formats in RichText Box like: bullet points, ordered lists and bold text etc... But when I save data in MySQL Database and Retrive it from Database it comes format less. Can anyone help me regarding this issue?

0
3
Member Avatar

Hey! I am really stressed out about my TURBO CPP project. I wrote a program on periodic table using file handling. when i compiled it crashed and not the project is unusable. I want to submit it at the earliest. I was hoping some one might drop their out projects. Thanks.

Member Avatar
0
34
Member Avatar

Help i need to have 3 login attempts then the program will lock down but the message box shows up 3 times consecutively, it will close then pops out it will do this for 3 times then it closes ... help pleassseee :( Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click Dim un, pw As String Dim counter As Integer = 0 un = txtUsername.Text pw = txtPassword.Text Do If un = "student" And pw = "21217" Then Me.Hide() CourseStudy.Show() Else counter = counter + 1 MsgBox("Try again", MsgBoxStyle.Critical, "Acess Denied") txtPassword.Text = "" txtUsername.Text = …

Member Avatar
0
24
Member Avatar

package de.extrema.java; import java.util.Scanner; public class Pogramm { public static void main(String arrg[]) { try (Scanner scanner = new Scanner(System.in)) { double a , b , r , A , h; int number2; int number; System.out.println("Körper: "); System.out.println("Deine Wahl: "); number = scanner.nextInt(); number2 = scanner.nextInt(); switch(number) { case 1:{ switch(number) { System.out.println("Viereck: 1 Kreis: 2 Dreieck: 3 Trapez: 4 "); case 1:{ System.out.println("a: "); a = scanner.nextDouble(); System.out.println("b(a): "); b = scanner.nextDouble(); A = a * b; System.out.println("Fläche des Vierecks= " + A); break; } case 2:{ System.out.println("r: "); r = scanner.nextDouble(); A = Math.PI * r * r; …

Member Avatar
0
28
Member Avatar

I tried alot to print this arrow with random generated values which are 0101 , every time it should be differnt, please help me out thanks :) ![Untitled1.png](/attachments/large/4/c843d1e3a2cf1464dc1f1eb7c0d4a68a.png)

Member Avatar
0
43
Member Avatar

I am working on a problem for which i have already developed a solution, but i am new to OPP prgramming and started learning recently. Would request OPP Gurus to provide suggestions for the better designs, keeping scalability, extendability of (course readability) in mind. Also,I would like to extend the the current program for mutiple random players and winner is decided based on max number of votes. But there are rules: 1)Currently i have 6 players, out of which any number of players might contest(taken from std::input or cmd args) 2)Contestants are not aware of other contestants. 3)Each contestant has …

Member Avatar
2
49
Member Avatar

Hi everyone, I'm new to parallel programming, and my project is the two-dimensional matrix vector multiplication using mpi in C programming language. I have this multiplication function, but I don't know exactly how to run it with mpi. Can you help me, please? I write these commands, $ mpicc -g -Wall -o matrix2d matrix2d.c -lm -c $ mpiexec ./matrix2d.c But I get some errors. `mpiexec was unable to launch the specified application as it could not access or execute an executable: Executable: ./matrix2d Node: ubuntu while attempting to start process rank 0.` 2D Matrix-Vector Multiplication Function is below: #include <stdio.h> …

Member Avatar
0
25
Member Avatar

#include<iostream> #include<string> using namespace std; class stack { string item; int top; public: stack() { top=-1; } void push(char ch) { top++; item[top]=ch; } char pop() { char ele; if(isempty()) { printf("\n stack overflow!!"); return '@'; } ele=item[top]; top--; return ele; } char peep() { return(item[top]); } int isempty() { if(top==-1) return 1; return 0; } int priority(char ch) { if(ch==')') return 1; else if(ch=='+' || ch=='-') return 2; else if(ch=='*' || ch=='/') return 3; else return 4; } }; int main() { string infix,prefix; char ch,ch2,token,temp; int i,j=0,len; stack st; cout<<"enter the valid infix expression: "; cin>>infix; len=infix.size(); for(i=len-1;i>=0;i--) …

Member Avatar
0
35
Member Avatar

1/Write a TeachArithmeticFrame class that teaches children arithmetic. The frame uses a JLabel for a problem and a JTextField for the user answer. When the user presses the Enter key (while the JTextField object is active) or clicks the OK button, display a message stating whether the user’s answer is correct. When the Next button is clicked, display a new problem. The numbers are limited to two digits. Consider using a larger font for the JLabel and JTextField text. You can change the color of text by calling the setForeground method, for example. questionLbl.setForeground(Color.RED); 2/Extend the TeachArithmeticFrame class so that …

Member Avatar
0
14

The End.